This message was deleted.
# dotnet
s
This message was deleted.
b
are you passing those env vars to a provider?
a
Hey @billowy-army-68599 - thanks for responding! Not in this instance - my assumption was that the Provider would look for the presence of the environment variables in the same way it detects the authentication context of the az CLI? When I did try passing the parameters into the Azure Provider manually...
Copy code
Provider = new Provider("azure-provider", new ProviderArgs()
        {
            Environment = "public",
            ClientId = AppConfig.GetValue<string>("ARM_CLIENT_ID"),
            ClientSecret = AppConfig.GetValue<string>("ARM_CLIENT_SECRET"),
            TenantId = AppConfig.GetValue<string>("ARM_TENANT_ID"),
            SubscriptionId = AppConfig.GetValue<string>("ARM_SUBSCRIPTION_ID")
        });
...I got an error stating that location had not been set...
Copy code
azure-native:resources:ResourceGroup resource 'rg-dev-sta-marketplace-eus-001' has a problem: missing required property 'location'. Either set it explicitly or configure it with 'pulumi config set azure-native:location <value>'.
but there is no Location property on the Provider, and I have already set the
azure-native:location
in my stack config.
I've been digging around, but still struggling to work out what is going on here =/
I'm not keen to encrypt these credentials into the Pulumi config because it seems to be quite easy to extract them at runtime