This message was deleted.
s
This message was deleted.
b
Copy code
pulumi config set azure:clientid <value>
This isn’t correct, it needs to be
azure:clientId
- note the casing
Copy code
var config = new Pulumi.Config();
var clientId = config.Require("azure:clientId");
This is also incorrect, config is namespaced, so you’d need to do:
Copy code
var config = new Pulumi.Config("azure");
var clientId = config.Require("clientId");
Config is namespaced. Again, note the casing.
❤️ 1
n
ok. so when I add my own namespace I need to say in the Pulumi.Config to tell it to use my configs from that section? so pulumi config set aws:foo <value>
Copy code
var config = new Pulumi.Config("aws");
var clientId = config.Require("foo");
?
b
yes that’s right
but provider namespaces are reserved for that provider
so if you use the AWS provider
var config = new Pulumi.Config("aws");
needs a valid value from the AWS provider
n
ok. What I do it that in Powershell I create an app registration and a sercvice principle for that one. I can't do it with Pulumi because I can't set the build server as an owner to tha app registration. So in that case I want to store the serviceprinciple to my config. that's why i named it azure:clientId but then it might be bad to say azure: I wanted to namespace all settings I might need to add for azure parts to my pulumi.<env>.yamls
b
no that’s exactly what you need to do to authenticate to azure https://www.pulumi.com/registry/packages/azure/api-docs/provider/#clientid