You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Copy" the runbook from the given publish_content_link (storage account (URL)) and "install" the runbook in the automation account.
Actual Behavior
Receive error:
Error: Error retrieving Automation Runbook "myScript" (Account "myAA" / Resource Group "myRg"): automation.RunbookClient#Get: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.Automation/automationAccounts/myAA/runbooks/myScript' under resource group 'myRg' was not found."
on ..\azurerm_automation_runbook\main.tf line 36, in resource "azurerm_automation_runbook" "pool":
36: resource "azurerm_automation_runbook" "pool" {
Why is it looking in the automation account? Of course it doesn't exist. Isn't that the whole point of this module?
According to the documentation: publish_content_link - (Required) The published runbook content link.
If this means it needs to be the URI of the runbook in the automation account, why does your example points to a .ps1 file on Github?
content - (Optional) The desired content of the runbook.
If, in order to get this to create a runbook, why is this attribute optional?
I feel that the documentation could do with a little update to explain exactly what these attributes do in their current form, and the module needs improvement to allow a runbook to be created form a URI.
Steps to Reproduce
terraform apply
Important Factoids
References
This has been reported before, in #2868, but it seemed to go off on a tangent about module dependencies and didn't answer the actual issue before the bot closed it.
Thanks.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.24
Affected Resource(s)
azurerm_automation_runbook
Terraform Configuration Files
https://gist.github.com/arcotek-ltd/389d3d74572ac1b1f74038c429a0c8c6
Debug Output
Expected Behavior
"Copy" the runbook from the given
publish_content_link
(storage account (URL)) and "install" the runbook in the automation account.Actual Behavior
Receive error:
Why is it looking in the automation account? Of course it doesn't exist. Isn't that the whole point of this module?
According to the documentation:
publish_content_link - (Required) The published runbook content link.
If this means it needs to be the URI of the runbook in the automation account, why does your example points to a .ps1 file on Github?
content - (Optional) The desired content of the runbook.
If, in order to get this to create a runbook, why is this attribute optional?
I feel that the documentation could do with a little update to explain exactly what these attributes do in their current form, and the module needs improvement to allow a runbook to be created form a URI.
Steps to Reproduce
terraform apply
Important Factoids
References
This has been reported before, in #2868, but it seemed to go off on a tangent about module dependencies and didn't answer the actual issue before the bot closed it.
Thanks.
The text was updated successfully, but these errors were encountered: