你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TaskAddParameter.AuthenticationTokenSettings 属性

定义

获取或设置任务可用于执行 Batch 服务操作的身份验证令牌的设置。

[Newtonsoft.Json.JsonProperty(PropertyName="authenticationTokenSettings")]
public Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings AuthenticationTokenSettings { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="authenticationTokenSettings")>]
member this.AuthenticationTokenSettings : Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings with get, set
Public Property AuthenticationTokenSettings As AuthenticationTokenSettings

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

如果设置了此属性,Batch 服务将为 Task 提供一个身份验证令牌,该令牌可用于对 Batch 服务操作进行身份验证,而无需帐户访问密钥。 令牌通过 AZ_BATCH_AUTHENTICATION_TOKEN 环境变量提供。 任务可以使用令牌执行的操作取决于设置。 例如,任务可以请求作业权限,以便将其他任务添加到作业,或检查作业或作业下其他任务的状态。

适用于