3

Is there a way to allow resource providers to be provisioned by users inside an ARM template? I can currently only see a way to do so by PowerShell or going to the subscription directly.

Dave N
  • 209
  • 2
  • 17
  • When you say PowerShell, are you referring to Register-AzureRmResourceProvider? During execution of ARM template, ARM will automatically register the subscription with all resource providers for resource types that exist in the template. – Andy Shen Dec 29 '17 at 00:06
  • For automatic resource provider registering, the user or service principal performing the deployment would need the Contributor or Owner roles, which include the `/register/action` operation. In more restrictive environments, the user or service principal roles may be scoped down to specific resource types. – Stringfellow Sep 29 '22 at 21:46

2 Answers2

1

Based on my knowledge, you could not use template to register provider.

I can currently only see a way to do so by PowerShell or going to the subscription directly.

You also could use Azure CLI to register provider.

az provider register --namespace Microsoft.Batch

More information please refer to this document.

Shui shengbao
  • 18,746
  • 3
  • 27
  • 45
  • Just checking in to see if the information provided was helpful. Please let me know if you would like further assistance. – Shui shengbao Jan 12 '18 at 04:13
-1

You can refer a following link to register using ARM Portal

https://www.dotnetpiper.com/2020/05/resource-provider-registration-using.html

Sachin Kalia
  • 1,027
  • 14
  • 24