Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 675 Bytes

register-azure-app-device-code-powershell.md

File metadata and controls

23 lines (18 loc) · 675 Bytes
author ms.author ms.topic date
jasonjoh
jasonjoh
include
03/20/2023

Note

The PowerShell script requires an account with the Application administrator, Cloud application administrator, or Global administrator role. If your account has the Application developer role, you can register an app in the Azure Active Directory admin center.

Connect-MgGraph -Scopes "Application.ReadWrite.All"
$app = New-MgApplication -displayName "Kiota Test Client" -IsFallbackPublicClient

Save the value of the AppId property of the $app object.

> $app.AppId
1cddd83e-eda6-4c65-bccf-920a86f220ab