Skip to main content
Jorge Bernhardt Jorge Bernhardt

Virtual machines

2024

Terraform - Azure Compute Gallery Deployment and Image Management
·1865 words·9 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Microsoft Microsoft Azure
Hi everyone! Today, in this blog post, we will explore how to deploy and manage Azure Shared Image Galleries using Terraform. As you know, Shared Image Galleries in Azure provide a centralized way to store and manage custom images for your virtual machines, enabling consistent and efficient deployments across multiple regions.

2023

Creating Restore Points for Azure VMs using Azure CLI
·1360 words·7 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure Monitor Microsoft
If you need to perform a quick ad-hoc backup of your virtual machine before maintenance that allows you to take consistent snapshots of all managed disks attached to your virtual machine, you should try Azure restore points.

2022

Logging into an Azure Linux VM using an Azure AD account
·876 words·5 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
Today I want to show you how you can improve the security of your Linux virtual machines in Azure by integrating with Azure Active Directory (Azure AD) authentication. In this post, I’ll show you how to set up a Linux virtual machine and log in with Azure AD using openSSH certificate-based authentication.
Azure Disk Encryption using PowerShell
·617 words·3 mins· 100 views · 5 likes
Azure PowerShell Connect-AzAccount Disable-AzVMDiskEncryption format-table
Azure Disk Encryption (ADE) provides volume encryption for the OS and data disks of Azure virtual machines by using the DM-Crypt feature in Linux or the BitLocker feature of Windows. ADE is integrated with Azure Key Vault to help you control and manage the disk encryption keys and secrets.

2021

How to change Azure Premium Disk Performance tiers without downtime
·694 words·4 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
On Azure Premium disks, we can change the performance tier even when it is connected to running virtual machines. With Premium SSD performance tiers, we have the flexibility to scale drive performance without increasing the size of the drive by selecting a higher performance tier and returning it to its original performance tier, allowing us to fine-tune the performance to our needs and save money.
How to use a VM system-assigned managed identity to access Azure Key Vault
·1070 words·6 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
Hi, In a previous post, I showed you how to enable system-assigned managed identity on an Azure virtual machine. Today, I want to show you how to assign a managed identity to access an Azure resource securely.
How to enable the system-assigned managed identity on an Azure VM
·696 words·4 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
Hi, Jorge is back. In this post, I want to show you How to enable the system-assigned managed identity on an Azure VM using Powershell and Azure CLI. When you enable a system-assigned managed identity, Azure creates an identity associated with the instance and stores it to the Azure AD tenant associated with the subscription where you created the service instance.
How to deploy identical VMs in different Azure Availability Zones
·575 words·3 mins· 100 views · 5 likes
Azure PowerShell Get-AzSubscription Get-AzVirtualNetwork Login-AzAccount
Hello everyone, in this post I want to show you how to create two identical virtual machines in two different Azure Availability Zones using PowerShell. An Availability Zone is a physically separate zone in an Azure region.

2020

How to deploy an Azure Bastion host in an existing VNet
·945 words·5 mins· 100 views · 5 likes
Add-AzVirtualNetworkSubnetConfig Azure CLI Azure Cloud Shell Azure PowerShell
Hello everyone, in this post, I want to show you how to deploy an Azure bastion host to connect securely, directly from the Azure portal, to all your virtual machines within your virtual network without the need to expose the RDP or SSH ports to the internet.
How to enable boot diagnostics on Azure VMs
·645 words·4 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
Hey, it’s Jorge. In this mini-post, I want to show you how to enable boot diagnostics on Azure virtual machines. This feature can be activated using the portal or command-line tools, but today, I will show you how to enable this debugging feature using PowerShell and Azure CLI.
How to redeploy Azure VMs using command-line tools
·384 words·2 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Get-AzSubscription
Today in this mini-post, I want to show you how to redeploy an Azure VM. This is normally a process that most people do from the Azure Portal, but it can also be done from the command line.
How to create snapshots for Azure managed disks
·1068 words·6 mins· 100 views · 5 likes
Add-AzVMNetworkInterface Azure PowerShell Connect-AzAccount Get-AzDisk
Azure managed disks have a long list of benefits that make them the ideal choice to use with your virtual machines. One of those benefits is the ability to take snapshots of your virtual disks.
Azure Spot VMs Explained
·906 words·5 mins· 100 views · 5 likes
Add-AzVMNetworkInterface Azure PowerShell Connect-AzAccount Get-AzSubscription
Hello, I want to talk to you about Azure Spot virtual machines. Although this functionality is currently in a public preview, I find it an exciting alternative to save money in dev/test environments but not in production environments.

2019

How to create an Azure Availability Set
·528 words·3 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
An Azure availability set is a group with two or more virtual machines in the same data center, their implementation ensures that at least one of the virtual machines hosted in the availability set will be available during a host update event or a failure in the host’s physical hardware.
How to generate an Azure VM RDP file
·433 words·3 mins· 100 views · 5 likes
Connect-AzAccount Get-AzRemoteDesktopFile Get-AzSubscription Get-AzVM
Hi everyone, today I want to show you how to generate an Azure VM RDP file, either for a single virtual machine or for all the VMs in a resource group.
Azure Disks Performance Tests: Ultra Disks compared
·486 words·3 mins· 100 views · 5 likes
DiskSpd Microsoft Microsoft Azure Storage
In a previous post, I showed you how to implement the new Azure Ultra Disks. Today, I want to show you how fast they really are by running performance tests and comparing them with the other disks available in Azure.
How to implement Azure Ultra Disks
·839 words·4 mins· 100 views · 5 likes
Add-AzVMDataDisk Azure PowerShell Connect-AzAccount Get-AzComputeResourceSku
Recently, Microsoft announced the general availability of Microsoft Azure Ultra Disks. These new managed disks offer incredible performance with a latency of less than milliseconds, ideal for use on Azure VMs running mission-critical workloads.
How to deploy Azure VMs with Ephemeral OS disks
·719 words·4 mins· 100 views · 5 likes
Add-AzVMNetworkInterface Azure PowerShell Connect-AzAccount Get-AzSubscription
Hi, today I want to talk to you about the Ephemeral OS disks and how to perform the deployment of virtual machines with Ephemeral OS disks using Azure PowerShell. The Ephemeral operating system disks are created in local VM virtual storage, such as temporary disks, and are not saved in Azure Remote Storage.
Convert Azure VMs to Managed Disks using PowerShell
·581 words·3 mins· 100 views · 5 likes
Azure PowerShell Connect-AzAccount ConvertTo-AzVMManagedDisk Get-AzAvailabilitySet
This post will show you how to convert a virtual machine, whether within an availability group or a single instance, from unmanaged disks (Storage Account) to disks managed using Azure PowerShell.
How to Encrypt Disks on Azure VMs using PowerShell
·625 words·3 mins· 100 views · 5 likes
Add-AzKeyVaultKey Azure PowerShell Connect-AzAccount Get-AzADUser
In my previous post, I showed you how to create a Key Vault. Today I will show you how to use that Key Vault to store the encryption key and then encrypt the disks of your virtual machines in Azure with PowerShell.