Get-AzDeploymentScriptLog

Pobiera dziennik wykonywania skryptu wdrażania.

Składnia

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>]

Opis

Polecenie cmdlet Get-AzDeploymentScriptLog pobiera dziennik wykonywania skryptu wdrożenia.

Przykłady

Przykład 1

Get-AzDeploymentScriptLog -Name MyDeploymentScript -ResourceGroupName DS-TestRg

Pobiera dziennik skryptu wdrażania o nazwie MyDeploymentScript w grupie zasobów DS-TestRG.

Przykład 2

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

Pobiera ostatnie 3 wiersze dziennika skryptu wdrażania o nazwie MyDeploymentScript w grupie zasobów DS-TestRG.

Przykład 3

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

Pierwsze polecenie pobiera skrypt wdrożenia o nazwie MyDeploymentScript w grupie zasobów DS-TestRG. Drugie polecenie pobiera dziennik danego skryptu wdrażania.

Parametry

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure.

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

-DeploymentScriptObject

Obiekt programu PowerShell skryptu wdrażania.

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

-DeploymentScriptResourceId

W pełni kwalifikowany identyfikator zasobu skryptu wdrażania. Przykład: /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

Nazwa skryptu wdrażania.

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

-ResourceGroupName

Nazwa grupy zasobów.

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

-Tail

Ogranicz dane wyjściowe do ostatnich n wierszy

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

Dane wejściowe

String

PsDeploymentScript

Dane wyjściowe

PsDeploymentScriptLog