Tag: Virtual

How to Manage Hyper-V VM Checkpoints with PowerShell

How to Manage Hyper-V VM Checkpoints with PowerShell

In this blog post we are going to have a look at how you can create, manage, apply, and remove VM Checkpoints in Hyper-V using PowerShell. Hyper-V virtual machine (VM) checkpoints are one of the great benefits of virtualization. Before Windows Server 2012 R2, they were known as virtual machine snapshots. VM Checkpoints in Hyper-V allow you to save the system state of a VM to a specific time and then revert back to that state if you need to. This is great if you are testing software and configuration changes, or if you have a demo environment, which you want to reset.

Hyper-V VM Checkpoint Types

Before we got on how you can manage Hyper-V VM Checkpoints with PowerShell, let me first explain the two different types. Since Windows Server 2016 and Windows 10, Hyper-V includes two types of checkpoints, Standard Checkpoints, and Production Checkpoints.

  • Standard Checkpoints: takes a snapshot of the virtual machine and virtual machine memory state at the time the checkpoint is initiated. A snapshot is not a full backup and can cause data consistency issues with systems that replicate data between different nodes such as Active Directory. Hyper-V only offered standard checkpoints (formerly called snapshots) prior to Windows 10.
  • Production Checkpoints: uses Volume Shadow Copy Service or File System Freeze on a Linux virtual machine to create a data-consistent backup of the virtual machine. No snapshot of the virtual machine memory state is taken.

You can set up these settings in Hyper-V Manager or in PowerShell.

Hyper-V VM Checkpoint Types

Hyper-V VM Checkpoint Types

If you are using PowerShell to configure Checkpoints for virtual machines these commands may help you.

Configure and set VM for Standard Checkpoints

Set-VM -Name "Windows10" -CheckpointType Standard

Set VM to Production Checkpoints, if the production checkpoint fails a Standard Checkpoint is created

 Set-VM -Name "Windows10" -CheckpointType Production

Set VM to only use Production Checkpoints

 Set-VM -Name "Windows10" -CheckpointType ProductionOnly

Disable VM Checkpoints for the Hyper-V virtual machine

 Set-VM -Name "Windows10" -CheckpointType Disabled

Managing Hyper-V VM Checkpoints using PowerShell

Create VM Checkpoints

You can create a new VM Checkpoint with PowerShell, you can round the following command:

Checkpoint-VM -Name "Windows10"

You can find more on the cmdlet on Microsoft Docs.

You can list the VM Checkpoints of a Hyper-V VM:

Get-VMCheckpoint -VMName "Windows10"
How to Manage Hyper-V VM Checkpoints with PowerShell

How to Manage Hyper-V VM Checkpoints with PowerShell

Applying Hyper-V VM checkpoints using PowerShell

If you want to revert your virtual machine state to a previous point-in-time, you can apply an existing checkpoint, using the following PowerShell command.

Restore-VMCheckpoint -Name "checkpoint name" -VMName "Windows10" -Confirm:$false

You can find more information about the cmdlet here.

Renaming checkpoints

To rename a checkpoint you can use the following command

Rename-VMCheckpoint -VMName "Windows10" -Name "Checkpointname" -NewName "MyNewCheckpointName"

Deleting checkpoints

You can also delete or remove a Hyper-V VM checkpoint with the following PowerShell command. This will merge the .avhdx files in the background.

Remove-VMCheckpoint -VMName "Windows10" -Name "Checkpointname"

Conclusion

I hope this blog post gives you a great overview on how you can manage, apply, restore, and remove Hyper-V VM Checkpoints using PowerShell. You can learn more about Hyper-V virtual machine checkpoints on Microsoft Docs. If you have any questions, feel free to leave a comment.



Azure Singapore Virtual Meetup Azure Arc

Speaking about Azure Arc at the Azure Singapore Virtual Meetup

On Wednesday, June 10, I will be joining the Azure Singapore Virtual Meetup to talk about managing and govern Hybrid Environment using Azure Arc. The event will be held online from 7 pm (GMT+8) and you can find more information about the event and the Azure Singapore User Group here.

Manage and govern your hybrid environment using Azure Arc
Wednesday, 10 June 2020 7:00 pm to 8:00 pm GMT+8 📅 (Link)

Thomas Maurer shows you how you can manage and govern your Windows and Linux machines hosted outside of Azure on your corporate network or at other cloud providers, similar to how you manage native Azure virtual machines.

When a hybrid machine is connected to Azure, it becomes a connected machine and is treated as a resource in Azure. Azure Arc provides you with the familiar cloud-native Azure management experience, like RBAC, Tags, Azure Policy, Log Analytics, and more.

I hope you tune in for this week’s Azure Singapore Virtual Meetup and see you in the live stream! If you have any questions or comments, feel free to leave a comment below.



Speaking at the Microsoft European Open Source Virtual Summit

Speaking at the Microsoft European Open Source Virtual Summit

I am honored to let you know that I will be speaking at the Microsoft European Open Source Virtual Summit 2020 on June 16th. Microsoft European Virtual Open Source Summit by the Microsoft Open Source team is a unique digital event, designed to celebrate communities, entrepreneurs, and developers coming together to build the future of open source technologies in the cloud.

The day will divide into four parallel tracks designed to provide the best learning experience for IT Pros, Developers, and Data Scientists. Each track will be packed with expert guest speakers who’ll be deep-diving into a wide variety of topics, from chaos engineering and serverless architecture to multi-cloud app development.

  • 2 Keynotes from GitHub and Red Hat
  • 4 Tracks with 7 sessions (check the agenda)
  • Ask the Experts Live Q&A
  • 30 Sessions from the most engaging Open Source speakers
  • Digital Expo Area with Digital booths of our partners

I will be presenting two sessions:

  • Hybrid Management capabilities for open source solutions like Azure Arc.
    11:30 – 12:15 CEST
    Register here
  • Making Windows Awesome for ALL Developers with Scott Hanselman
    13:00 – 13:45 CEST
    Register here.

More tracks and sessions:

  • Keynote Session 1: Open Source Built the Modern World by Nat Friedman, CEO, GitHub
  • Keynote Session 2: Business Benefits of Open Source Collaboration Between Red Hat and Microsoft by Stefanie Chiras, SVP & General Manager, Red Hat Enterprise Linux Business Unit
  • Track 1: Infra & Ops – Infra related topics around Linux, Hybrid Management, Chaos Engineering, and more.
  • Track 2: Innovation – Cloud-native track with diverse line-up of speakers and subjects.
  • Track 3: Data & AI – Learn all there is to know about Open Source and Data. Strong line-up also from partners.
  • Track 4: Developers – 7 amazing sessions ensuring the developer audience get what they want!

I hope to see you at the Microsoft European Open Source Virtual Summit! If you have any questions feel free to leave a comment.



Speaking at Microsoft Virtual Training Week Germany 2020

Speaking at the Microsoft Virtual Training Week Germany 2020

I am happy to let you know that I will be speaking virtually at the Microsoft Virtual Training Week Germany 2020 from May 11-14. This is a free four-day online event, where you can learn in different learning paths and tracks about the latest and greatest Microsoft technologies like Microsoft Azure, Dynamics 365, Microsoft 365, and many more. I will be speaking on Wednesday, May 13, and Thursday, May 14. The event will have a mix from sessions in German as well as sessions in English. My session will be in English and I will be talking in the Migrating Server Infrastructure and the Modern Cloud Operations track.

Migrating Server Infrastructure (Wednesday, May 13 – 13:30-17:30 CEST)

  • Migrating to Windows Server 2019 (Thomas Maurer – English)
    Tailwind Traders has acquired Northwind, a large subsidiary company. Northwind currently has 1500 servers running Windows Server 2008 R2 – either directly or virtually – on hardware at the midpoint of its operational lifespan. While Tailwind Traders will eventually move many of these workloads to Azure, Windows Server 2008 R2 end of life is quickly approaching. In this session, learn how Tailwind Traders’ used Azure hybrid management technologies to migrate servers, and the roles that they host, to Windows Server 2019.
  • Integrated Cloud Technologies – Hybrid Management Technologies (Thomas Maurer – English)
    Tailwind Traders has now migrated the majority of their server hosts from Windows Server 2008 R2 to Windows Server 2019. Now, they are interested in the Azure hybrid technologies that are readily available to them. In this session, learn how Tailwind Traders began using Windows Admin Center to manage its fleet of Windows Server computers and integrated hybrid technologies, such as Azure File Sync, Azure Arc, Azure Azure Site Recovery, and Azure Update Management to improve deployment performance and manageability.
  • Migrating IaaS Workloads to Azure (Markus Klein – German)
    Now that the migration of their server hosts from Windows Server 2008 R2 to Windows Server 2019 is complete, Tailwind Traders wants to begin the process of “lift and shift”: migrating some of their on-premises VMs they’ve been running in their datacenter. In this session, learn about how Tailwind Traders began the process of migrating some of their existing VM workloads to Azure and how this allowed them to retire aging server hardware and close datacenter and server rooms that were costing the organization a substantial amount of money.

You can find more information and register for free here.

Azure: Managing Cloud Operations (Thursday, May 14 – 13:30-17:30 CEST)

  • IaaS VM Operations (Thomas Maurer – English)
    In recent months, Tailwind Traders has been having issues with keeping their sprawling IaaS VM deployment under control, leading to mismanaged resources and inefficient processes. In this session, look into how Tailwind Traders can ensure their VMs are properly managed and maintained with the same care in Azure as they were in Tailwind Trader’s on-premises data centers.
  • Azure Governance and Management (Thomas Maurer – English)
    Tailwind Traders’ deployments are ocuring in an ad hoc manner, primarily driven by lack of protocol and unapproved decisions by various operators or employees. Some deployments even violate the organization’s compliance obligations, such as being deployed in a manner that violates PCI DSS rules. After bringing their existing IaaS VM fleet under control, Tailwind Traders wants to ensure that future deployments comply with policy and organizational requirements. In this session, walk through the processes and technologies that will keep Tailwind Trader’s deployments in good standing with the help of Azure Blueprints, Azure Policy, Locks, and more.

You can find more information and register for free here.

I hope you join us at the Microsoft Virtual Training Week Germany 2020. If you have any questions feel free to leave a comment. I also summarized some of the links to documentation which will help you with the topics above.

If you want to watch some videos on demand, check out my YouTube channel.



Speaking at Deploy by ShareGate Online Event

Speaking at Deploy by ShareGate Online Event

I am happy to let you know that I will be speaking online at Deploy by ShareGate. Deploy is an expert-led online event focused on Microsoft Azure Governance. On May 7th, at Deploy, I’ll be talking about Manage and govern your hybrid servers using Azure Arc, to help you stay on top of your Azure hybrid environment. This full-day virtual event, led by me and seven other Azure experts, is all about helping you implement Azure governance best practices.

Manage and govern your hybrid servers using Azure Arc

Thomas Maurer shows you how you can manage and govern your Windows and Linux machines hosted outside of Azure on your corporate network or other cloud provider, similarly to how you manage native Azure virtual machines. When a hybrid machine is connected to Azure, it becomes a connected machine and is treated as a resource in Azure. Azure Arc provides you with the familiar cloud-native Azure management experience, like RBAC, Tags, Azure Policy, Log Analytics and more.

If you’re interested in learning how to implement Azure governance best practices, join me (virtually) at Deploy by ShareGate on May 7! Save your free seat now and join me (virtually) at Deploy. I hope to see you there!



Global Azure Virtual 2020 UK Ireland

Speaking at Global Azure Virtual 2020 UK & Ireland

You might have seen that I am presenting at the Global Azure Virtual 2020 in two live streams this week on Thursday and Friday. I am happy to also let you know that I will be part of the Global Azure Virtual 2020 UK & Ireland, where I will contribute with 2 sessions around Azure Hybrid Management and Getting started with Azure Governance. The UK & Ireland edition has over 50 sessions over these three days, all available on YouTube.

The Global Azure Virtual 2020 UK & Ireland has an amazing speaker lineup. so definitely check that out. You can find more information on the Global Azure Virtual 2020 UK & Ireland website.

My session will run on day 1 (April 23) and 2 (April 24):

Global Azure Virtual 2020 UK Day 1 Session

Global Azure Virtual 2020 UK Day 1 Session

Global Azure Virtual 2020 UK Day 2 Session

Global Azure Virtual 2020 UK Day 2 Session

I hope you will join us on these 3 days (23-25 April 2020) of the Global Azure Virtual 2020 events around the globe. If you have any questions, feel free to leave a comment.



Speaking at Global Azure Virtual 2020 Livestream

Speaking at Global Azure Virtual 2020 (Livestream)

As you may know, the Global Azure Bootcamp 2020 was moved to a virtual event called Global Azure Virtual 2020. I am happy to let you know that I will be speaking and delivering two sessions this week at Global Azure Virtual 2020 on my YouTube livestream. Global Azure Virtual 2020 is a 3-day virtual conference with world-class speakers and community leaders Isidora Katanic and Rik Hepworth as hosts. Additionally, also part of Global Azure Virtual, communities around the world are organizing localized live streams for everyone around the world to join and learn about Azure from the best-in-class community leaders.

My Global Azure Virtual 2020 Livestream

  • 23-25 April 2020
  • 145 Speaker
  • 210 sessions

I will be live-streaming two sessions about Azure Hybrid and Azure Governance. You can watch the streams right here on thomasmaurer.ch or on my YouTube channel.

Connect your servers to the Cloud using Azure Hybrid Management Technologies

Windows Server, Azure Stack HCI, and Windows Admin Center not only provide you with great hyper-converged solutions but also enable you to connect to Azure Hybrid Cloud services. In this session, Thomas Maurer will show you how you can connect Azure services like Azure Site Recovery, Azure Backup, Azure File Sync, Azure Monitor and many more to your on-prem Windows Server 2019 and Azure Stack HCI environment. And how you can manage and implement governance for your hybrid servers from the cloud, using Azure Arc for servers.

  • Date Thursday, April 23
  • Time 17:00 (Time Zone CEST Central European Summer Time (Cf. HAEC) UTC+02)

Global Azure Virtual 2020 Livestream:

Getting Started with Azure Governance and Management

IT Operations doesn’t go away in the cloud, and you will need to manage your cloud environment and configure guardrails to make sure you stay secure, consistent, and keep your costs under control. In this session, Thomas Maurer will show you how you can get started with Azure governance and management to make sure you can efficiently manage costs, security baselines, company policies, and much more using Azure Governance and management features. This includes features like Azure Policy and Blueprints.

  • Date Friday, April 24
  • Time 18:00 (Time Zone CEST Central European Summer Time (Cf. HAEC) UTC+02)

Global Azure Virtual 2020 Livestream:

Join us on the Global Azure Virtual 2020 Livestreams!

So if you are interested, join us on these 3 days for different sessions online. I am really looking forward to speak in the livestream. You can find more about the event here.

If you have any questions, feel free to leave a comment.