This message was deleted.
# getting-started
s
This message was deleted.
b
@stocky-butcher-62635 the error is in the output, your config is reading:
Copy code
string applicationName = config.Require("RwbPulumiProject:ApplicationName");
which means it needs to be set as:
Copy code
pulumi config set RwbPulumiProject:RwbPulumiProject:ApplicationName
If you change your code to:
Copy code
string applicationName = config.Require("ApplicationName");
it should work
regarding:
Is is possible to rename the class from MyStack? My* really makes my skin crawl.
Yes, of course it's possible. You'd just need to modify the async call
s
There's also an
Copy code
azure-native:location: uksouth
but that appears to be impossible to read either with or without the prefix
g
It's better to set the config values with the
pulumi config set
terminal command versus writing them in the YAML file directly. it's of the form
pulumi config set <key> <value>
. So, for your example, you would run
pulumi config set azure-native:location uksouth
(as an example, here's how someone set up an Azure Native C# Pulumi program)
s
but I can
but I can't read that value because it's not in the namespace of the project?
g
You can set it in the YAML file, but the command line call ensures that it's formatted as expected, which is why I recommend it. In terms of not being able to read the value, how are you calling it?
b
@stocky-butcher-62635 you can read the provider config with this:
Copy code
string awsNative = config.Require("aws-native");