Any ideas why am I getting this? ```Diagnostics: ...
# azure
i
Any ideas why am I getting this?
Copy code
Diagnostics:
  azuread:index:Application (aks):
    error: could not validate provider configuration: 1 error occurred:
        * Invalid or unknown key
I’ve set
Copy code
azuread:clientId: ******
azuread:clientSecret:
  secure: ******
azuread:subscriptionId: ******
azuread:tenantId: ******
h
AFAIK, it should be
azure-native:*
i
there are multiple providers
azure-native
azure
azuread 🙂
👀 1
b
what version of azuread @icy-jordan-58549?
subscriptionId isn't a provider field
i
“@pulumi/azuread”: “^4.0.0",
yep, this was also mentioned by @tall-librarian-49374
the message is unclear, should provider throw exception if you give it too much info? 🙂
t
I think it should at leats mention the name of the faulty key. May be worth an issue.
b
b
What’s the workaround to this?
t
For the problem above - remove
azuread:subscriptionId
from the config file
b
Then I get this:
t
Which version are you using?
b
Copy code
"@pulumi/azuread": "^4.2.1",
I’m going to try to downgrade it to
4.2.0
and see how that works.
t
I’m confused then. I got the error because I had subscriptionId just yesterday
b
Yeah If I add it, then i get the error in the first topic:
So i’m kind of stuck.. I am downgrading a bit
i
@breezy-cricket-40277 try to give
azure:subscriptionId
and
azure-native:subscriptionId
as far as I remember, azuread reads values out of
azure
and the error is wrong
b
My issue is with
azuread
not
azure
provider.
i
no, just try 🙂
try to set
azure:subscriptionId
, the error is wrong 🙂 it tries to read from
azure:
b
I’m already giving it values for
azure
, i’ll test with
azure-native
😛
i
ok:) I am using azuread, and have both set just in case 🙂
b
Current config
i
replace
azuread
with
azure-native
b
replacing doesn’t work, then it complains about missing
azuread
i’ll try to add them together
i
do you keep anything for
azuread
?
try to remove any config that you are giving to it
b
But are you using
azure
or
azure-native
in your project? I’m using
azure
Copy code
error: Missing required configuration variable 'azuread:subscriptionId'
        please set a value using the command `pulumi config set azuread:subscriptionId <value>`
I dunno what’s going on, I think i’m going to just downgrade the provider.
i
¯\_(ツ)_/¯
I am using both
b
I’ve noticed what the problem was.. I was using
azuread.subscriptionId
somewhere in my code and was pulling the config with
Copy code
pulumi.Config('azuread').require('subscriptionId');
Since I had
azure
and
azuread
with the same parameters, a quick change to use
azure
instead of
azuread
fixed my problem.
Copy code
pulumi.Config('azure').require('subscriptionId');