Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Resource Provider registration permission issue #659

Open
lastcoolnameleft opened this issue Mar 6, 2024 · 0 comments
Open

Azure Resource Provider registration permission issue #659

lastcoolnameleft opened this issue Mar 6, 2024 · 0 comments

Comments

@lastcoolnameleft
Copy link
Contributor

When deploying a MODM offer, it is possible that the Azure resources to deploy have not been registered in the subscription. This causes the deployment to fail.

It would be ideal to have MODM automatically register the required resource providers (in fact, this is default behavior in Terraform); however, the Managed Identity of the MODM deployment VM only has Owner permissions for it's own Resource Group. To be able to register the resources, a User Identity with the full permissions would need to be provided (instead of a System Identity).

Instead of having the administrator create a User Identity and add the permissions, it would be simpler (and likely easier) to document the resources required. That way the administrator can see what will be deployed and register the resource providers manually.

Request/Recommendation:

  • For Terraform, use skip_provider_registration in default and examples
  • Output a list of resources the package will deploy with a list of pre-reqs. Example:
# Before installing, register the following resource providers:
az provider register --namespace Microsoft.Batch
az provider register --namespace Microsoft.Sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant