Category: Powershell
Azure Bastion native RDP / SSH tooling
If you have deployed the Azure Bastion Standard Tier and you have an Azure AD account, then you can use the RDP /SSH native tool on your local pc to logon to the destination vm. You need to begin by downloading and installing the Azure CLI msi installer file onto your local pc. (I found… Continue reading Azure Bastion native RDP / SSH tooling
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.
Install the Azure Monitor Agent
The powershell script below simplifies my life when I need to install the AMA agent.
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