Azure应用注册客户端机密过期
Microsoft 是否将客户端机密的到期日期更改为最长 2 年?不能再选择“从不”了吗?
回答
我自己刚刚遇到了这个。您可以使用 Powershell 设置添加超过 2 年的凭据。所以我猜这是一个 UI 限制。
$startDate = Get-Date
$endDate = $startDate.AddYears(98)
$aadAppsecret01 = New-AzureADApplicationPasswordCredential -ObjectId b09d3e1b-417d-425c-be05-9e46943d7207 -StartDate $startDate -EndDate $endDate
回答
Microsoft 是否将客户端机密的到期日期更改为最长 2 年?不能再选择“从不”了吗?
没错。客户端密钥的新过期时间最长为 2 年。
- I foresee a lot of production disruptions in two years time. This could be the next form of "certificate has expired" class of problems 🙂