I'm using the azurerm_automation_runbook module to create an Azure Automation Runbook. Below is the code I'm using.
resource "azurerm_automation_runbook" "automation_runbook" {
name = var.automation_runbook_name
location = var.location
resource_group_name = var.resource_group_name
automation_account_name = var.automation_account_name
runbook_type = "PowerShell"
log_verbose = "true"
log_progress = "true"
publish_content_link {
uri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/c4935ffb69246a6058eb24f54640f53f69d3ac9f/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1"
}
}
I was able to create a Runbook using the above code successfully. But the problem is when I change the uri
within the publish_content_link
block to https://raw.githubusercontent.com/azureautomation/automation-packs/master/200-connect-azure-vm/Runbooks/Connect-AzureVM.ps1 and apply (terraform apply
detects the change and apply it successfully), the new PowerShell script is not getting reflected in the Azure Automation Runbook in the Azure Portal and it still shows the old PowerShell script.
Any help on how to fix this issue would be appreciated.