Getting this currently on our dotnet stack with pu...
# general
s
Getting this currently on our dotnet stack with pulumi action v6, with all azure native components: warning: provider config warning: This property is deprecated and will be removed in v5.0 of the AzureRM provider. Please use the
resource_provider_registrations
property instead. anything i need to do here? 🙂
l
Hello @straight-whale-42634, In the Azure (Classic)
Provider
setup, I suppose you are using the input property
SkipProviderRegistration
: https://www.pulumi.com/registry/packages/azure/api-docs/provider/#skipproviderregistration_csharp Our Azure Classic provider is bridged to the Terraform AzureRM provider. They are currently at major v4 and will remove this property in an upcoming v5 of this provider. "Provider Registrations" are required for resource definitions (API endpoints) to be available for specific Azure resource types. The old behaviour of the provider was to register automatically a big set of resource providers. The new behavior will only default to a minimal set, but you can change that by using the
ResourceProviderRegistrations
property https://www.pulumi.com/registry/packages/azure/api-docs/provider/#resourceproviderregistrations_csharp or
ResourceProvidersToRegisters
property https://www.pulumi.com/registry/packages/azure/api-docs/provider/#resourceproviderstoregisters_csharp More info on this change can be found in the TF docs here: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#resource-provider-registrations
s
hm ok, we are using Azure Native, but maybe somewhere there is still something from old Azure Classic left
l
@straight-whale-42634 even if you don't have any more Azure resources managed by the Classic provider, having the dependency still in a project leaves the default provider resource in the Pulumi state of a project. To completely clean up, remove the Nuget dependency from your project setup and run one more
pulumi up
to also get rid of the default Azure Classic provider resource.
s
Hello @straight-whale-42634 & @limited-rainbow-51650, so this is a problem I've also run into. The issue being I HAVE to use the old provider and the new provider. The new being primary, but the old is used for a single action, Pulumi.Azure.AppService.CertificateBinding This is specifically to workaround the Circular dependency between WebAppHostNameBinding and Certificate. I'm unable to get rid of the warning. My current iteration of attempt looks like the below. Which still "functions" but also still warns. In my pulumi.yaml I've added
azure:skipProviderRegistration: "true"
And for the Provider I have
Copy code
var azureProvider = new Pulumi.Azure.Provider("azureOld", new Pulumi.Azure.ProviderArgs
        {
            SubscriptionId = SubscriptionId,
            ResourceProviderRegistrations = "none",
            ResourceProvidersToRegisters = {
                "Microsoft.Web",
            },
        });
But no matter how I attempt to isolate I still receive
Copy code
warning: provider config warning: This property is deprecated and will be removed in v5.0 of the AzureRM provider. Please use the `resource_provider_registrations` property instead.
Also I know it's isolated to this provider and
Pulumi.Azure.AppService.CertificateBinding
because the warning goes away as soon as I remove those two items. Any further insights would be helpful. thanks