[英]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.我需要将 PowerShell 脚本迁移到版本 7,该脚本用于使用New-AzADApplication
cmdlet 创建具有自定义密码的 Azure AD 应用程序。 However, with PowerShell version 7, New-AzADApplication
no longer supports custom passwords .但是,对于 PowerShell 版本 7, New-AzADApplication
不再支持自定义密码。 I've tried retrieving the automatically generated password from the output of this cmdlet but the credentials field in it is always empty.我尝试从该 cmdlet 的 output 检索自动生成的密码,但其中的凭据字段始终为空。 Is there a way to retrieve the password with any cmdlet in the Az.Resources module?有没有办法使用 Az.Resources 模块中的任何 cmdlet 检索密码?
Post creating the app registration you cannot retrieve the value of created Client Secret in any way.创建应用程序注册后,您无法以任何方式检索创建的 Client Secret 的值。
As shown in the below image:如下图所示:
You can refer this for more information about secretText .您可以参考这里以获取有关secretText的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.