How to retrieve storage account key using powershell function app?
问题 I'm using powershell function app to retrieve storage account key but i'm not able to access resources .Please help me . $resourceGroup = "DemoResourceGroup" $AccountName = "Demo" $Key = (Get-AzStorageAccountKey -ResourceGroupName $resourceGroup -Name $AccountName) Write-Host "storage account key 1 = " $Key I'm getting following error : 2020-05-14T14:00:05Z [Error] ERROR: Get-AzStorageAccountKey : 'this.Client.SubscriptionId' cannot be null. At D:\home\site\wwwroot\TimerTrigger1\run.ps1:25