New-AzADAppCredential生成客户端密钥 [英] New-AzADAppCredential Generate Client Secret

查看:51
本文介绍了New-AzADAppCredential生成客户端密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用New-AzADAppCredential cmdlet生成密码客户端密码?我不想将密码提供给cmdlet,而是更希望像Azure门户一样使用生成密码.

解决方案

恐怕您无法使用 New-AzADAppCredential 创建客户端机密-密码是必需的.

解决方法是使用

Is there a way to generate a password client secret using the New-AzADAppCredential cmdlet? I don't want to supply the password to the cmdlet and would much rather use the generate one much like the Azure Portal.

解决方案

I am afraid you can't, when using New-AzADAppCredential to create client secret, the -Password is needed.

The workaround is to use the New-AzureADApplicationPasswordCredential command in AzureAD module.

New-AzureADApplicationPasswordCredential -ObjectId "<object-id>"

这篇关于New-AzADAppCredential生成客户端密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆