You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and review the contribution guide to help.
Description
There is currently a Terraform resource for the Azure Network Manager but the AzureRM provider lacks a data source for the same type of resource.
I'm unsure if its not possible to get the Network Manager as a data source and perhaps that's why this hasn't been done - but I didn't see any Issues reporting the data source as missing so maybe it just hasn't been thought of yet.
For now, in projects that don't directly consume the Network Manager (have the NM directly in terraform state) and want to, for instance, add static members to the network manager's groups, one can use the network manager group data source, but it in turn relies on the network manager ID.
My workaround for getting the network manager ID for the group in a different project is to have the network manager ID as an output and then import the terraform state of that project in the consuming project and reference its x.outputs.network_manager_id.
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.
Is there an existing issue for this?
Community Note
Description
There is currently a Terraform resource for the Azure Network Manager but the AzureRM provider lacks a data source for the same type of resource.
I'm unsure if its not possible to get the Network Manager as a data source and perhaps that's why this hasn't been done - but I didn't see any Issues reporting the data source as missing so maybe it just hasn't been thought of yet.
For now, in projects that don't directly consume the Network Manager (have the NM directly in terraform state) and want to, for instance, add static members to the network manager's groups, one can use the network manager group data source, but it in turn relies on the network manager ID.
My workaround for getting the network manager ID for the group in a different project is to have the network manager ID as an output and then import the terraform state of that project in the consuming project and reference its
x.outputs.network_manager_id
.New or Affected Resource(s)/Data Source(s)
azurerm_network_manager
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/network_manager
The text was updated successfully, but these errors were encountered: