If dev is being done on Azure Public Cloud and pro...
# azure
b
If dev is being done on Azure Public Cloud and prod is on Azure Gov Cloud, is there a way to quickly / easily change between stacks AND clouds?
t
You should be able to switch it with the
environment
config variable:
environment
The cloud environment to use. It can also be sourced from the ARM_ENVIRONMENT environment variable. Supported values are:
public
(default),
usgovernment
,
china
.
b
Hi @tall-librarian-49374, using
Copy code
config:
  azure-native:environment: usgovernment
in Pulumi.prod.yaml does not preclude me from having to run: az cloud set --name AzureUSGovernment Thoughts?
t
What happens if you don't?
b
It tries to spin up my deployment on my public cloud subscription
t
Let me give it a quick try here...
Yeah, it doesn't seem to work for me either... Could you please file an issue in https://github.com/pulumi/pulumi-azure-native/issues so that we could check why?
b
Will do. So this is a bug, correct?
t
I think so
b