-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/azurerm: support Diagnostics Profile #8277
provider/azurerm: support Diagnostics Profile #8277
Conversation
networkProfile := expandAzureRmVirtualMachineNetworkProfile(d) | ||
vmSize := d.Get("vm_size").(string) | ||
properties := compute.VirtualMachineProperties{ | ||
NetworkProfile: &networkProfile, | ||
DiagnosticsProfile: &diagnosticsProfile, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will there always be a diagnosticsProfile or should we check that this isn't an empty profile before adding?
thanks for the PR here - I left a few comments. Once we can get these sorted, we can get this merged Thanks Paul |
05b1ac5
to
e4ba41a
Compare
Add support for a diagnostics profile, which allows boot diagnostics to be enabled on a virtual machine.
e4ba41a
to
08f2e67
Compare
Thanks for the feedback! I've updated to address these concerns. |
@@ -425,6 +453,11 @@ func resourceArmVirtualMachineCreate(d *schema.ResourceData, meta interface{}) e | |||
StorageProfile: &storageProfile, | |||
} | |||
|
|||
if _, ok := d.GetOk("diagnostics_profile"); ok { | |||
diagnosticsProfile := expandAzureRmVirtualMachineDiagnosticsProfile(d) | |||
properties.DiagnosticsProfile = &diagnosticsProfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better :)
Just been running the tests here - the test you added for the diagnostics works as expected. Unfortunately, the test
Can you have a look and see if there are any issues with running diagnostics with unattendedConfig? thanks Paul |
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Add support for a diagnostics profile, which allows boot diagnostics to be enabled on a virtual machine.