-
-
Save KyMidd/b9386255f63a2072c854d0b9bd585b98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Find all RGs in the subscription and filter | |
| # This is used to prevent a failure when the RG doesn't exist yet | |
| data "azapi_resource_list" "subscription_rgs" { | |
| type = "Microsoft.Resources/resourceGroups@2022-09-01" | |
| parent_id = "/subscriptions/${data.azurerm_subscription.current.subscription_id}" | |
| response_export_values = ["*"] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment