skip to Main Content

Azure – How to access a nested JSON field in PowerShell

I'm trying to access a specific field in a JSON object created by Azure Advisor using PowerShell. I have the following object: @{id=/subscriptions/xxxx/providers/Microsoft.Advisor/recommendations/xxxx; category=Cost; impact=High; impactedArea=Microsoft.Subscriptions/subscriptions; description=Consider virtual machine reserved instance to save over your on-demand costs; recommendationText=Consider virtual machine…

VIEW QUESTION

Get Azure Policy names

Having read the question on the link here , I would like to get a list of all the names of Azure policies assigned to the tenant irrespective of the scope (subscription, management group etc). I ran the snippet Get-AzPolicyAssignment…

VIEW QUESTION
Back To Top
Search