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

ScriptLogResource.GetAsync(Nullable<Int32>, CancellationToken) 方法

定义

获取给定部署脚本名称的部署脚本日志。

  • 请求路径/订阅/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs/default
  • 操作IdDeploymentScripts_GetLogsDefault
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ScriptLogResource>> GetAsync (int? tail = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ScriptLogResource>>
override this.GetAsync : Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ScriptLogResource>>
Public Overridable Function GetAsync (Optional tail As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ScriptLogResource))

参数

tail
Nullable<Int32>

要从部署脚本日志的结尾显示的行数。 有效值是最大为 1000 的正数。 如果未提供“tail”,则会显示所有可用日志,最大为 4mb 的容器实例日志容量。

cancellationToken
CancellationToken

要使用的取消标记。

返回

适用于