https://pulumi.com logo
#python
Title
# python
b

broad-noon-76535

10/14/2022, 3:20 PM
I can't seem to figure out how to read these config values starting with "azure*":
Copy code
config:
  azure-native:location: northeu
  azure:subscriptionId: 1234-abcd
  my-project:context:
    some-key: some-value
I am only able to fetch the config values under "my-project", for some reason. Can anyone enlighten me? 🕯️
m

millions-furniture-75402

10/14/2022, 5:22 PM
Copy code
const azureConfig = new pulumi.Config("azure");
const azureNativeConfig = new pulumi.Config("azure-native");

cost location = azureNativeConfig.get("location");
cost subscriptionId = azureConfig.get("subscriptionId");
b

broad-noon-76535

10/17/2022, 8:18 AM
Thank you 🙏 Used this Python code:
azure_cfg = pulumi.Config("azure")
subscription_id = azure_cfg.get("subscriptionId");
Didn't know about the default behavior of Config(), in case now parameter is supplied. But that explains it.