Azure管理入口指南

如果要在Azure上进行任何操作,目前有三种操作方式,以下是三种操作方式的安装指南。

1. Azure Portal方式

登录Azure门户网站https://azure.microsoft.com/en-us/,输入订阅账号与密码

2. Azure PowerShell方式

2.1 安装预备条件

  1. 安装最新版本的PowerShell:https://github.com/PowerShell/PowerShell/releases
  2. 安装.Net Framework4.7.2或者更新的版本
  3. 确保已经安装最新版本的PowerShellGet,在PowerShell中运行: Install-Module -Name PowerShellGet -Force

2.2 安装 Azure PowerShell Module

以管理员方式运行PowerShell命令:

if ($PSVersionTable.PSEdition -eq 'Desktop' -and (Get-Module -Name AzureRM -ListAvailable)) {
    Write-Warning -Message ('Az module not installed. Having both the AzureRM and ' +
      'Az modules installed at the same time is not supported.')
} else {
    Install-Module -Name Az -AllowClobber -Scope AllUsers
}

2.3 登录 Azure PowerShell Module

以管理员方式运行PowerShell命令:Connect-AzAccount 登录Azure,输入订阅账号与密码

3. Azure CLI方式

  1. 以管理员方式运行PowerShell,运行命令:Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi 运行完毕后,重启PowerShell
  2. 以管理员方式运行PowerShell或者CMD,运行命令:az login 登录Azure,输入订阅账号与密码
posted @ 2020-12-29 15:36  深海鱼111  阅读(349)  评论(0编辑  收藏  举报