powershellazure-active-directoryregistrationnativeapplication

Native App Registration with AZ Powershell Module


I need to register a native app on Azure Active Directory using the AZ Powershell 6 Module. A native app can be registered with the command New-AzureADApplication in the AzureAD module setting the value of the field "PublicClient" to true, but the module AzureAD is not supported for powershell 6.

In powershell 6 it seems that the corresponding command is New-AzADApplication, which allows to register a Web app / API but not a native app.

So how is it possible to register a native app with the module AZ in powershell 6?

Thanks.


Solution

  • It seems not to support to use Az to create a native app directly. Azure has released a preview version of AzureAD module named AzureAD.Standard.Preview which supports Powershell Core 6, this module provides the same functionality as AzureAD. You could use it like the AzureAD to create the native app.

    PowerShell Gallery: https://www.poshtestgallery.com/packages/AzureAD.Standard.Preview/0.1.599.7

    Install-Module -Name AzureAD.Standard.Preview
    

    For more details, see : Azure AD PowerShell module with support for PowerShell Core.