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?
What are the changes necessary to be made in the Go SDK's API calls to make it work for Azure Govcloud
350 Views Asked by Bharat MV At
2
There are 2 best solutions below
0
MarStr
On
When interacting with sovereign clouds, which are often updated at a slower cadence than the Public cloud, you'll need to make sure that you choose API Versions which are available in your cloud. The Azure-SDK-for-Go has been specifically designed to facilitate this, putting API-Version in the path name.
In addition, as @Steve Michelotti pointed out, you'll want to inject the Government Environment so that the correct base URLs are used by the SDK.
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in GO
- How do I get all the attributes of an XML element using Go?
- Type cast custom types to base types
- Why are Revel optional func parameters in controller not working? CRUD code redundancy
- Streaming commands output progress
- single ampersand between 2 expressions
- golang goroutine use SSHAgent auth doesn't work well and throw some unexpect panic
- How do I do a literal *int64 in Go?
- Emulating `docker run` using the golang docker API
- How to print contents of channel without changing it
- Golang time zone parsing not returning the correct zone on ubuntu server
- Is os.File's Write() threadsafe?
- How to get the pointer of return value from function call?
- How do I represent an Optional String in Go?
- Fibonacci in Go using channels
- Boltdb-key-Value Data Store purely in Go
Related Questions in SDK
- Customizing tweet view using Fabric SDK
- Facebook iOS SDK 4 error info.plist
- Why my android application stopped when I run it in Emulator?
- android.support.v7.app.ActionBarActivity cannot be resolved
- Ionic cordova build
- Programmatic Access to Apple Watch Crown
- iOS using microsoft band build error
- Framework causing errors in Xcode after adding cocoapods
- Downgrade Android App Sdk
- How to utilise GStreamer plugins-good/bad/ugly in iOS SDK
- I don't know what exactly is wrong with my SDK and ADT Plugins
- How to configure Android SDK manager with socks?
- Errors after updating sdk with Eclipse
- Paypal in-context express checkout - modal windows incorrect
- share link on facebook,can not published.error "We are sorry.this post is no longer available, it may have been removed"
Related Questions in CLOUD
- Cloud Connection with Java Window application
- CometCloud installation, and possible alternatives
- Creating a scalable database for android app | cloud hosted
- Arduino NearBus NearbusEther_v16.h: No such file or directory
- how to measure Software as a services performace
- Did google change/update related to vm ssl connections to Cloud SQL?
- Pinging a private IP from one private subnet to another private subnet
- Evernote authentication not working via evernote android sdk
- When upload Bitmap stream to Azure storage, it store zero/empty image
- How to connect Clusterpoint database to an android appliaction
- Installing CouchDB on IaaS?
- Error while creating Instance in gcloud ?. How to create an instance using Google Cloud
- In Spark, does the filter function turn the data into tuples?
- Which language to choose? #suggestions
- Dropbox for local development, Git for cloud
Related Questions in AZURE-GOV
- Are the Azure usage and rate card APIs supported for US GOV EA subscriptions?
- Can application in public cloud be authorized to fetch data from government tenant via graph api?
- Is it possible to use an Azure AD App registered in 'commercial' public Azure portal from a US Gov tenant?
- Azure Python SDK - connecting to USGov with CLI Credentials fails?
- Does the Azure AD audit log API work for Azure US Government tenants?
- Can you invite Guest user in Azure Government cloud AAD tenant?
- What are the changes necessary to be made in the Go SDK's API calls to make it work for Azure Govcloud
- Is VSTS compatible with Azure GovCloud?
- ResourceNotFoundError: Operation returned an invalid status 'Not Found' when using the get function for Azure virtual machines?
- Unable to login to Azure using `azcopy login --tenant-id` with the Tenant ID from an Azure Government account?
- Invalid scope for ComputeManagementClient for Azure US Government account?
- Exporting the Specific Tags applied at the subscription level
- Are there any guidelines for making mobile applications Azure Govt Cloud compliant?
- What are the key differences between service trust portal and compliance manager
- How to test Azure AD in Azure government?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.