https://pulumi.com logo
#azure
Title
# azure
a

able-thailand-87943

06/19/2023, 3:05 PM
Does anyone know if there is a provider for https://learn.microsoft.com/en-us/rest/api/resources/providers/register in Azure Native?
m

millions-journalist-34868

06/19/2023, 6:04 PM
I am not familiar with it but as you have access to all the APIs versions with azure native, I don't think you need it. What are you using it for?
f

fast-vr-6049

06/19/2023, 7:44 PM
That said, I'd agree with Alexandre that you should consider re-examining your current setup to determine if manually registering providers is necessary. I've provisioned resources using Pulumi that have never been used in a subscription, and I never needed to register their providers
a

able-thailand-87943

06/21/2023, 12:54 PM
Thank you @millions-journalist-34868 and @fast-vr-6049. I agree with you that normally, when a subscription is created within the Azure Portal most of the Subscriptions have these default providers already registered. But we are provisioning Subscriptions using the Azure API, and these subscriptions seem to not have the providers registered "out-of-the-box". Hence, we had to fallback on
Azure Classic
Resource Provider Registration
. Was curious to know a Resource Provider Registration isnt available in Azure Native. The one in Azure Nativev2 is a Provider Hub Registration, so I guess that does not help 😞
f

fast-vr-6049

06/21/2023, 4:40 PM
Sheesh! Sounds like a complex scenario. If it can be done via CLI, you could potentially try the Azure CLI or Azure Powershell resources? https://www.pulumi.com/registry/packages/azure-native-v2/api-docs/resources/azurecliscript/ https://www.pulumi.com/registry/packages/azure-native-v2/api-docs/resources/azurepowershellscript/
b

brave-planet-10645

06/27/2023, 9:49 AM
Just to add, v1 of the azure native provider also has the
providerregistration
resource: https://www.pulumi.com/registry/packages/azure-native/api-docs/providerhub/providerregistration/