Share via


ScriptLogResource.GetAsync(Nullable<Int32>, CancellationToken) Method

Definition

Gets deployment script logs for a given deployment script name.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs/default
  • Operation Id: DeploymentScripts_GetLogsDefault
  • Default Api Version: 2020-10-01
  • Resource: ScriptLogResource
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))

Parameters

tail
Nullable<Int32>

The number of lines to show from the tail of the deployment script log. Valid value is a positive number up to 1000. If 'tail' is not provided, all available logs are shown up to container instance log capacity of 4mb.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to