Ringo
Ringo

Reputation: 621

Access Azure Table Storage with Azure MSI

I recently setup my .net core application to use MSI (Managed Identity) to communicate with Azure Blob.

Does MSI work with Azure Table Storage? Can't seem to find any documentation on it.

I am trying to use MSI so I don't have to manage my keys anymore (keyless).

Upvotes: 6

Views: 5249

Answers (2)

Kev Hunter
Kev Hunter

Reputation: 2625

This is now supported using the latest version of https://www.nuget.org/packages/Azure.Data.Tables/ (12.2.1)

You can now create an client using something like

  var tableServiceClient = new TableServiceClient(uri, new DefaultAzureCredential());

Make sure you've assigned the correct permissions in Azure for the user to read from the resource

Upvotes: 4

user5780947
user5780947

Reputation:

Azure Table Storage does not support MSI. Table Storage does support Active Directory access. You can find the services that support MSI at the below link...

https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/services-support-msi

Managed identity provides Azure services with an automatically managed identity in Azure AD. You can use the identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without any credentials in your code.

https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview

Upvotes: 3

Related Questions