SYNOPSIS

Retrieves a deployment of a resource group.

SYNTAX

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

DESCRIPTION

The Get-AzResourceGroupDeployment cmdlet retrieves a deployment of a resource group. You can retrieve a specific deployment by its name.

PARAMETERS

Name Type Description
-Name System.String Specifies the name of the deployment to retrieve.
-ResourceGroupName System.String Specifies the name of the resource group that contains the deployment.
-DefaultProfile Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer The credentials, account, tenant, and subscription that are used for communication with Azure.
-CommonParameters System.Management.Automation.SwitchParameter This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, OutVariable. To get the Help, type: "Get-Help Get-Command -Parameter *".

EXAMPLES

🎬

Example 1: Get a specific deployment

This command retrieves the deployment named "myDeployment" in the resource group "myResourceGroup".

Get-AzResourceGroupDeployment -ResourceGroupName "myResourceGroup" -Name "myDeployment"
🎬

Example 2: Get all deployments for a resource group

This command retrieves all deployments for the resource group "myResourceGroup".

Get-AzResourceGroupDeployment -ResourceGroupName "myResourceGroup"

INPUTS

None. You can pipe to this cmdlet.

OUTPUTS

Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.ResourceGroup.PSResourceGroupDeployment

NOTES

This cmdlet is part of the Azure Resource Manager module. To use it, you must have the module installed and be logged in to your Azure account.