Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added TF code for Azure Automation runbook #255

Merged
merged 8 commits into from
Sep 26, 2023

Conversation

ericd-mst-github
Copy link
Contributor

opening PR for automation runbook TF code.

Copy link
Collaborator

@TomArcherMsft TomArcherMsft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR, @ericd-mst-github ! Only a few issues to make the sample consistent with the current best practices.

quickstart/101-vm-auto-shutdown/main.tf Outdated Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/providers.tf Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/variables.tf Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/variables.tf Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/variables.tf Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/readme.md Outdated Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/readme.md Outdated Show resolved Hide resolved
| `runbook_type` | Type of the runbook. | PowerShell |
| `runbook_uri` | URI for the runbook content. | https://raw.githubusercontent.com/azureautomation/runbooks/master/Utility/ASM/Set-AzureScheduleWithRunbook.ps1 |
| `one_time_schedule_start_time` | Start time for the one-time runbook schedule. | "2023-09-23T00:00:00Z" |
| `hourly_schedule_start_time` | Start time for the hourly runbook schedule. | "2023-09-23T01:00:00Z" |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for checking. For the example section, we don't necessarily have a written topic published yet, as that will be a new VM tutorial that covers Auto-shutdown methods (PS, CLI, TF).

Should we have a separate Terraform tutorial doc auto generated through your current method, and I can link to that generated article from the new topic?

Copy link
Collaborator

@TomArcherMsft TomArcherMsft Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericd-mst-github

TL/DR: Please leave the section out and it can be added after the article is published.

This is a chicken & egg situation where I can't publish the new article until the sample is published. Therefore, I don't know the exact URL until I write the article. When I'm coding the sample, I generally know what the article name is going to be so I "cheat" by putting in the URL for what will eventually be the published URL. The README includes the invalid URL for only a few hours or a day at most. However, in this case, you don't know the URL. Therefore, please leave the section out and it can be added after the article is published.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good @TomArcherMsft and this makes sense to me.

I'll see about leaving the TF section out and go with the CLI/PS methods for now in the VM article. Let me know if further changes are needed for the current TF sample.

quickstart/101-vm-auto-shutdown/readme.md Show resolved Hide resolved
quickstart/101-vm-auto-shutdown/outputs.tf Show resolved Hide resolved
@ericd-mst-github ericd-mst-github temporarily deployed to acctests September 26, 2023 15:42 — with GitHub Actions Inactive
@stemaMSFT
Copy link
Member

LGTM!

@ericd-mst-github
Copy link
Contributor Author

#sign-off

@grayzu grayzu merged commit 9bf8cf3 into Azure:master Sep 26, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants