Azure SDK for .NET (February 2021)
The Azure SDK team is pleased to announce our February 2021 client library releases.
GA
- Event Hubs
- Service Bus
- Search
Updates
- Synapse
Beta
- Form Recognizer
- Metrics Advisor
- Text Analytics
- Event Grid
- Key Vault
- Storage
Installation Instructions
To install any of our packages, please search for them via Manage NuGet Packages... in Visual Studio (with Include prerelease checked) or copy these commands into your terminal:
$> dotnet add package Azure.AI.FormRecognizer --version 3.1.0-beta.2
$> dotnet add package Azure.AI.MetricsAdvisor --version 1.0.0-beta.3
$> dotnet add package Azure.AI.TextAnalytics --version 5.1.0-beta.4
$> dotnet add package Azure.Messaging.EventGrid --version 4.0.0-beta.5
$> dotnet add package Azure.Messaging.EventHubs
$> dotnet add package Azure.Messaging.EventHubs.Processor
$> dotnet add package Azure.Messaging.ServiceBus
$> dotnet add package Azure.Search.Documents
$> dotnet add package Azure.Analytics.Synapse.AccessControl --version 1.0.0-preview.3
$> dotnet add package Azure.Analytics.Synapse.Artifacts --version 1.0.0-preview.6
$> dotnet add package Azure.Analytics.Synapse.ManagedPrivateEndpoints --version 1.0.0-beta.2
$> dotnet add package Azure.Analytics.Synapse.Monitoring --version 1.0.0-beta.2
$> dotnet add package Azure.Analytics.Synapse.Spark --version 1.0.0-preview.5
$> dotnet add package Azure.Security.KeyVault.Administration --version 4.0.0-beta.4
$> dotnet add package Azure.Security.KeyVault.Certificates --version 4.2.0-beta.4
$> dotnet add package Azure.Security.KeyVault.Keys --version 4.2.0-beta.4
$> dotnet add package Azure.Security.KeyVault.Secrets --version 4.2.0-beta.4
$> dotnet add package Azure.Storage.Blobs --version 12.9.0-beta.1
$> dotnet add package Azure.Storage.Blobs.Batch --version 12.6.0-beta.1
$> dotnet add package Azure.Storage.Blobs.ChangeFeed --version 12.0.0-preview.9
$> dotnet add package Azure.Storage.Common --version 12.8.0-beta.1
$> dotnet add package Azure.Storage.Files.DataLake --version 12.7.0-beta.1
$> dotnet add package Azure.Storage.Files.Shares --version 12.7.0-beta.1
$> dotnet add package Azure.Storage.Queues --version 12.7.0-beta.1
Feedback
If you have a bug or feature request for one of the libraries, please file an issue in our repo.
Release highlights
Form Recognizer Changelog
Breaking Changes
- Renamed the model
AppearancetoTextAppearance. - Renamed the model
StyletoTextStyle. - Renamed the extensible enum
TextStyletoTextStyleName. - Changed object type for property
PagesunderRecognizeContentOptionsfromIEnumerabletoIList. - Changed model type of
LocalefromstringtoFormRecognizerLocaleinRecognizeBusinessCardsOptions,RecognizeInvoicesOptions, andRecognizeReceiptsOptions. - Changed model type of
LanguagefromstringtoFormRecognizerLanguageinRecognizeContentOptions.
Metrics Advisor Changelog
New Features
- Added support for AAD authentication in
MetricsAdvisorClientandMetricsAdvisorAdministrationClient.
Breaking Changes
- The constructors of multiple classes, including
DataFeed,AnomalyDetectionConfiguration,AnomalyAlertConfiguration,EmailNotificationHook, andWebNotificationHookare now parameterless. To see the full list of constructors affected, please check the Changelog. - Collection properties are not settable anymore.
CreateandAddmethods won’t return the ID of the created entity anymore. A full object will be returned instead.
Key Bug Fixes
- Fixed a bug in which setting
WebNotificationHook.CertificatePasswordwould actually set the propertyUsernameinstead. - Fixed a bug in which an
ArgumentNullExceptionwas thrown when getting a data feed from the service as a viewer. - Fixed a bug in which a data feed’s administrators and viewers could not be set during creation.
Text Analytics Changelog
New Features
- Added property
LengthtoCategorizedEntity,SentenceSentiment,LinkedEntityMatch,AspectSentiment,OpinionSentiment, andPiiEntity. StringIndexTypehas been added to all endpoints that expose the new propertiesOffsetandLengthto determine the encoding the service should use. It is added into theTextAnalyticsRequestOptionsclass and default for this SDK isUTF-16.AnalyzeHealthcareEntitiesOperationnow exposes the propertiesCreatedOn,ExpiresOn,LastModified, andStatus.AnalyzeBatchActionsOperationnow exposes the propertiesCreatedOn,ExpiresOn,LastModified,Status,ActionsFailed,ActionsInProgress,ActionsSucceeded,DisplayNameandTotalActions.
Breaking Changes
- Analyze healthcare was redesigned. It can be accessed now by calling the
StartHealthcareEntitiesandStartHealthcareEntitiesAsyncmethods. All operations now support result pagination. Renames and structure overall changed. For more information, please see the changelog notes. - Analyze operation batch was redesigned. It can be accessed now by calling the
StartAnalyzeBatchActionsandStartAnalyzeBatchActionsAsyncmethods. All operations now support result pagination. Renames and structure overall changed. For more information, please see the changelog notes.
EventGrid Changelog
New Features
- Added
TryGetSystemEventDatathat attempts to deserialize event data into a known system event. - Added
EventGridSasBuilderfor constructing SAS tokens. - Added
SystemEventNamesthat contain the names that will be stamped into the event Type for system events.
Breaking Changes
- Updated
GetDatamethod to always returnBinaryDatainstead ofobject. It no longer deserializes system events. - Removed the
CloudEventconstructor overload that tookBinaryDataand replaced with an overload that acceptsReadOnlyMemory<byte> - Replaced use of
EventGridSasCredentialwithAzureSasCredential. - Removed
GenerateSharedAccessSignaturein favor ofEventGridSasBuilder.
Event Hubs Changelog
New Features
- Connection strings can now be parsed into their key/value pairs using the
EventHubsConnectionStringPropertiesclass. - The body of an event has been moved to the
EventData.EventBodyproperty and makes use of the newBinaryDatatype. To preserve backwards compatibility, the existingEventData.Bodyproperty has been preserved with the current semantics. - It is now possible to specify a custom endpoint to use for establishing the connection to the Event Hubs service in the
EventHubConnectionOptionsused by each of the clients.
Key Bug Fixes
- Upgraded the
Microsoft.Azure.Amqplibrary to resolve crashes occurring in .NET 5.
Event Hubs Processor Changelog
New Features
- Additional options for tuning load balancing have been added to the
EventProcessorClientOptions. - It is now possible to specify a custom endpoint to use for establishing the connection to the Event Hubs service in the
EventHubConnectionOptionsfor the processor. - Interactions with Blob Storage have been tuned for better performance and more efficient resource use. This will also improve start-up time, especially when using the
Greedyload balancing strategy.
Key Bug Fixes
- Upgraded the
Microsoft.Azure.Amqplibrary to resolve crashes occurring in .NET 5.
ServiceBus Changelog
Acknowledgments
Thank you to our developer community members who helped to make the Service Bus client library better with their contributions to this release:
- Aaron Dandy (GitHub)
Added
- Added virtual keyword to all client properties to enable mocking scenarios.
- Added
ServiceBusModelFactory.ServiceBusMessageBatchto allow mocking aServiceBusMessageBatch.
Key Bug Fixes
- Fixed an issue with the
ServiceBusProcessorwhere closing and disposing or disposing multiple times resulted in an exception. (A community contribution, courtesy of aarondandy) - Fixed issue with batch size calculation when using
ServiceBusMessageBatch.
Search Changelog
New Features
- Added setters for
MaxLengthandMinLengthinLengthTokenFilter. - Added a public constructor for
SearchIndexingBufferedSender<T>. - Added
IndexActionEventArgs<T>to track indexing actions. - Added
IndexActionCompletedEventArgs<T>to track the completion of an indexing action. - Added
IndexActionFailedEventArgs<T>to track the failure of an indexing action.
Breaking Changes
- Renamed
SearchIndexingBufferedSenderOptions<T>.MaxRetriestoSearchIndexingBufferedSenderOptions<T>.MaxRetriesPerIndexAction. - Renamed
SearchIndexingBufferedSenderOptions<T>.MaxRetryDelaytoSearchIndexingBufferedSenderOptions<T>.MaxThrottlingDelay. - Renamed
SearchIndexingBufferedSenderOptions<T>.RetryDelaytoSearchIndexingBufferedSenderOptions<T>.ThrottlingDelay. - Removed the helper method
SearchClient.CreateIndexingBufferedSender<T>(). Instead, callers are expected to use the public constructor ofSearchIndexingBufferedSender<T>.
Azure Communication Administration will be deprecated
- Identity client is moved to new package Azure Communication Identity.
- Phone number administration will be moved into a new package Azure Communication Phone Numbers.
Azure Communication Common 1.0.0-beta.4 Changelog
New Features
- Added MicrosoftTeamsUserIdentifier.
Breaking Changes
- Renamed CommunicationUserCredential to CommunicationTokenCredential.
- Replaced CommunicationTokenCredential(bool refreshProactively, Func<CancellationToken, string> tokenRefresher,Func<CancellationToken, ValueTask
>? asyncTokenRefresher = null, string? initialToken = null). with CommunicationTokenCredential(CommunicationTokenRefreshOptions tokenRefreshOptions). - Renamed PhoneNumber to PhoneNumberIdentifier.
- Renamed CommunicationUser to CommunicationUserIdentifier.
- Removed CallingApplication.
- Renamed Id to RawId in PhoneNumberIdentifier.
Azure Communication Identity 1.0.0-beta.4 ChangeLog
New Features
- Added CommunicationIdentityClient (originally was part of the Azure.Communication.Administration package).
- Added support to create CommunicationIdentityClient with TokenCredential.
- Added support to create CommunicationIdentityClient with AzureKeyCredential.
- Added ability to create a user and issue token for it at the same time.
Breaking Changes
- CommunicationTokenScope.Pstn is removed.
- CommunicationIdentityClient.RevokeTokens now revoke all the currently issued tokens instead of revoking tokens issued prior to a given time.
- CommunicationIdentityClient.IssueToken returns an instance of
Azure.Core.AccessTokeninstead ofCommunicationUserToken.
Azure Communication Chat (1.0.0-beta.4) ChangeLog
New Features
- Added support for
CreateChatThreadResultandAddChatParticipantsResultto handle partial errors in batch calls. - Added idempotency identifier parameter for chat creation calls.
- Added pagination support for
GetReadReceipts,GetReadReceiptsAsyncandGetParticipants,GetParticipantsAsync. - Added new model for messages and content types:
Text,Html,ParticipantAdded,ParticipantRemoved,TopicUpdated. - Added new model for errors (
CommunicationError). - Added notifications for thread level changes.
Breaking Changes
- Updated to Azure.Communication.Common version 1.0.0-beta.4. Now uses
CommunicationUserIdentifierandCommunicationIdentifierin place ofCommunicationUser, andCommunicationTokenCredentialinstead ofCommunicationUserCredential. - Removed
Priorityfield fromChatMessage.
Synapse Artifacts Changelog
New Features
- Changed APIs on SparkJobDefinitionClient and SqlScriptClient to provide a Long Running Operation (LRO) when operations can be long in duration.
- Many models classes are now public.
- Added BigDataPoolsClient, IntegrationRuntimesClient, SqlPoolsClient, WorkspaceClient and associated support types.
- Support List/Get Synapse resources through data plane APIs.
- Support Rename operations.
- Support CICD operations.
Synapse Spark Changelog
New Features
- Changed APIs on SparkBatchClient and SparkSessionClient to provide a Long Running Operation (LRO) when operations can be long in duration.
Key Vault Changelog
New features
- Secure Key Release has been removed from this release.
Azure Storage Blobs Changelog
Key Bug Fixes
- Fixed bug where
BlobBaseClient.CanGenerateSasUri,BlobContainerClient.CanGenerateSasUri,BlobServiceClient.CanGenerateSasUriwere not mockable
Azure Storage Blobs Batch Changelog
New Features
- Added support for Batch Scoping subrequests to a specific container (
BlobBatchClient(BlobContainerClient),BlobContainerClient.GetBlobBatchClient()) (available in storage service version 2020-06-12 and newer).
Azure Storage Common Changelog
Key Bug Fixes
- Aligned storage URL parsing with other platforms.
Azure Storage Files DataLake Changelog
New Features
- Added support for listing deleted file systems and restoring deleted file systems (available in storage service version 2020-06-12 and newer).
Key Bug Fixes
- Fixed bug where
DataLakeFileSystemClient.CanGenerateSasUri,DataLakeDirectoryClient.CanGenerateSasUri,DataLakeFileClient.CanGenerateSasUri,DataLakePathClient.CanGenerateSasUri,DataLakeServiceClient.CanGenerateSasUriwere not mockable
Azure Storage Files Shares Changelog
Key Bug Fixes
-
- Fixed bug where
ShareFileClient.CanGenerateSasUri,ShareDirectoryClient.CanGenerateSasUri,ShareClient.CanGenerateSasUri,ShareServiceClient.CanGenerateSasUriwere not mockable
- Fixed bug where
Azure Storage Queues Changelog
New Features
- Added
MessageDecodingFailedevent toQueueClientOptions.
Key Bug Fixes
- Fixed bug where
QueueClient.CanGenerateSasUriandQueueServiceClient.CanGenerateSasUriwere not mockable.
Latest Releases
View all the latest versions of .NET packages here.