Anyone know how to get the currently configured az...
# general
c
Anyone know how to get the currently configured azure-native location? The config file has: config: azure-nativelocation eastus2 But I can't figure out how to access it programmatically... any ideas?
a
c
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
You should be able to omit
azure-native
if that key corresponds to your default key/namespace
l
It won't 🙂 The default namespace is your project name.
c
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
ah, i know nothing about azure-native, so figured it could have been the project name 😛
c
lol, no... it's the provider, but that para helped me
a
good stuff
c
good fluke, thanks again