Closed m1rl0k closed 3 months ago
@m1rl0k I've tested via the SP auth way (i.e. ARM_CLIENT_ID
+ ARM_CLIENT_SECRET
), would you mind give that a try? Currently, I don't have an Azure China account to test the CLI auth scenario.
Update: I've successfully to make aztfexport
work for China cloud via CLI auth, by the following steps:
az cloud set --name AzureChinaCloud
az login --service-principal <options>
aztfexport <command> <options>
yes thank you this worked; however we had to export arm_environment: china and then all works with your metbod
I get errors when trying to authenticate to use tfexport against az china;
this is without a service principal;
this is with service principal and azureprofile.json set to to use;
obviously have set to azure china cloud, did az login.. gave owner to service principal on the sub trying to read... have tried multiple resource groups; etc what may i be missing? Any insights @magodo