亲爱的,
我想知道如何获取特定资源的所有参数,“获取”命令无法获取所有详细信息!
例如,我需要获取此公共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' }
但是也没用!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句