Get-AzDeploymentScriptLog

Dağıtım betiği yürütme günlüğünü alır.

Syntax

Get-AzDeploymentScriptLog
   [-ResourceGroupName] <String>
   [-Name] <String>
   [[-Tail] <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDeploymentScriptLog
   [-DeploymentScriptResourceId] <String>
   [[-Tail] <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDeploymentScriptLog
   [-DeploymentScriptObject] <PsDeploymentScript>
   [[-Tail] <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzDeploymentScriptLog cmdlet'i bir dağıtım betiği yürütme günlüğünü alır.

Örnekler

Örnek 1

Get-AzDeploymentScriptLog -Name MyDeploymentScript -ResourceGroupName DS-TestRg

DS-TestRG kaynak grubunda MyDeploymentScript adlı bir dağıtım betiğinin günlüğünü alır.

Örnek 2

Get-AzDeploymentScriptLog -Name MyDeploymentScript -ResourceGroupName DS-TestRg -Tail 3

DS-TestRG kaynak grubundaki MyDeploymentScript adlı dağıtım betiğinin günlüğünün son 3 satırını alır.

Örnek 3

$ds = Get-AzDeploymentScript -Name MyDeploymentScript -ResourceGroupName DS-TestRg
Get-AzDeploymentScriptLog -DeploymentScriptInputObject $ds

İlk komut, DS-TestRG kaynak grubunda MyDeploymentScript adlı bir dağıtım betiği alır. İkinci komut verilen dağıtım betiğinin günlüğünü alır.

Parametreler

-DefaultProfile

Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DeploymentScriptObject

Dağıtım betiği PowerShell nesnesi.

Type:PsDeploymentScript
Aliases:DeploymentScriptInputObject
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DeploymentScriptResourceId

Dağıtım betiğinin tam kaynak kimliği. Örnek: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Dağıtım betiğinin adı.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Kaynak grubunun adı.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Tail

Çıkışı son n satırla sınırla

Type:Int32
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Girişler

String

PsDeploymentScript

Çıkışlar

PsDeploymentScriptLog