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

Enable Boot Diagnostics with Managed Storage Account #446

Open
j7lloyd opened this issue Oct 9, 2024 · 0 comments
Open

Enable Boot Diagnostics with Managed Storage Account #446

j7lloyd opened this issue Oct 9, 2024 · 0 comments

Comments

@j7lloyd
Copy link

j7lloyd commented Oct 9, 2024

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

As recommended by Microsoft, using a managed storage account for boot diagnostics provides significant performance improvements when creating Azure VMs, by eliminating the need to create a separate storage account for boot diagnostics data.

Additionally, it simplifies management by removing any consideration for manually cleaning up storage accounts that store the serial console log and screenshot file after the VM build is completed.

Potential configuration

The ideal solution would be to implement it the same way it is done for a Virtual Machine in Terraform, using an optional block: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/windows_virtual_machine#boot_diagnostics

boot_diagnostics {
  storage_account_uri = null
}

NOTE: Passing a null value will utilize a Managed Storage Account to store Boot Diagnostics.

Potential References

I was hoping this could be as simple as implementing a conditional if statement to make the following property (StorageUri) optional:

resource.Properties.DiagnosticsProfile.BootDiagnostics.StorageUri = &stg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant