編集

次の方法で共有


Get-AzDeploymentScript

Gets or lists deployment scripts.

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

The Get-AzDeploymentScript cmdlet gets a single deployment script or a list of deployment scripts.

Examples

Example 1

Get-AzDeploymentScript

Lists deployment scripts in the subscription in current user's context.

Example 2

Get-AzDeploymentScript -ResourceGroupName DS-TestRg

Lists deployment scripts in resource group DS-TestRg.

Example 3

Get-AzDeploymentScript -Name MyDeploymentScript -ResourceGroupName DS-TestRg

Gets a deployment script with the name MyDeploymentScript in resource group DS-TestRG.

Example 4

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

Gets a deployment script with the given resource Id.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

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

-Id

The fully qualified resource Id of the deployment script. Example: /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

The name of the deployment script

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

-ResourceGroupName

The name of the resource group.

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

Inputs

String

Outputs

PsDeploymentScript