简体   繁体   English

Azure 订阅:在 PowerShell 上使用证书或 AAD 身份验证?

[英]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"

More samples here .更多样品在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Azure AAD进行身份验证 - Authentication using Azure AAD 带有证书的Python AAD(Azure Active Directory)身份验证 - Python AAD (Azure Active Directory) Authentication with certificate 具有基于客户端证书或基于 AAD 令牌的身份验证的 Azure 应用服务 - Azure appservice with Client certificate based or AAD token based authentication 使用 AAD 身份验证将 Blazor 应用程序部署到 Azure - Deploying Blazor app to Azure using AAD Authentication 在 Azure AAD oauth 身份验证中使用 saml 令牌 - Using saml tokens in Azure AAD oauth authentication 具有证书身份验证的Azure Powershell cmdlet不起作用 - Azure powershell cmdlets with certificate authentication not working 对Azure订阅日志使用证书-禁止使用403 - Using a certificate for Azure subscription logs - 403 forbidden Azure 使用 AAD 身份验证的存储列表 Blob - 受众验证失败 - Azure Storage List Blobs using AAD Authentication - Audience validation failed 使用 AAD 进行身份验证的 Azure App 在一段时间后返回 401 - Azure App using AAD for authentication returns 401 after period of time .net 核心应用程序在 Azure 上运行,使用 AAD 保持循环进行身份验证 - .net core application running on Azure using AAD keep looping for authentication
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM