Home > Software engineering >  Add redirectUris for Azure application from PowerShell
Add redirectUris for Azure application from PowerShell

Time:01-21

enter image description here

enter image description here

CodePudding user response:

You can fetch the current values with --method get, convert it to and ArrayList and then add your new value:

$appdata = az rest  --method get --uri 'https://graph.microsoft.com/v1.0/applications/{id}' | ConvertFrom-Json
$uris = [System.Collections.ArrayList]$appdata.web.redirectUris
$uris.Add('abc')
  •  Tags:  
  • Related