I've used Go SDK for using deploying applications in Azure. I'm now planning to do the same for Azure Gov Cloud. Is there any change that has to be made in the calls from Compute, Storage, Network, Subscription client APIs to make it work for Azure Govcloud? For example for getting the list of locations, should there be any change in the API call arguments to make it work in GovCloud?
2条回答 默认 最新
doupike2351 2018-10-01 19:44关注Based on the documentation you should just be able to set the
AZURE_ENVIRONMENTenvironment variable prior to calling the NewAuthorizerFromEnvironment() method. Set the value of this environment variable to:AZUREUSGOVERNMENTCLOUD.解决 无用评论 打赏 举报