I have two nested deployments:
One for resource group A which deploys a managed identity.
Second for resourc