For this posting, it is more like an update as i recently found a better way in github (link here) to enable the boot diagnostic to Azure VM .
This is code segment that i use previously
boot_diagnostics{
enabled = true
storage_uri = "Https://${azurerm_storage_account.hub-core-vmdiag.name}
.blob.core.windows.net"
}
so i did my own experiment to test that and turn out it is easier to be implemented
here is code up
1. AzureRM_virtual_machine resource block
boot_diagnostics {
enabled = true
storage_uri = azurerm_storage_account.hub-core-vmdiag.primary_blob_endpoint
}
2. AzureRM_windows_virtual_machine resource block
boot_diagnostics {
storage_account_uri = azurerm_storage_account.hub-core-vmdiag.primary_blob_endpoint
}
that all.. thanks for reading and stay safe
No comments:
Post a Comment