Basic Usage of Azure Services
Create a Resource group
Basically the resource group will manage all other resources that you create and let us manage our environment and infrastructure
In search bar, look for: Research Group

Select the create button and enter the necessary details

Once create, it will be listed in the resource group section

Create a virtual machine (Windows Server 2019)
After creating a resource group we can proceed to creating a virtual machine
Type Virtual machine in the search bar or look for in on the side bar

Select Create > Add virtual machine

You can see that if ask for the resource group, you can simply add the one that you created previously
Username: AZadministrator
Password: Password@12345
Go to Next to the Disk page, Keep everything as default
Go to the Networking Page: Keep everything Default
Go default settings for all the following pages, until review and create
Once you press create it will take some time to deploy the VM

You will get a notification once it is completed

Creating a Group with Cloud Shell/Bash
Open up the CLI using the key in the top right of the screen
You can switch between Bash and PowerShell
Creating a Resource Group Command
az group create --name Windows-Vms --location eastus

If we go back to the resource groups tab, we will see that if has created this group

Creating a VM using Bash
Use the following command to create a virtual machine using CLI
az vm create --resource-group Windows-VMs --name WIN-SN01 --image win2018datacenter --admin-username azuser --admin-password P@ssword1234

It will run first and output json format once complete of the details of the VM as per below

If we go back to the Virtual Machines Tab, we will see the newly created VM

Connecting to a VM
To connect to the VM
Go to the virtual machine and select Connect
Click on connect and select "Download RDP"

Click on the RDP File and enter the username and password that you create for that Virtual Machine
Accept all prompts and you will be connected to the VM
Reset password for VM
Click on the Virtual Machine
On the left hand side, search for "Reset Password"

Enter the username and the new password that you want

Azure AD; Reset user password
Open Microsoft Entra ID

Click on the User Tab as per above image
Here you will see a list of all users of your Entra ID Tenant

Click on a user and select the "Reset Password" option at the top

Cloud Shell commands
Open the shell
List Resource List
az resource list
List Resource in Table Format
az resource list --output table

List Azure VMs
az vm list --out tsv

List Azure VMs in Table Format
az vm list --out table

Azure Shell Interactive Mode
In the cloud CLI, use the following command to initiate cloud shell interactive
az interactive
Delete Resource group
Delete using GUI
Go to the resource group tab
Click on the resource group and copy its name
Enter the name and press delete

Delete using CLI
Open CLI
Find the resource group name you want to delete, make sure you remember it correctly
Use the following command
az group delete --name Windows-VMs

Cost Management; Create budget

Go to Cost Management
Go to Budget (search for it if you cannot find it)

The goal is to create a budget so that you do not overspend on the Virtual Machines
Click Add

Give it a name and the monthly amount

You can create some alerts on the next tab

Add the alerts and email addresses and press create
Security Center
Last updated