Get-AzDeployment

Get-AzDeployment

In this Azure PowerShell article, we will discuss the Get-AzDeployment Azure PowerShell cmdlet.

Get-AzDeployment

The Get-AzDeployment PowerShell cmdlet is used to retrieve the deployment details under the current subscription and we will discuss the syntax and the usage example of Get-AzDeployment Azure PowerShell cmdlet.

Syntax

Let’s discuss the syntax of Get-AzDeployment PowerShell cmdlet with examples.

Get-AzDeployment

You can run the above cmdlet that will get you the details of all the deployments under your current Azure subscription.

I got the below output

Id                      : /subscriptions/1cdf4311-dee5-4509-9c9c-feaa54a5cbd1/provider
                          s/Microsoft.Resources/deployments/AVDGettingStarted-2f81d93b
                          -641a-45ec-8dd0-44f526f8108c-deploymen
DeploymentName          : AVDGettingStarted-2f81d95h-641a-45ec-8dd0-44f526f8108c-deplo
                          ymen
Location                : eastus
ProvisioningState       : Failed
Timestamp               : 12/1/2022 12:44:15 PM
Mode                    : Incremental
TemplateLink            : 
                          Uri            : https://wvdportalstorageblob.blob.core.wind
                          ows.net/galleryartifacts/armtemplates/EasyButton_11-09-2022/
                          EasyButtonTemplate.json
                          ContentVersion : 1.0.0.0
                          
Parameters              : 
                          Name                                     Type               
                                  Value     
                          =======================================  
                          =========================  ==========
                          _artifactsLocation                       String             
                                  "https://wvdportalstorageblob.blob.core.windows.net/
                          galleryartifacts/"
                          easyButtonLinkedTemplateLocation         String             
                                  "https://wvdportalstorageblob.blob.core.windows.net/
                          galleryartifacts/armtemplates/EasyButton_11-09-2022/nestedTe
                          mplates/"
                          createHostpoolTemplateLocation           String             
                                  "https://wvdportalstorageblob.blob.core.windows.net/
                          galleryartifacts/armtemplates/Hostpool_10-05-2022/CreateHost
                          poolTemplate.json"
                          createHostpoolNestedTemplatesLocation    String             
                                  "https://wvdportalstorageblob.blob.core.windows.net/
                          galleryartifacts/armtemplates/Hostpool_10-05-2022/nestedTemp
                          lates/"
                          deploymentRG                             String             
                                  "TsInfoRG-deployment"
                          prerequisiteRG                           String             
                                  "TsInfoRG-prerequisite"
                          wvdResourcesRG                           String             
                                  "TsInfoRG-avd"
                          location                                 String             
                                  "eastus"  
                          azureCloudEnvironment                    String             
                                  "AzureCloud"
                          azureAdminUPN                            String             
                                  "fewlines4biju@hotmail.com"
                          azureAdminPassword                       SecureString       
                                  null      
                          identityApproach                         String             
                                  "Azure_AD_DS"
                          domainAdminUPN                           String             
                                  "fewlines4biju@hotmail.com"
                          domainAdminPassword                      SecureString       
                                  null      
                          validationUserName                       String             
                                  "fewlines4biju@hotmail.com"
                          validationUserPassword                   SecureString       
                                  null      
                          isSubscriptionEmpty                      Bool               
                                  true      
                          vnetName                                 String             
                                  "avdVnet" 
                          subnetName                               String             
                                  "avdSubnet"
                          vmNamePrefix                             String             
                                  "Wi"      
                          vmImageType                              String             
                                  "Gallery" 
                          vmGalleryImageOffer                      String             
                                  "windows-11"
                          vmGalleryImagePublisher                  String             
                                  "microsoftwindowsdesktop"
                          vmGalleryImageSKU                        String             
                                  "win11-21h2-avd"
                          vmGalleryImageVersion                    String             
                                  ""        
                          vmCustomImageSourceId                    String             
                                  ""        
                          vmTemplate                               String             
                                  ""        
                          vmSize                                   String             
                                  "Standard_D2s_v3"
                          vmNumberOfInstances                      Int                
                                  2         
                          hostpoolType                             String             
                                  "Pooled"  
                          personalDesktopAssignmentType            String             
                                  ""        
                          maxSessionLimit                          Int                
                                  16        
                          domainControllerVMResourceGroup          String             
                                  ""        
                          domainControllerVMName                   String             
                                  ""        
                          usersToAssign                            String             
                                  ""        
                          groupsToAssign                           String             
                                  ""        
                          customConfigurationTemplateUrl           String             
                                  ""        
                          customConfigurationParameterUrl          String             
                                  ""        
                          deploymentId                             String             
                                  "2f81d93b-641a-45ec-8dd0-44f526f8108b"
                          timestampInUtc                           String             
                                  "20221201T123603Z"
                          ouPath                                   String             
                                  ""        
                          domain                                   String             
                                  ""        
                          systemData                               Object             
                                  {}        
                          
Outputs                 : 
DeploymentDebugLogLevel : None

You can also specify the deployment name using the below cmdlet.

Get-AzDeployment -Name "Deptsinfo"

Here, Deptsinfo is the name of your deployment. This cmdlet will retrieve the deployment details of Deptsinfo deployment,

You may also like following the articles below

Wrapping Up

In this Azure PowerShell article, we have discussed the Get-AzDeployment Azure PowerShell cmdlet. Thanks for reading this article !!!