The Azure SDK for Go supplies modular packages to consume Azure services and to configure and manage Azure resources from Go applications.
Overview
The Azure SDK for Go is Microsoft's official Go libraries for calling Azure REST APIs. Packages are grouped under the sdk directory by service, with separate client modules for using a service and management modules for provisioning and configuration.
Client modules follow Azure Go SDK guidelines and share cross-cutting behavior through the azcore module, including retries, logging, transport, and authentication. Management modules live under sdk/resourcemanager and add capabilities such as the Azure Identity module, an HTTP pipeline with custom policies, error handling, and distributed tracing.
Microsoft recommends the current track-2 modules in sdk rather than the deprecated root module paths under services, storage, and profiles, which no longer receive support. A migration guide describes moving from those historical packages. Stable non-beta modules are suggested when you need production-ready APIs.
Libraries target the two most recent major Go releases, matching Go's own support policy. Documentation on Microsoft Learn covers installation, authentication with Azure Identity, and samples for storage, databases, virtual machines, serverless functions, and containers. Telemetry is enabled by default on new clients and can be disabled through ClientOptions.Telemetry.
Key features
- Per-service client Go modules
- Resource manager configuration modules
- Shared azcore retries and auth
- Azure Identity integration
- Distributed tracing support
- Migration path from track-1 packages
- Configurable telemetry opt-out
- Example code per package
Use cases
- Calling Azure APIs from Go services
- Provisioning resources with management SDKs
- Uploading blobs and using data plane APIs
- Migrating legacy Go Azure imports
- Building automation against Azure