https://pulumi.com logo
Title
i

icy-jordan-58549

04/21/2021, 1:42 PM
Any ideas why am I getting this?
Diagnostics:
  azuread:index:Application (aks):
    error: could not validate provider configuration: 1 error occurred:
        * Invalid or unknown key
I’ve set
azuread:clientId: ******
azuread:clientSecret:
  secure: ******
azuread:subscriptionId: ******
azuread:tenantId: ******
h

handsome-state-59775

04/21/2021, 1:52 PM
AFAIK, it should be
azure-native:*
i

icy-jordan-58549

04/21/2021, 1:52 PM
there are multiple providers
azure-native
azure
azuread 🙂
👀 1
b

broad-dog-22463

04/21/2021, 2:09 PM
what version of azuread @icy-jordan-58549?
subscriptionId isn't a provider field
i

icy-jordan-58549

04/21/2021, 2:15 PM
“@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

tall-librarian-49374

04/21/2021, 2:54 PM
I think it should at leats mention the name of the faulty key. May be worth an issue.
b

broad-dog-22463

04/21/2021, 3:20 PM
b

breezy-cricket-40277

06/18/2021, 2:35 PM
What’s the workaround to this?
t

tall-librarian-49374

06/18/2021, 2:37 PM
For the problem above - remove
azuread:subscriptionId
from the config file
b

breezy-cricket-40277

06/18/2021, 2:38 PM
Then I get this:
t

tall-librarian-49374

06/18/2021, 2:38 PM
Which version are you using?
b

breezy-cricket-40277

06/18/2021, 2:38 PM
"@pulumi/azuread": "^4.2.1",
I’m going to try to downgrade it to
4.2.0
and see how that works.
t

tall-librarian-49374

06/18/2021, 2:57 PM
I’m confused then. I got the error because I had subscriptionId just yesterday
b

breezy-cricket-40277

06/18/2021, 2:58 PM
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

icy-jordan-58549

06/18/2021, 3:21 PM
@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

breezy-cricket-40277

06/18/2021, 3:22 PM
My issue is with
azuread
not
azure
provider.
i

icy-jordan-58549

06/18/2021, 3:22 PM
no, just try 🙂
try to set
azure:subscriptionId
, the error is wrong 🙂 it tries to read from
azure:
b

breezy-cricket-40277

06/18/2021, 3:22 PM
I’m already giving it values for
azure
, i’ll test with
azure-native
😛
i

icy-jordan-58549

06/18/2021, 3:23 PM
ok:) I am using azuread, and have both set just in case 🙂
b

breezy-cricket-40277

06/18/2021, 3:23 PM
Current config
i

icy-jordan-58549

06/18/2021, 3:24 PM
replace
azuread
with
azure-native
b

breezy-cricket-40277

06/18/2021, 3:29 PM
replacing doesn’t work, then it complains about missing
azuread
i’ll try to add them together
i

icy-jordan-58549

06/18/2021, 3:34 PM
do you keep anything for
azuread
?
try to remove any config that you are giving to it
b

breezy-cricket-40277

06/18/2021, 3:36 PM
But are you using
azure
or
azure-native
in your project? I’m using
azure
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

icy-jordan-58549

06/18/2021, 3:52 PM
¯\_(ツ)_/¯
I am using both
b

breezy-cricket-40277

06/25/2021, 9:08 AM
I’ve noticed what the problem was.. I was using
azuread.subscriptionId
somewhere in my code and was pulling the config with
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.
pulumi.Config('azure').require('subscriptionId');