AuthorizationFailed: Deployment identity lacks access
Azure couldn't authorise the deployment action. The deployer might lack access at the named scope, or the deployment might require a resource provider that isn't registered.
What to check
- Read the error for the identity, denied action and scope. Make sure the deployment is using the intended user or service principal.
- Ask an administrator who can manage access at that scope to verify that the identity has the required Azure role. Grant only the access the deployment needs.
- If the error points to a resource provider, check its registration in the target subscription.