Describe the solution you'd like
In our Azure tenant, we have different application landing zone subscriptions for production, staging, and testing of our primary product. In accordance with #747, we wish to use separate AzOps repositories to track deployments to each of these environments. At the same time, we make extensive use of Bicep modules from a private container registry, which is placed in a separate platform subscription:
- root (mg)
- (mg)
- platform (mg)
- landing zones (mg)
- online (mg)
- prod (sub)
- stage (sub)
- test (sub)
The service principal we use for deploying resources to prod (sub) has the following permissions:
Owner on prod (sub)
AcrPull on the container registry in management (sub)
As a result, when running the pull pipeline, AzOps tracks both the subscriptions prod and management. It isn't actually able to list role assignments, policies, resource groups, or anything else inside management (sub), but it does generate a directory along with a microsoft.subscription_subscriptions-<sub-id>.json file.
We would really like to be able to configure which subscription(s) to track via AzOps - something like Core.SubscriptionsToInclude or similar.
Describe the solution you'd like
In our Azure tenant, we have different application landing zone subscriptions for production, staging, and testing of our primary product. In accordance with #747, we wish to use separate AzOps repositories to track deployments to each of these environments. At the same time, we make extensive use of Bicep modules from a private container registry, which is placed in a separate platform subscription:
The service principal we use for deploying resources to
prod (sub)has the following permissions:Owneronprod (sub)AcrPullon the container registry inmanagement (sub)As a result, when running the pull pipeline, AzOps tracks both the subscriptions
prodandmanagement. It isn't actually able to list role assignments, policies, resource groups, or anything else insidemanagement (sub), but it does generate a directory along with amicrosoft.subscription_subscriptions-<sub-id>.jsonfile.We would really like to be able to configure which subscription(s) to track via AzOps - something like
Core.SubscriptionsToIncludeor similar.