【发布时间】:2018-07-10 21:40:30
【问题描述】:
我想通过 PowerShell 下载 Azure 中资源组的自动化脚本。到目前为止,我知道如何通过 PowerShell 登录 Azure 并访问资源组,但我不知道如何访问资源组的设置。
【问题讨论】:
-
欢迎。与其说“我不知道怎么做”,不如说“我试过这个,期待那个,得到了别的东西”,而是以一种包含支持它的代码的示范方式。
标签: powershell azure resources
我想通过 PowerShell 下载 Azure 中资源组的自动化脚本。到目前为止,我知道如何通过 PowerShell 登录 Azure 并访问资源组,但我不知道如何访问资源组的设置。
【问题讨论】:
标签: powershell azure resources
您要查找的 cmdlet 是 Export-AzureRmResourceGroup。
提示,您可以使用get-command 寻找“想法”。像这样:
Get-Command -Module azurerm.resources
或
Get-Command -Module azurerm.resources -verb export
【讨论】: