Skip to main content
Jorge Bernhardt Jorge Bernhardt

Get-AzVM

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.

2021

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 use Packet captures with Azure Network Watcher
·875 words·5 mins· 100 views · 5 likes
Azure CLI Azure Cloud Shell Azure PowerShell Connect-AzAccount
Hi everyone, continuing with the series of articles related to Azure Network watcher, I want to show you how to use the packet capture tool from the command line. Packet captures are in a standard format and can be analyzed offline using tools such as Wireshark and stored in an Azure storage account.

2020

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 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 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.
How to deploy the Log Analytics Agent
·464 words·3 mins· 100 views · 5 likes
Azure PowerShell Connect-AzAccount Get-AzOperationalInsightsWorkspace Get-AzOperationalInsightsWorkspaceSharedKeys
In my last post, I explained to create a Workspace of log analytics, check out this link. Today I want to show you how to deploy the Log Analytics agent virtual machine extension to an existing virtual machine using Azure PowerShell.
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.
How to Resize Azure Managed Disks
·752 words·4 mins· 100 views · 5 likes
Azure CLI Get-AzDisk Get-AzSubscription Get-AzVM
In this post, I want to show you how to expand a managed operating system disk in an Azure virtual machine, using Azure PowerShell and Azure CLI. This tutorial assumes that you already have a Microsoft Azure account configured.