douzong7283 2018-09-27 17:30
浏览 118

Go SDK的API调用中需要进行哪些更改以使其适用于Azure Govcloud

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_ENVIRONMENT environment variable prior to calling the NewAuthorizerFromEnvironment() method. Set the value of this environment variable to: AZUREUSGOVERNMENTCLOUD.

    评论

报告相同问题?