I am following this tutorial here: https://docs.microsoft.com/en-us/samples/dotnet/samples/azure-identity-resource-management-storage/
The associated code is here: https://github.com/dotnet/samples/blob/main/azure/sdk-identity-resources-storage/Program.cs
My question involves the following line of code:
string connectionString = await GetStorageConnectionStringAsync(storageManagementClient, resourceGroupName, storageAccountName);
Why is it that both a StorageManagementClient instance and storage account name are required?
For resource group name, only the group name as a string is sufficient; no instance of ResourcesManagementClient() is necessary.
But in case of a StorageManagementClient(), you need its instance as well.