PowerShell script to validate Azure environment.
- Open PowerShell
- git clone https://github.com/kongou-ae/Test-Azure
- Login Azure scription which you want to validate.
- Validate your Azure
- ./Test-Azure.ps1 # Readable output
- ./Test-Azure.ps1 -json # JSON
- Application Gateway should be v2
- Minimum instance should be greater equal two
- App Service Plan should be greater equal Basic
- Sku for production should have grater equal two instances
- Boot diag should be enabled
- OS Disk Should be managed disk
- Used NIC should be protected by NSG
- Virtual Machine should not be stopped
- Unused disk should be deleted
- Disk should be greater equal Standard SSD
- LB should be Standard SKU
- Standard LB should be zone redundant
- Unused nic should be deleted
- Unused public ip address should be deleted
- NSG Flow Logs should be enabled
- NSG should has all deny rule in the last row
- VM backup should be enabled
- Latest backup should be within 24 hours
- Backup alert for VM backup should be configured
- Recovery Service Vault should be GRS
- The alert about service issue shoud be configured
- The alert about planned maintenance shoud be configured
- The alert about health advisors should be configured
- VPN Gateway should be greater than basic
- Diagnostics settings of VPN gateway should be enabled