Azure SDK for Go (January 2024)
The Azure SDK team is pleased to announce our January 2024 client library releases.
27 packages released this month.
Stable Packages (11)
-
App Configuration
-
Identity
-
Resource Management - Batch
-
Resource Management - Compute
-
Resource Management - Data Protection
-
Resource Management - Device Update
-
Resource Management - Healthcare APIs
-
Resource Management - Network
-
Resource Management - Service Fabric
-
Resource Management - Virtualmachineimagebuilder
-
Service Bus
Patch Updates (5)
-
Core
-
Event Hubs
-
Identity
-
Resource Management - Connected VMWare
-
Storage - Blobs
Beta Packages (10)
-
Identity
-
OpenAI
-
Resource Management - Container Service
-
Resource Management - Net App
-
Resource Management - PostgreSQL Flexible Server
-
Resource Management - SQL
-
Resource Management - Self Help
-
Storage - Blobs
-
Storage - Files Data Lake
-
Storage - Files Share
Release highlights
App Configuration 1.1.0 Changelog
Features Added
- Added support for
Snapshots
.
Core 1.9.1 Changelog
Bugs Fixed
- The
retry-after-ms
andx-ms-retry-after-ms
headers weren’t being checked during retries.
Event Hubs 1.0.3 Changelog
Bugs Fixed
- Processor distributes partitions optimally, which would result in idle or over-assigned processors. (PR#22153)
Identity 1.5.0 Changelog
Bugs Fixed
- Credentials now preserve MSAL headers e.g. X-Client-Sku
Breaking Changes
These changes affect only code written against a beta version such as v1.5.0-beta.1
- Removed persistent token caching. It will return in v1.6.0-beta.1
Identity 1.5.1 Changelog
Bugs Fixed
InteractiveBrowserCredential
handlesAdditionallyAllowedTenants
correctly
Identity 1.6.0-beta.1 Changelog
Features Added
- Restored persistent token caching API first added in v1.5.0-beta.1
- Added
AzureCLICredentialOptions.Subscription
OpenAI 0.4.0 Changelog
Features Added
- Chat completions has been extended to accomodate new features:
- Parallel function calling via Tools. See the function
ExampleClient_GetChatCompletions_functions
inexample_client_getchatcompletions_extensions_test.go
for an example of specifying a Tool. - “JSON mode”, via
ChatCompletionOptions.ResponseFormat
for guaranteed function outputs. - ChatCompletions can now be used with both text and images using
gpt-4-vision-preview
. - Azure enhancements to
gpt-4-vision-preview
results that include grounding and OCR features - GetImageGenerations now works with DallE-3.
-1106
model feature support forgpt-35-turbo
andgpt-4-turbo
, including use of a seed viaChatCompletionsOptions.Seed
and system fingerprints returned inChatCompletions.SystemFingerprint
.dall-e-3
image generation capabilities viaGetImageGenerations
, featuring higher model quality, automatic prompt revisions bygpt-4
, and customizable quality/style settings
Breaking Changes
azopenai.KeyCredential
has been replaced by azcore.KeyCredential.Deployment
has been renamed toDeploymentName
throughout all APIs.CreateImage
has been replaced withGetImageGenerations
.ChatMessage
has been split into per-role types. The functionExampleClient_GetChatCompletions
inexample_client_getcompletions_test.go
shows an example of this.
OpenAI 0.4.1 Changelog
Bugs Fixed
AudioTranscriptionOptions.Filename
andAudioTranslationOptions.Filename
fields are now properly propagated, allowing for disambiguating the format of an audio file when OpenAI can’t detect it. (PR#22210)
Resource Management - Batch 2.2.0 Changelog
Resource Management - Compute 5.4.0 Changelog
Resource Management - Connected VMWare 1.1.1 Changelog
Resource Management - Container Service 4.7.0-beta.1 Changelog
Resource Management - Data Protection 3.0.0 Changelog
Resource Management - Device Update 1.3.0 Changelog
Resource Management - Healthcare APIs 2.0.0 Changelog
Resource Management - Net App 6.0.0-beta.1 Changelog
Resource Management - Network 5.0.0 Changelog
Resource Management - PostgreSQL Flexible Server 4.0.0-beta.4 Changelog
Resource Management - SQL 2.0.0-beta.4 Changelog
Resource Management - Self Help 2.0.0-beta.3 Changelog
Resource Management - Service Fabric 2.0.0 Changelog
Resource Management - Virtualmachineimagebuilder 2.2.0 Changelog
Service Bus 1.6.0 Changelog
Features Added
- ReceiverOptions.TimeAfterFirstMessage lets you configure the amount of time, after the first message in a batch is received, before we return messages. (PR#22154)
Bugs Fixed
- Settling a message (using CompleteMessage, AbandonMessage, etc..) on a different Receiver instance than you received on no longer leaks memory. (PR#22253)
Storage - Blobs 1.2.1 Changelog
Features Added
- Exposed GetSASURL from specialized clients
Bugs Fixed
- Fixed case in Blob Batch API when blob path has / in it. Fixes #21649.
- Fixed SharedKeyMissingError when using client.BlobClient().GetSASURL() method
- Fixed an issue that would cause metadata keys with empty values to be omitted when enumerating blobs.
- Fixed an issue where passing empty map to set blob tags API was causing panic. Fixes #21869.
- Fixed an issue where downloaded file has incorrect size when not a multiple of block size. Fixes #21995.
- Fixed case where
io.ErrUnexpectedEOF
was treated as expected error inUploadStream
. Fixes #21837.
Storage - Blobs 1.3.0-beta.1 Changelog
Features Added
- Updated service version to
2023-11-03
. - Added support for Audience when OAuth is used.
Bugs Fixed
- Block
SharedKeyCredential
authentication mode for non TLS protected endpoints. Fixes #21841.
Storage - Files Data Lake 1.1.0-beta.1 Changelog
Features Added
- Encryption Scope For SAS
- CPK for Datalake
- Create SubDirectory Client
- Service Version upgrade to 2021-06-08
Bugs Fixed
- Block
SharedKeyCredential
authentication mode for non TLS protected endpoints. Fixes #21841.
Storage - Files Share 1.2.0-beta.1 Changelog
Features Added
- Updated service version to
2023-11-03
. - Added support for Audience when OAuth is used.
Bugs Fixed
- Block
SharedKeyCredential
authentication mode for non TLS protected endpoints. Fixes #21841. - Fixed a bug where
UploadRangeFromURL
using OAuth was returning error.
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/ai/azopenai@v0.4.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/ai/azopenai@v0.4.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/azcore@v1.9.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/azidentity@v1.5.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/azidentity@v1.5.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/azidentity@v1.6.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/data/azappconfig@v1.1.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/messaging/azeventhubs@v1.0.3
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/messaging/azservicebus@v1.6.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/batch/armbatch@v2.2.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/compute/armcompute@v5.4.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/connectedvmware/armconnectedvmware@v1.1.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/containerservice/armcontainerservice@v4.7.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/dataprotection/armdataprotection@v3.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/deviceupdate/armdeviceupdate@v1.3.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/healthcareapis/armhealthcareapis@v2.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/netapp/armnetapp@v6.0.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/network/armnetwork@v5.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers@v4.0.0-beta.4
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/selfhelp/armselfhelp@v2.0.0-beta.3
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/servicefabric/armservicefabric@v2.0.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/sql/armsql@v2.0.0-beta.4
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder@v2.2.0
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/storage/azblob@v1.2.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/storage/azblob@v1.3.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/storage/azdatalake@v1.1.0-beta.1
go get -u github.com/Azure/azure-sdk-for-go/sdk/sdk/storage/azfile@v1.2.0-beta.1
Feedback
If you have a bug or feature request for one of the libraries, please post an issue to GitHub.