1

Recently, I discovered we can use VisualStudioCredential to authenticate with Azure Key Vault. See this GitHub page.

I'm trying to remove creds like client id, client secret, tenant id, etc. from the source code. I currently need these to instantiate an AzureCredentials in the Microsoft.Azure.Management.ResourceManager.Fluent NuGet package.

Is it possible to use VisualStudioCredential for StorageManagementClient and EventGridManagementClient?

user246392
  • 2,661
  • 11
  • 54
  • 96
  • are you using this package [Microsoft.Azure.Management.Storage](https://www.nuget.org/packages/Microsoft.Azure.Management.Storage) ? Looks like it will be deprecated at a point and you should use the [Azure.ResourceManager.Storage](https://www.nuget.org/packages/Azure.ResourceManager.Storage/) package. This last package supports `AzureCredentials`. – Thomas May 21 '22 at 09:35
  • Correct. I'm using the first one you mentioned. What about the one for event grid? – user246392 May 21 '22 at 14:53

1 Answers1

0

You can use Microsoft.Azure.Management.EventGrid for EventGridManagementClient.There is a newer prerelease version of this package available.

You can also checkout this github repro there is lot of models available in Microsoft.Azure.Management.EventGrid and EventGridManagementClient is one of those.

RahulKumarShaw
  • 4,192
  • 2
  • 5
  • 11
  • I already use `EventGridManagementClient` from that package. Is there an example of `VisualStudioCredential` being used for this client? – user246392 May 24 '22 at 00:34