Code
This site contains all the code displayed and described on this blog.
Get the Code.
Table of Contents
Test Infrastructure as Code
This code repositories contains an azuredeploy.json
and different scripts to create, run and tests a deployment.
Getting Started
Get the Code. Run:
# azuredeploy.ps1
$Name = "MyResourceGroup"
$Location = "WestEurope"
$TemplateFile = "$PSScriptRoot\azuredeploy.json"
$TemplateParameterFile = "$PSScriptRoot\azuredeploy.parameters.json"
New-ParameterFile | Out-File $TemplateParameterFile
# Change Parameter File Properties
New-AzResourceGroup -Name $Name -Location $Location -Confirm
New-AzResourceGroupDeployment -TemplateFile $TemplateFile -TemplateParameterFile $TemplateParameterFile -Verbose
Files
- adls.acceptance.spec.ps1
- adls.acceptance.Tests.ps1
- azure-pipelines.yml
- azuredeploy.adls.spec.ps1
- azuredeploy.json
- azuredeploy.ps1
- azuredeploy.spec.ps1
- azuredeploy.Tests.ps1
- Get-Acl.ps1
- Get-Acl.Tests.ps1
- Integration.Tests.ps1
- LICENSE
- New-ParameterFile.ps1
- New-ParameterFile.Tests.ps1
- New-Readme.ps1
- README.md
Code of Conduct
This is a personal repository by markwarneke. Microsoft is NOT maintaining this repository. The project sticks to the code of conduct
Contact
Generate File Inventory
Get-ChildItem -Recurse | % { Write-Host ("- [{0}](./{0})" -f $_.Name) }