Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
$result = Get-AADAppoAuthToken -ClientID $AzureApplicationID -ClientSecret $ClientSecret -TenantId $TenantId
$AuthKey = "Bearer " + ($result.access_token)
$authHeader = @{
'Content-Type' = 'application/json'
'Accept' = 'application/json'
'Authorization' = $AuthKey
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment