Provision a NSG

The powershell script below explains how to create an NSG and then populates the Access Control List (ACL) with your custom Access Control Entries (ACE’s) / Ingress and Egress Rules. This powershell script is a step in my Azure Bastion deployment blog. Step 1: Create a new NSG Step 2: Provision the NSG ACEs /… Continue reading Provision a NSG

Provision a virtual machine

Below is another simple ps script to quickly deploy a B-sku entry level sandbox grade virtual machine. The OS hard disk tier will deployed as an SSD and has no encryption configured to any Key Vault. No data disks are attached.

Powershell : How to create a new Resource Group with tagging and a budget

#Set your focus to the target subscription Set-AzContext -SubscriptionName “<subscriptionname>” #Create the new resource group, in a target location with tagging New-AzResourceGroup ` -Name <resourcegroupname01> ` -Location “<region>” ` -Tag @{Application=”<value1>”; `TechnicalOwner=”<value2>”; ` WorkloadCriticality=”<value3>”; `Environment=”<value4>”;} #Part 1 – create an action group with the email recipient who will receive the budget notifications / emails. (This… Continue reading Powershell : How to create a new Resource Group with tagging and a budget

Published
Categorized as Powershell