powershell - 我们可以从在本地计算机上运行的 Power shell 连接到 AzureResourceGroup,而不是在 azure 门户上运行吗
问题描述
通常我们在 Azure 门户上运行 Azure Power shell 命令。但是我们可以通过连接到 Azure 资源组以任何方式在本地计算机 powershell 窗口上运行相同的 azure powershell 命令吗?
解决方案
在要连接到 Azure 的 Windows 计算机上安装 AzureRM 模块。
Azure PowerShell v.5.0.1
安装和配置 Azure PowerShell - Microsoft.com
Install-Module -Name AzureRM
然后使用Connect-AzureRmAccount
cmdlet 连接到 Azure。
$Credential = Get-Credential
Connect-AzureRmAccount -Credential $Credential
推荐阅读
- xamarin - 使用 Shiny 进行本地通知,同时使用我们自己的注册码进行远程通知 - 不适用于 iOS
- python - Python 3 psutil:即使在管理员权限下也无法在 Windows 10 下设置 ionice
- mysql - 用于“将记录集导出到外部文件”的 mySQL 命令
- node.js - 如果使用 puppeteer 在页面下方有“正在加载”的页面,如何向下滚动整页
- powershell - Pbiviz 启动错误“LESS 样式/visual.less”
- c# - EF Core(代码优先)无法在一对多关系中播种数据
- javascript - 如何在 React 组件上调用 getElementsByTagName
- javascript - 使用实时侦听器继续从函数中获取值
- python - Google Gmail API OAuth 2.0 错误 400:redirect_uri_mismatch
- pandas-groupby - For循环在熊猫数据框中的日期分组后应用估计的VECM参数