Get-AzDeploymentScript

Hämtar eller listar distributionsskript.

Syntax

Get-AzDeploymentScript
   [[-ResourceGroupName] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDeploymentScript
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzDeploymentScript
   [-Id] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Cmdleten Get-AzDeploymentScript hämtar ett enda distributionsskript eller en lista över distributionsskript.

Exempel

Exempel 1

Get-AzDeploymentScript

Visar distributionsskript i prenumerationen i den aktuella användarens kontext.

Exempel 2

Get-AzDeploymentScript -ResourceGroupName DS-TestRg

Visar distributionsskript i resursgruppen DS-TestRg.

Exempel 3

Get-AzDeploymentScript -Name MyDeploymentScript -ResourceGroupName DS-TestRg

Hämtar ett distributionsskript med namnet MyDeploymentScript i resursgruppen DS-TestRG.

Exempel 4

Get-AzDeploymentScript -Id "/subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}"

Hämtar ett distributionsskript med det angivna resurs-ID:t.

Parametrar

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

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

-Id

Det fullständigt kvalificerade resurs-ID:t för distributionsskriptet. Exempel: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Resources/deploymentScripts/{deploymentScriptName}

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

-Name

Namnet på distributionsskriptet

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

-ResourceGroupName

Namnet på resursgruppen.

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

Indata

String

Utdata

PsDeploymentScript