I need help with automating a new subscription creation and one piece I needed to perform would be registering a resource provider. I can see this applicable from PowerShell but I am unable find the SDK module that can do this.
can someone point me to the SDK
Definitely doable with azure-mgmt-resource
, a few example around providers:
self.resource_client.providers.unregister('Microsoft.Search')
self.resource_client.providers.get('Microsoft.Search')
result_list = self.resource_client.providers.list()
for provider in result_list:
self.resource_client.providers.register(provider.namespace)
break
Doc: https://docs.microsoft.com/python/api/overview/azure/resources
(I work at MS in the SDK team)
Searched for the azure python sdk , no such method related to Azure Resource Provider
could be found.
However, you could implement your requirements by Provider REST API with python code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.