Skip to content

Commit

Permalink
Update for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthebrit committed Feb 13, 2024
1 parent 4ff8800 commit 3b95ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion REST/WorkingWithRest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $r.value
#Example with created and changed time for resources
$UriString = "https://management.azure.com/subscriptions/$subid/resourceGroups/RG-DEMOVM/resources?api-version=2023-07-01&`$expand=createdTime,changedTime"
$r = Invoke-RestMethod -Uri $UriString -Method Get -Headers $authHeader
$r.value
$r.value | Format-Table name,type,createdTime,changedTime -AutoSize

#Can token get for other audiences
$accessToken = (Get-AzAccessToken -ResourceUrl "https://graph.microsoft.com").Token #MS Graph audience
Expand Down

0 comments on commit 3b95ebf

Please sign in to comment.