From 423a1448691d148bb39c55c66a79dfc91e4878b3 Mon Sep 17 00:00:00 2001 From: Jon Gallant Date: Tue, 28 Jan 2020 17:03:02 -0800 Subject: [PATCH] Update readme --- README.md | 48 ++++++++++++++++-------------------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 3063411..8b2bf55 100644 --- a/README.md +++ b/README.md @@ -28,38 +28,6 @@ using Microsoft.Azure.Management.ApplicationInsights.Management; var appInsightsClient = new ApplicationInsightsManagementClient(new DefaultAzureMgmtCredential()); ``` - -### CosmosDB - -``` -dotnet add package JonGallant.Azure.Identity.Extensions -dotnet add package Microsoft.Azure.Management.CosmosDB --version 1.0.1 -``` - -Use DefaultAzureMgmtCredential in place of ServiceClientCredential: -```csharp -using JonGallant.Azure.Identity.Extensions; -using Microsoft.Azure.Management.CosmosDB; -using Microsoft.Azure.Management.CosmosDB.Models; - -var client = new CosmosDBManagementClient(new DefaultAzureMgmtCredential()); -``` - -### Storage - -``` -dotnet add package JonGallant.Azure.Identity.Extensions -dotnet add package Microsoft.Azure.Management.Storage --version 14.3.0 -``` - -Use DefaultAzureMgmtCredential in place of ServiceClientCredential: -```csharp -using JonGallant.Azure.Identity.Extensions; -using Microsoft.Azure.Management.Storage; - -var client = new StorageManagementClient(new DefaultAzureMgmtCredential()); -``` - ## DefaultAzureFluentCredential The `DefaultAzureFluentCredential` class allows you to use all the goodness of `Azure.Identity.DefaultAzureCredential` in the [Azure Management **Fluent** libraries](https://github.com/Azure/azure-libraries-for-net). You can use it in place of `AzureCredentials` when calling your Azure Management Fluent APIs. @@ -87,4 +55,20 @@ var resourceGroup = Azure.Authenticate(creds) .Create(); ``` +## DefaultAzureServiceBusCredential + +The `DefaultAzureServiceBusCredential` class allows you to use all of the goodness of `Azure.Identity.DefaultAzureCredential` with the Service Bus SDKs. Service Bus will officially be supported by the new SDKs soon, this is a stopgap that enables you to use the same credential flow throughout your application. + +``` +dotnet add package JonGallant.Azure.Identity.Extensions +dotnet add package Microsoft.Azure.ServiceBus --version 4.1.1 +``` + +```csharp +using JonGallant.Azure.Identity.Extensions; +using Microsoft.Azure.ServiceBus; + +var client = new TopicClient("sbendpoint", "entitypath", new DefaultAzureServiceBusCredential()); +``` + More to come soon. Please file a GitHub issue with any questions/suggestions. \ No newline at end of file