jaydestro / azure_iac_examples

IaC for Azure examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# Azure Infrastructure as Code Examples

This is a repo with examples of IaC you can deploy from the Azure Cloud Shell. These commands work with either the bash or PowerShell offerings of Cloud Shell.

The Ansible guide will give you an example of creating an Azure Resource Group, Azure Virtual Machine, Network Security Group, and a Virtual Network. You'll need to add a public ssh key to the ssh_public_keys: line within the ansible/vm_create.yml file. Preferred method of storing this ssh key is with Azure Key Vault. Full documentation on this procedure can be reviewed in the Microsoft Docs article Create a Linux virtual machines in Azure using Ansible.

Get Started: Configure Ansible using Azure Cloud Shell will give you details on configuration methods including setting your subscription context.

The Azure Resource Manager template guide will show you how to create an Azure Resource Group and an Azure Storage Account. You'll use the az command in a bash or PowerShell Cloud Shell session. Once you've completed this deployment you will delete the resource group to clean up any used resources. Full documentation on this procedure can be reviewed in the Microsoft Docs article How to use Azure Resource Manager (ARM) deployment templates with Azure CLI.

The Bicep Manager template guide will show you how to create an Azure Resource Group and an Azure Storage Account. You'll use the bicep command in a bash or PowerShell Cloud Shell session. Once you've completed this deployment you will delete the resource group to clean up any used resources. Full documentation on this procedure can be reviewed in the Microsoft Docs article Quickstart: Create Bicep files with Visual Studio Code.

About

IaC for Azure examples


Languages

Language:HCL 86.4%Language:Bicep 13.6%