我们可以从本地计算机上的 Power shell 运行 连接到 AzureResourceGroup,而不是在 azure 门户上连接到 运行

Can we connect to AzureResourceGroup from Power shell running on a Local Machine instead of running it on the azure portal

通常我们 运行 Azure Power shell Azure 门户上的命令。但是我们可以 运行 在本地机器上使用相同的 azure powershell 命令 powershell window 以任何方式假设通过连接到 Azure 资源组

在要连接到 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

Connect-AzureRmAccount - Microsoft.com