pulumi-azure-native icon indicating copy to clipboard operation
pulumi-azure-native copied to clipboard

Equivalent of core.ResourceProviderRegistration?

Open polivbr opened this issue 3 years ago • 3 comments

Is there the equivalent of core.ResourceProviderRegistration from the classic Azure provider?

It looks like it would be in the resources module, but I don't see it.

polivbr avatar Aug 17 '21 18:08 polivbr

The resource in the classic provider corresponds to this POST endpoint. The native provider doesn't support POST endpoints at the moment, only PUT-based resources. We should consider extending it for such scenarios.

mikhailshilkov avatar Aug 18 '21 09:08 mikhailshilkov

Still happening in 2024 🤣

What makes this even worse is the BS AI answers from Pulumi where it just makes stuff up: image https://www.pulumi.com/ai/answers/c7CeZ6aZNNFmFPUc3SVzQy/registering-azure-resource-providers-for-successful-deployments.

ToroNZ avatar Feb 25 '24 03:02 ToroNZ

So if because of this one has to use the Terraform provider, we also need to set ARM_SKIP_PROVIDER_REGISTRATION right? Unless we use the Terraform provider for additional resource creation, not just sub provider registration.

Otherwise it errors out with:

To manage this Resource Provider Registration with Terraform you need to opt-out
    of Automatic Resource Provider Registration (by setting 'skip_provider_registration'
    to 'true' in the Provider block) to avoid conflicting with Terraform.: The Resource Provider "Microsoft.Network" is automatically registered by Terraform.
    
    To manage this Resource Provider Registration with Terraform you need to opt-out
    of Automatic Resource Provider Registration (by setting 'skip_provider_registration'
    to 'true' in the Provider block) to avoid conflicting with Terraform.

ToroNZ avatar Feb 25 '24 03:02 ToroNZ