Get-AzTenantDeployment
Get deployment at tenant scope
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzTenantDeployment
[[-Name] <String>]
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzTenantDeployment
-Id <String>
[-Pre]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzTenantDeployment cmdlet gets the deployments at the tenant scope. Specify the Name or Id parameter to filter the results. By default, Get-AzTenantDeployment gets all deployments at the tenant scope.
Examples
Example 1: Get all deployments at the tenant scope
PS C:\>Get-AzTenantDeployment
This command gets all deployments at the current tenant scope.
Example 2: Get a deployment by name
PS C:\>Get-AzDeployment -Name "Deploy01"
This command gets the "Deploy01" deployment at the current tenant scope. You can assign a name to a deployment when you create it by using the New-AzTenantDeployment cmdlets. If you do not assign a name, the cmdlets provide a default name based on the template that is used to create the deployment.
Example 3: Get a deployment by ID
PS C:\>Get-AzDeployment -Id "/providers/Microsoft.Resources/deployments/Deploy01"
This command gets the "Deploy01" deployment at the tenant scope.
Parameters
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 |
The fully qualified resource Id of the deployment. example: /providers/Microsoft.Resources/deployments/{deploymentName}
| Type: | String |
| Aliases: | DeploymentId, ResourceId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The name of deployment.
| Type: | String |
| Aliases: | DeploymentName |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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
None