Cloud-Automation-101

Cloud Automation 101 - Introduction to Cloud Automation, Azure DevOps, Infrastructure As Code (IaC), PowerShell, Azure Resource Manager (ARM), Unit-Testing with Pester, CI/CD Pipeline with Azure DevOps and more!

View project on GitHub

ARM

Installation

Installation Guide

Install-Module -Name AzureRM -AllowClobber

Login

# Import the module into the PowerShell session
Import-Module AzureRM
# Connect to Azure with an interactive dialog for sign-in
Connect-AzureRmAccount

it is possible to the the context so you won’t need to log in every time you want to use your subscription. Enable-AzureRmContextAutosave see docs

Funcitons

Ensure template functions work

Function Add

Run the add.json ARM template to add two parameters. This demonstrate the ARM function functionality. To run the Add-ARM use:

.\deploy.ps1
# 2

Specify the parameters by using a hashmap @{ first = 1; second = 1}

.\deploy.ps1 -TemplateParameterObject = @{ first = 5; second = 6}
# 11

Try code