[英]Azure Subscription: using Certificate or AAD authentication on PowerShell?
I'm currently using AAD authentication for deploying some code but I'm finding that my session times out on the server, which requires me to log back in.我目前正在使用 AAD 身份验证来部署一些代码,但我发现我的 session 在服务器上超时,这需要我重新登录。
I heard I could use certificates to authenticate to Azure, is this the way to go or is there a different method people use?我听说我可以使用证书对 Azure 进行身份验证,这是 go 的方式还是人们使用不同的方法?
If your AAD authentication session times out in a short time, you could consider configuring token lifetimes in Azure Active Directory .如果您的 AAD 身份验证 session 在短时间内超时,您可以考虑在 Azure Active Directory 中配置令牌生命周期。
An Powershell cmd sample: Powershell cmd 样品:
$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00","MaxAgeSessionSingleFactor":"02:00:00"}}') -DisplayName "WebPolicyScenario" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.