Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle non-location bound resources in region rotator (#881)
## Description <!--Why this PR? What is changed? What is the effect? etc. If you haven't already, read the full [contribution guide](https://github.com/Azure/bicep-registry-modules/blob/main/CONTRIBUTING.md). The guide may have changed since the last time you read it, so please double-check. Once you are done and ready to submit your PR, edit the PR description and run through the relevant checklist below. Enable GitHub Workflows in your fork to enable auto-generation of assets with our [GitHub Action](/.github/workflows/push-auto-generate.yml). To trigger GitHub Actions after auto-generation, [add a GitHub PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) as a secret in your forked repository called `PAT`. --> Update the the PowerShell script to handle null resource locations (e.g `consumption/budgets` returns `[]` to `Get-AzResourceProvider`) ## Testing [![avm.res.consumption.budget](https://github.com/ChrisSidebotham/bicep-registry-modules/actions/workflows/avm.res.consumption.budget.yml/badge.svg?branch=csidebotham%2Fnon-loc-resource-handling)](https://github.com/ChrisSidebotham/bicep-registry-modules/actions/workflows/avm.res.consumption.budget.yml) [![avm.res.network.dns-zone](https://github.com/ChrisSidebotham/bicep-registry-modules/actions/workflows/avm.res.network.dns-zone.yml/badge.svg?branch=csidebotham%2Fnon-loc-resource-handling)](https://github.com/ChrisSidebotham/bicep-registry-modules/actions/workflows/avm.res.network.dns-zone.yml)
- Loading branch information