Edges
AZAddSecret
Azure provides several systems and mechanisms for granting control of securable objects within Entra ID, including tenant-scoped admin roles, object-scoped admin roles, explicit object ownership, and API permissions.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Upgrade AzureHound and OpenHound before November 2026 to avoid ingest issues.
Azure provides several systems and mechanisms for granting control of securable objects within Entra ID, including tenant-scoped admin roles, object-scoped admin roles, explicit object ownership, and API permissions.
$MGToken = Get-GraphTokenWithRefreshToken -RefreshToken "0.ARwA6WgJJ9X2qk..." -TenantID "contoso.onmicrosoft.com"
New-AppRegSecret -AppRegObjectID "d878..." -Token $MGToken.access_token
New-AppRegSecret -AppRegObjectID "d878..." -Token $MGToken.access_token
Name Value
---- -----
AppRegSecretValue odg8Q~...
AppRegAppId 4d31...
AppRegObjectId d878...
PS /Users/andyrobbins> $SPToken = Get-MSGraphToken `
-ClientID "4d31..." `
-ClientSecret "odg8Q~..." `
-TenantName "contoso.onmicrosoft.com"
PS /Users/andyrobbins> $SPToken.access_token
eyJ0eXAiOiJKV1QiLCJub...