【发布时间】:2018-05-10 13:05:34
【问题描述】:
通常我们在 Azure 门户上运行 Azure Power shell 命令。但是我们可以通过连接到 Azure 资源组以任何方式在本地计算机的 powershell 窗口上运行相同的 azure powershell 命令吗
【问题讨论】:
标签: powershell azure azure-resource-group
通常我们在 Azure 门户上运行 Azure Power shell 命令。但是我们可以通过连接到 Azure 资源组以任何方式在本地计算机的 powershell 窗口上运行相同的 azure powershell 命令吗
【问题讨论】:
标签: powershell azure azure-resource-group
在要连接到 Azure 的 Windows 机器上安装 AzureRM 模块。
Azure PowerShell v.5.0.1
Install and configure Azure PowerShell - Microsoft.com
Install-Module -Name AzureRM
然后使用Connect-AzureRmAccount cmdlet 连接到 Azure。
$Credential = Get-Credential
Connect-AzureRmAccount -Credential $Credential
【讨论】: