PowerShell Meetup slide for Setting up a test environment on Azure IaaS environment using PowerShell (Infrastructure as Code) via Azure DevOps Pipeline
3. Setting up the test environment on Azure
using PowerShell
• What we want to achieve/build
• Azure Virtual Network (NSG)
• Site-to-Site VPN Connection
• Storage Account (Blob Container, File Share, Table)
• Virtual Machine(s) (DSC)
7. PowerShell
VS Code
• Virtual Network creation (Subnet & NSG)
• VPN configuration
• VM creation
Base64 Encoding
New VM creation
• Storage Account creation
Test Name availability (API Query)
• DSC
• Pester Test (Infrastructure Test)
• Teardown
8. Wrap Up
• Setting up the test environment
- Define the requirements
• Setting up the pipeline
- Version Control
- File Validation Test
- Unit Test
- Deployment
- Infrastructure Test
• Teardown the environment
• PowerShell Script Highlight