Reputation: 621
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
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
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...
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