Skip to content

jhendrixMSFT/c9demo1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This demo app uses the Azure SDK for Go to create a container group. It demonstrates the following concepts.

  1. Using auth.NewAuthorizerFromEnvironment() for authorization.
  2. Blocking on an asynchronous operation until it completes.
  3. Optionally polling on the asynchronous operation while performing other work.
  4. How to traverse paged results, either by page or via a page iterator.

How to Build

  1. Execute go get github.com/jhendrixMSFT/c9demo1
  2. Execute dep ensure
  3. Execute go build

How to Run

Set the appropriate environment variables depending on the type of authentication you wish to use. For authorization with a service principal set the following environment variables.

AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_TENANT_ID

More information about authorization can be found here.

License

This code is provided under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages