daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR
git clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
Log | Files | Refs | README | LICENSE

azure-services-deployment-template.md (949B)


      1 ---
      2 title: "Azure Services - Deployment Template"
      3 section: "Cloud"
      4 sectionSlug: "cloud"
      5 sourcePath: "docs/cloud/azure/azure-services-deployment-template.md"
      6 sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/cloud/azure/azure-services-deployment-template.md"
      7 sha: "203bb0c0b290"
      8 isIndex: false
      9 ---
     10 
     11 # Azure Services - Deployment Template
     12 
     13 * List the deployments
     14 
     15     ```powershell
     16     PS Az> Get-AzResourceGroup
     17     PS Az> Get-AzResourceGroupDeployment -ResourceGroupName SAP
     18     ```
     19 
     20 * Export the deployment template
     21 
     22     ```ps1
     23     PS Az> Save-AzResourceGroupDeploymentTemplate -ResourceGroupName <RESOURCE GROUP> -DeploymentName <DEPLOYMENT NAME>
     24     
     25     # search for hardcoded password
     26     cat <DEPLOYMENT NAME>.json 
     27     cat <PATH TO .json FILE> | Select-String password
     28     ```
     29 
     30 ## References
     31 
     32 * [Training - Attacking and Defending Azure Lab - Altered Security](https://www.alteredsecurity.com/azureadlab)