SHARE
TWEET

Untitled

a guest Jun 16th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $azureAplicationId ="<your ad app application id>"
  2. $azureTenantId= "<your tenant id>"
  3. $azurePassword = ConvertTo-SecureString "<the secret of your ad app>" -AsPlainText -Force
  4. $psCred = New-Object System.Management.Automation.PSCredential($azureAplicationId , $azurePassword)
  5. Connect-AzAccount -Credential $psCred -TenantId $azureTenantId  -ServicePrincipal
  6. #I just test to get all groups, you could do other operations
  7. Get-AzADGroup
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top