Install Powershell for Azure without an Azure Acco

2019-08-26 22:33发布

问题:

I want to use Get-AzureStorageBlob in a powershell script so my client can download files from my Azure Blob storage ( I use Devops to put them there )

The keys are in the script so the client does not need an Azure account.

He does however need to install Azure Powershell

And the instructions ask him to log in to Azure.

Is there an alternative?

回答1:

If you just operates with azure storage, then you can ignore the "Connect-AzAccount" cmdlet.

After installing azure powershell module, since you have account_name and account_key of storage account, directly use them to download the blob.

But if you want to operate other resources like vm etc.,then you need to the cmdlet "Connect-AzAccount".

When I click Show Details in the right Commands panel I get an error message

cannot be loaded because running scripts is disabled on this system.