在没有Azure帐户的情况下安装Powershell for Azure [英] Install Powershell for Azure without an Azure Account

查看:72
本文介绍了在没有Azure帐户的情况下安装Powershell for Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Powershell脚本中使用Get-AzureStorageBlob,以便我的客户端可以从Azure Blob存储中下载文件(我使用Devops将文件放在那里)

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 )

密钥在脚本中,因此客户端不需要Azure帐户.

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

但是,他确实需要安装

He does however need to install Azure Powershell

并且说明要求他登录到Azure.

And the instructions ask him to log in to Azure.

还有其他选择吗?

推荐答案

如果仅使用Azure存储,则可以忽略"Connect-AzAccount" cmdlet.

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

安装Azure Powershell模块后,由于您具有存储帐户的account_name和account_key,因此可以直接使用它们下载blob.

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

但是,如果您要操作vm等其他资源,则需要使用cmdlet"Connect-AzAccount".

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.

这篇关于在没有Azure帐户的情况下安装Powershell for Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆