Azure SDK for Go (September 2022)
The Azure SDK team is pleased to announce our September 2022 client library releases.
16 packages released this month.
Stable Packages (8)
-
Resource Management - Container Service
-
Resource Management - Dashboard
-
Resource Management - Deviceupdate
-
Resource Management - Labservices
-
Resource Management - Media Services
-
Resource Management - Nginx
-
Resource Management - Redis
-
Resource Management - Storage
Patch Updates (1)
- Core
Beta Packages (7)
-
Event Hubs
-
Resource Management - Agrifood
-
Resource Management - Alerts Management
-
Resource Management - Communication
-
Resource Management - Connectedvmware
-
Resource Management - Container Service
-
Resource Management - Devcenter
Release highlights
Core 1.1.3 Changelog
Bugs Fixed
- Adjusted the initial retry delay to 800ms per the Azure SDK guidelines.
Event Hubs 0.1.1 Changelog
Breaking Changes
- In the first beta, ConsumerClient took constructor parameter that required a partition ID, which meant you had to create multiple ConsumerClients if you wanted to consume multiple partitions. ConsumerClient can now create multiple PartitionClient instances (using ConsumerClient.NewPartitionClient), which allows you to share the same AMQP connection and receive from multiple partitions simultaneously.
- Changes to EventData/ReceivedEventData:
- ReceivedEventData now embeds EventData for fields common between the two, making it easier to change and resend.
ApplicationProperties
renamed toProperties
.PartitionKey
removed fromEventData
. To send events using a PartitionKey you must set it in the options when creating the EventDataBatch:
batch, err := producerClient.NewEventDataBatch(context.TODO(), &azeventhubs.NewEventDataBatchOptions{
PartitionKey: to.Ptr("partition key"),
})
Bugs Fixed
- ReceivedEventData.Offset was incorrectly parsed, resulting in it always being 0.
- Added missing fields to ReceivedEventData and EventData (CorrelationID)
- PartitionKey property was not populated for messages sent via batch.
Features Added
- Adding in the new Processor type, which can be used to do distributed (and load balanced) consumption of events, using a CheckpointStore. The built-in checkpoints.BlobStore uses Azure Blob Storage for persistence. A full example is in example_processor_test.go.
Resource Management - Agrifood 0.7.0 Changelog
Resource Management - Alerts Management 0.7.0 Changelog
Resource Management - Communication 2.0.0-beta.2 Changelog
Resource Management - Connectedvmware 0.1.0 Changelog
Resource Management - Container Service 2.1.0-beta.1 Changelog
Resource Management - Container Service 2.1.0 Changelog
Resource Management - Dashboard 1.0.0 Changelog
Resource Management - Devcenter 0.1.0 Changelog
Resource Management - Deviceupdate 1.0.0 Changelog
Resource Management - Labservices 1.0.0 Changelog
Resource Management - Media Services 3.1.0 Changelog
Resource Management - Nginx 1.0.0 Changelog
Resource Management - Redis 2.0.0 Changelog
Resource Management - Storage 1.1.0 Changelog
Need help
- For reference documentation visit the Azure SDK for Go documentation.
- For tutorials, samples, quick starts and other documentation, visit the Azure SDK for Go repository.
- File an issue via Github Issues.
Latest Releases
View all the latest versions of go packages here.
Installation Instructions
To use the latest GA and beta libraries use the go get
command to add the package to a go.mod file. If your project does not use Go modules, refer to the Go documentation for information about specifying dependencies.
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/azcore@v1.1.3
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/messaging/azeventhubs@v0.1.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/agrifood/armagrifood@v0.7.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/alertsmanagement/armalertsmanagement@v0.7.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/communication/armcommunication@v2.0.0-beta.2
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/containerservice/armcontainerservice@v2.1.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/containerservice/armcontainerservice@v2.1.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/dashboard/armdashboard@v1.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/devcenter/armdevcenter@v0.1.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/deviceupdate/armdeviceupdate@v1.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/labservices/armlabservices@v1.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/mediaservices/armmediaservices@v3.1.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/nginx/armnginx@v1.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/redis/armredis@v2.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/storage/armstorage@v1.1.0
Feedback
If you have a bug or feature request for one of the libraries, please post an issue to GitHub.