I have a subscription, resource group and a VM. Let's call this VM as vm-01.
From the VM, I want to access Azure Storage containers and objects. I have installed the Azure CLI on this Linux VM.
Is it possible to access the storage service from the VM by using RBAC? I want execute commands like:
az storage container list
The documents I have read all point to using Azure Active Directory. I do not have Azure Active Directory service for this subscription and resource group.
I was thinking I could create a custom role and assign it to the VM. I was able to create the custom role and provide the required storage permissions to the role. However, I am not able to assign the custom role to the VM. In the Azure console, I see only options to assign the Azure Managed identities.
You need to do the following:
Once that's done, you should be able to make API calls on the storage account (such as
az storage container list
) after authenticating using the managed identity.Here's the official docs.