Get-AzTenantDeploymentOperation

Get deployment operation for deployment at tenant scope

Syntax

Get-AzTenantDeploymentOperation
   -DeploymentName <String>
   [-OperationId <String>]
   [-ApiVersion <String>]
   [-Pre]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzTenantDeploymentOperation
   -DeploymentObject <PSDeployment>
   [-ApiVersion <String>]
   [-Pre]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzTenantDeploymentOperation cmdlet lists all the operations that were part of deployment at the current tenant scope to help you identify and give more information about the exact operations that failed for a particular deployment.

Examples

Example 1: Get deployment operations given a deployment name

PS C:\>Get-AzTenantDeploymentOperation -DeploymentName Deploy01

Gets deployment operations with name "Deploy01" at the current tenant scope.

Example 2: Get a deployment and get its deployment operations

PS C:\>Get-AzTenantDeployment -Name Deploy01 | Get-AzTenantDeploymentOperation

This command gets the deployment "Deploy01" at the current tenant scope and get its deployment operations.

Parameters

-ApiVersion

When set, indicates the version of the resource provider API to use. If not specified, the API version is automatically determined as the latest available.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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

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

The deployment name.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeploymentObject

The deployment object.

Type:PSDeployment
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-OperationId

The deployment operation Id.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Pre

When set, indicates that the cmdlet should use pre-release API versions when automatically determining which version to use.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeployment

Outputs

Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSDeploymentOperation