Using azure-sdk-for-go with azure.com

Go integration

✓ Official SDK

Install

go get github.com/Azure/azure-sdk-for-go

Quick start

import "azure-sdk-for-go"

// Initialize client
client := azure-sdk-for-go.NewClient("YOUR_API_KEY")
Get Instance Metadata for the Virtual Machine.
curl \
  /instance
Get information about AAD Metadata
curl \
  /identity/info
Get Attested Data for the Virtual Machine.
curl \
  /attested/document
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-go
Go
API
azure.com
azure.com:imds

At a glance

Language Go
Endpoints4
✓ Official