-
Notifications
You must be signed in to change notification settings - Fork 4.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
azurerm_virtual_network resource guid attribute #2325
Comments
hey @steve-hawkins Thanks for opening this issue :) Whilst we've tagged this as a feature request - since other resources in Azure reference each other using a Resource ID rather than a GUID, I've also reached out to the Service Team to see if there's plans to update this to use a Resource ID in the future. Thanks! |
hi @tombuildsstuff thanks for looking into this and I agree, if this could be switched to resource ID it would make a lot more sense |
I'd like to note that the App Service Preview VNet integration does not appear to work as intended without this feature. When you look at a properly configured resource the App Service VNet Name needs to be: "vnetResourceGuid_subnetName", which is not currently available. |
👋 Jotting some notes down whilst taking a look into this it appears this is available in the SDK as |
Would be much appreciated. While on it, the Function App resource would also need an update or added example. |
I don't see the resourceGuid being mapped in data_source_virtual_network.go? |
Hello, guys, did you have any outcome on this issue? |
I am interested in working on this issue. I have this working on a local branch for both the vnet data and resource. I'll do further testing, update the docs for the new attribute, and submit a PR. |
Addresses #2325 -Add guid (ResourceGUID) attribute to azurerm_virtual_network data source and azurerm_virtual_network resource. -Update documentation for d/azurerm_virtual_network and r/azurerm_virtual_network to include guid attribute (Also added a trailing period to an existing attribute for consistency) -Fix acceptance test for azurerm_virtual_network data source (reference to address_space should be singular)
Great work! Looking forward to a proper vnet integration with Terraform :) |
This has been released in version 2.6.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.6.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Community Note
Description
It would be good to have the resourceGuid as an attribute of the Virtual Network resource
This is to support the Azure App Service Virtual Network Integration (that is currently in Preview) which requires the site_config virtual_network_name value to consist of the Virtual Network resourceGuid and the name of the subnet separated by an underscore like follows:-
New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: