azure - 如何在 Azure PowerShell 中获取所有资源参数详细信息

标签 azure powershell azure-powershell

亲爱的,

我想知道如何获取特定资源的所有参数,“获取”命令无法获取所有详细信息!

例如,我需要获取此公共(public)IP地址的IP

Get-AzResource -Name "PubIP"

Name              : PubIP
ResourceGroupName : RG1
ResourceType      : Microsoft.Network/publicIPAddresses
Location          : centralus
ResourceId        : /subscriptions/xxxxxx/Microsoft.Network/publicIPAddresses/PubIP

我已经尝试过

Get-AzResource -Name "PubIP" | Where-Object { $_.Scope -contains 'address' }

但也没用!

最佳答案

您最好使用专用的 powershell cmdlet 来获取资源的详细信息。

例如,要获取公共(public)IP地址的详细信息,您可以使用Get-AzPublicIpAddress 。测试结果:

enter image description here

关于azure - 如何在 Azure PowerShell 中获取所有资源参数详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60536075/

相关文章:

arrays - 用于检查文件列表中的所有文件是否存在于给定文件夹中的 Powershell 脚本

powershell - 为自动电子邮件脚本存储帐户凭据(尤其是密码)的最佳方式是什么?

powershell - 使用 Powershell 将文件上传到 100 个 Azure VM

powershell - 尝试将行添加到 azure 表时获取 "The remote server returned an error: (409) Conflict."

azure - 仅允许azure服务调用azure逻辑应用程序?

azure - 如何提醒使用 azure 逻辑应用的人?

java - Azure 服务总线异常

azure - 在本地测试 Azure 服务总线,无需任何订阅或登录

azure - 在 Microsoft Identity 平台上以编程方式撤销 Oauth2 访问权限

powershell - 取消隐藏使用 -WindowStyle Hidden 运行的 powershell 窗口?