Reputation: 701
Dears,
I'm wondering how to get all parameters of a specific resource, the "Get" command doesn't fetch all details !
Example, I need to get the IP of this Public IP Address
Get-AzResource -Name "PubIP"
Name : PubIP
ResourceGroupName : RG1
ResourceType : Microsoft.Network/publicIPAddresses
Location : centralus
ResourceId : /subscriptions/xxxxxx/Microsoft.Network/publicIPAddresses/PubIP
I've tried
Get-AzResource -Name "PubIP" | Where-Object { $_.Scope -contains 'address' }
But also didn't work !
Upvotes: 1
Views: 666
Reputation: 30035
You'd better use the dedicated powershell cmdlet to fetch details of a resource.
For example, to get details of public ip address, you can use Get-AzPublicIpAddress. The test result:
Upvotes: 1