When rolling out my AKS cluster
az deployment group create --template-file template.json --parameters parameters.d.json -g <resource_group>
three managed identities are created. These resources are located, by default, in the Managed Cluster resource group (with prefix MC_). I would like the agentpool managed identity (for vmss) to reside in another resource group.
Ideally I'd like to keep these managed identities when redeploying the cluster, however, the _MC resource groups are deleted and created again. Is there an option to deploy these managed identities in another resource group where they have a longer lifetime? Can this be configured in the template.json?