Nurhun
Nurhun

Reputation: 701

How to get all resource parameters details in Azure PowerShell

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

Answers (1)

Ivan Glasenberg
Ivan Glasenberg

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:

enter image description here

Upvotes: 1

Related Questions