如何使用cli创建Azure AD客户端机密?下面的命令似乎删除了已经存在的"客户秘密";。
az ad sp credential reset --name {name} --end-date 2025-03-04 --credential-description {credential-name}
我能够在bash shell 中使用AZ rest
az rest --method POST --headers "Content-Type=application/json" --uri 'https://graph.microsoft.com/v1.0/myorganization/applications/{id}/addPassword' --body '{"passwordCredential":{"displayName":"test","endDateTime":"2032-05-11T07:29:41.763Z","startDateTime":"2021-11-11T08:29:41.763Z"}}'