Closed anaik91 closed 4 years ago
hi @anaik91
Thanks for opening this issue.
We're currently working through writing replacements for the Virtual Machine and Virtual Machine Scale Set resources that we previously outlined in #2807 - as a part of this we're introducing a new resource for Virtual Machine Scale Set Extensions - azurerm_virtual_machine_scale_set_extension
which should enable this scenario once version 2.0 of the Azure Provider becomes available.
Since this'll be fixed by #4679 which introduces the new Virtual Machine Scale Set Extension resource this'll get closed when that PR's merged - but the new resources will be available in 2.0 when that's released in the coming months. We plan to make it possible to opt into the new resources outlined in #2807 in a future 1.x version of the Azure Provider - however at this time these aren't yet supported/available.
Whilst the fix coming in #4679 won't solve the immediate issue - it should be possible to work around it in the interim by hard-coding the Virtual Machine ID (or building it up dynamically in a local variable) and then referencing this rather than the Virtual Machine Scale Set ID; and later switch to using the new VMSS / VMSS Extension resources once they become available in 2.0.
Thanks!
Hi @tombuildsstuff
Thank you for quick response. Do we have an ETA on the release of 2.0?
Thanks!!
@anaik91 nothing concrete since there's a few things still up in the air unfortunately - that said we're targeting this side of the end of the year - I'd suggest subscribing to #2807 for updates :)
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 has been released in version 2.0.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:
provider "azurerm" {
version = "~> 2.0.0"
}
# ... other configuration ...
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_virtual_machine_scale_set
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
I should be able to see the "Memory percentage" metric upon enabling the Extension
Actual Behavior
Cannot reference the scale set resource ID to the extension .
Steps to Reproduce
terraform apply -auto-approve
References
I was able to achieve it using azure cli as mentioned in blog
I have checked the below links :