简体   繁体   中英

How to get Azure Active Directory application's password with Powershell 7?

I need to migrate to version 7 a PowerShell script that was used to create an Azure AD application with a custom password using New-AzADApplication cmdlet. However, with PowerShell version 7, New-AzADApplication no longer supports custom passwords . I've tried retrieving the automatically generated password from the output of this cmdlet but the credentials field in it is always empty. Is there a way to retrieve the password with any cmdlet in the Az.Resources module?

Post creating the app registration you cannot retrieve the value of created Client Secret in any way.

As shown in the below image:

在此处输入图像描述

You can refer this for more information about secretText .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM