Install Powershell for Azure without an Azure Account

非 Y 不嫁゛ 提交于 2019-12-11 18:18:25

问题


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.


来源:https://stackoverflow.com/questions/54701405/install-powershell-for-azure-without-an-azure-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!