https://pulumi.com logo
Title
c

crooked-sunset-90921

06/01/2022, 11:06 PM
Anyone know how to get the currently configured azure-native location? The config file has: config: azure-native:location: eastus2 But I can't figure out how to access it programmatically... any ideas?
a

average-tiger-58107

06/01/2022, 11:09 PM
c

crooked-sunset-90921

06/01/2022, 11:15 PM
Aha, I need to pass the azure-native as the library name for the constructor... let me try that
Awesome, that worked, thanks @average-tiger-58107
🙌 1
a

average-tiger-58107

06/01/2022, 11:18 PM
You should be able to omit
azure-native
if that key corresponds to your default key/namespace
l

little-cartoon-10569

06/01/2022, 11:19 PM
It won't 🙂 The default namespace is your project name.
c

crooked-sunset-90921

06/01/2022, 11:19 PM
yeah exactly... config file is this:
config:
azure-native:location: eastus2
app-frontend:testvar: foo
so I'm having to do this:
config = pulumi.Config()
azure_config = pulumi.Config("azure-native")
2
a

average-tiger-58107

06/01/2022, 11:20 PM
ah, i know nothing about azure-native, so figured it could have been the project name 😛
c

crooked-sunset-90921

06/01/2022, 11:20 PM
lol, no... it's the provider, but that para helped me
a

average-tiger-58107

06/01/2022, 11:20 PM
good stuff
c

crooked-sunset-90921

06/01/2022, 11:20 PM
good fluke, thanks again