-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
No obious way to control "Basic Metrics" in "Diagnostics settings" in Azure VM #317
Comments
Hey @wawrzek Thanks for opening this issue :) This functionality has previously been requested in #199 - and Basic Metrics can be activated as a VM Extension for either Windows or Linux VM's. Unfortunately this flag isn't exposed in the API at the current time and can only be added through the VM Extension, however I've previously requested this is added to the Azure API's in this Rest API Specs Repository issue. Given the amount of API Logic that would be involved with reimplementing this within Terraform (such as determining the underlying OS for each VM/Marketplace image; and the associated defaults for that OS), plus the potential for drift between the Portal's defaults and our defaults - we've currently opted to recommend using VM Extensions for this functionality. That said - as soon as it's available in the API we'll investigate this further, as it's not an optimal user experience. In the interim, would it be possible to take a look and see if the VM Extension mentioned above solves your issue here? :) Thanks! |
@tombuildsstuff - I suggest to make clear in documentation, that these 2 things are quite different beasts even if they are cramped together in portal. |
👋 hi all Since the Azure Compute team don't plan on adding this functionality to the Azure API unfortunately we're unable to proceed with this issue. If you'd like to see support for this I'd suggest opening an issue with Microsoft - however #1291 may provide an alternate solution. As there's no immediate path forward for this issue I'm going to close this issue for the moment. Thanks! |
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! |
This issue was originally opened by @wawrzek as hashicorp/terraform#16050. It was migrated here as a result of the provider split. The original body of the issue is below.
There are a profile block to control Boot Diagnostic for Azure VM, but there is nothing to control "Basic Metrics". This option is in the same space in Azure portal, so it make sense keep them togher in Terraform.
Therefore, "boot_diagnostic" should be rename "diagnostic_settings", "boot_diagnostic" should replace "enabled" and there should be new variable "basic_metrics".
The profile should looks like:
Terraform Version
Terraform v0.10.4
terraform-provider-azurerm_v0.1.6_x4
Terraform Configuration Files
No special configuration
The text was updated successfully, but these errors were encountered: