Category: Cloud

Reset RDP and Admin Password Azure VM

How to Reset RDP and Admin Password of an Azure VM

I think we all had that experience where we suddenly couldn’t use Remote Desktop Services (RDP) to access our Windows Server anymore. Luckily, if this happens to an Azure virtual machine (VM), we can use the VMAccess extension to reset the RDP configuration as well as the password of the Azure VM. You can reset the RDP configuration or the Azure virtual machine password using the Azure portal or Azure PowerShell.

Reset the administrator password of an Azure VM 🔓

To reset the password of an Azure VM, you can use the Azure portal or Azure PowerShell. If you take the portal path, log in to the Azure portal, go to the Azure VM, you want to reset the password. Under Support + Troubleshooting, click on Reset Password, and follow to the Reset Password wizard to update the credentials. Note that this is not supported for Active Directory Domain Controllers.

Reset Administrator Password of an Azure VM

Reset Administrator Password of an Azure VM

If you want to use Azure PowerShell, you can run the following commands:

$SubID = "SUBID" 
$RgName = "RESOURCE GROUP NAME" 
$VmName = "VM NAME" 
$Location = "LOCATION"
 
Connect-AzAccount 
Select-AzSubscription -SubscriptionId $SubID 
Set-AzVMAccessExtension -ResourceGroupName $RgName -Location $Location -VMName $VmName -Credential (get-credential) -typeHandlerVersion "2.0" -Name VMAccessAgent

This should help you to reset the password of an Azure Virtual Machine (VM) if you lost access to it. If you want to know more, read the following troubleshooting article on Microsoft Docs.

Reset RDP configuration 👩‍💻

If you can access your Azure Virtual Machine using RDP, you can reset the configuration, and this will enable Remote Desktop service in the VM and create a firewall rule for the default RDP port 3389. To reset the Remote Desktop Service (RDP) configuration, you again login to the Azure portal, select the virtual machine you want to reset the RDP configuration. Under Support + Troubleshooting, click on Reset Password, on the new blade select Reset configuration only, and click on update.

Reset Remote Desktop Services RDP of an Azure VM

Reset Remote Desktop Services RDP of an Azure VM

There is also an Azure PowerShell command available to do this:

$SubID = "SUBSCRIPTION ID" 
$RgName = "RESOURCE GROUP NAME" 
$VmName = "VM NAME" 
$Location = "LOCATION"
 
Connect-AzAccount 
Select-AzSubscription -SubscriptionId $SubID 
Set-AzVMAccessExtension -ResourceGroupName $RgName" -VMName $VmName" -Name "myVMAccess" -Location $Location -typeHandlerVersion "2.0" -ForceRerun

I hope this gives you an overview of how you can Reset your Remote Desktop Service of an Azure Virtual Machine (VM) if you lost access to it. If you want to know more, read the following troubleshooting article on Microsoft Docs. You can also use Azure PowerShell in Cloud Shell.

If you want to know more about how you migrate your virtual machines to Azure, check out my blog post about Azure Migrate.

 



Azure Modern Cloud Operations Ops Training Day

Join the Azure Training Day: Modern Operations at Microsoft Switzerland

Last week I had the chance to deliver one of the Azure (Ops) Training Days for Modern Operations in the Cloud at Microsoft Switzerland. Because of the high demand, we decided to set up another one in January 2020. I am happy to let you know that as part of my job in the Cloud Advocacy Methods & Practices team, I will speak at another a free Microsoft Azure Ops Training Day focusing on Modern Operations, which I will be giving at Microsoft Switzerland in the Microsoft Wallisellen office.

The full-day workshop is many focused on Azure Cloud Operations (Ops). At this training day, you will learn about new tools and processes for maintaining peak operations efficiency at Microsoft Azure Training Day: Modern Operations. You’ll discover how to leverage the Azure cloud to define and achieve service reliability, cost management, operational simplicity, business agility, and hybrid cloud management. Also, hear about proven concepts and practices in architecture, monitoring, mitigation, and governance for enterprise environments.

On the Agenda we have:

  • Azure Reliability: Achieving resilience in the cloud
  • Azure VM Operations
  • Governance + “Why Ops”
  • Hybrid Cloud Management
  • Cloud Security Operations
  • Monitoring your infrastructure and applications in production

If you are interested you can find more information and register here.

Microsoft Azure Training Day: Modern Operations

Wednesday, 22 Januar 2019, 9:00 – 16:50 (Check-in starts at 8:30) Microsoft Switzerland Richtistrasse 3 8304 Wallisellen

I hope to see you at the Microsoft Azure Training Day for Modern Operations and maybe I can add one or the other news from Microsoft Ignite 2019. Let me know if you are joining! If you have any questions about the Azure Ops Training Day, feel free to leave a comment.



Video Microsoft Ignite Live 2019 - Azure Stack Edge

Video Microsoft Ignite Live 2019 – Azure Stack Edge

At Microsoft Ignite 2019, I had the chance to interview different people across the Microsoft product groups on the Microsoft Ignite Live stage. In the next couple of weeks, I will share with you the links to the recordings of these videos. In this video, I was able to speak to Stephanie Krieger and Chris Dickens from the Azure Stack Edge team about the new AI on the edge with Azure Stack Edge, which was formerly known as Azure Data Box Edge.

Video: Azure Stack Edge

Azure Stack Edge is a cloud-managed edge computing appliance that you subscribe to as an Azure service and deploy locally. Join us to learn how you can use intelligent applications at the edge for quick insights from your data and then aggregate that data in the cloud for deeper analytics.

I hope this gives you a short overview of Azure Stack Edge. You can check out the following links to get more information:

Microsoft Ignite 2019 was a lot of fun, and you can also watch my session about Hybrid Cloud Management at Microsoft Ignite. If you have any questions, please let me know in the comments.




Azure Friday Windows Server Azure Hybrid Cloud Windows Admin Center

Azure Friday: Connect Windows Server to Azure Hybrid services

Last Friday, I had the honor to be part of the Azure Friday show with Scott Hanselman. On this Azure Friday episode, I was talking about how you can connect Windows Server to Azure Hybrid Cloud services using Windows Admin Center. You can watch the full episode here:

If you want to know more about the Azure Hybrid services and Windows Server, check out the following blog post and Microsoft Docs articles:

Back at the time of the recording, we didn’t have the chance to talk about Azure Arc, but if you want to know more about Azure Arc, check out my blog post and my session from Microsoft Ignite, as well as the Microsoft Ignite Live stage interview with Jian Yan. I hope you liked this Azure Friday episode about how you can connect Windows Server to Azure Hybrid services with Windows Admin Center. If you have any questions, feel free to leave a comment.



Video Microsoft Ignite Live 2019 - Azure Arc for Server

Video Microsoft Ignite Live 2019 – Azure Arc for Server

At Microsoft Ignite 2019, I had the chance to interview different people across the Microsoft product groups on the Microsoft Ignite Live stage. In the next couple of weeks, I will share with you the links to the recordings of these videos. In this video, I was able to speak to Jian Yan from the Azure Management team about the new Azure Arc for Servers service.

Video: Azure Arc for Server

Azure is built from the ground up to manage at-scale, cross-geography environments with multiple operational models and DevOps patterns. The vision is to keep Azure at the center of the enterprise as the control plane for governance, management, and modern development and bring the Azure management capabilities and services to any customer environment. In this session, we demo one of the extension service to enable you to bring servers from anywhere to Azure and use Azure to get a compliance view for all your server assets.

I hope this gives you a short overview of Azure Arc for Server. You can check out the following links to get more information:

Microsoft Ignite 2019 was a lot of fun, and you can also watch my session about Hybrid Cloud Management at Microsoft Ignite. If you have any questions, please let me know in the comments.



Azure Cloud Shell in Windows Admin Center

Run Azure Cloud Shell in Windows Admin Center

As you know Windows Admin Center enables you to not just manage Windows Server machines with a web-based user interface, but also to easily connect Azure Hybrid services to your on-premises Windows Server environment. Windows Admin Center allows you to connect services like Azure File Sync, Azure Update Management, Azure Backup, Azure Site Recovery and many more to your Windows Server and Azure Stack HCI environment. With the latest release of Windows Admin Center (WAC) which was announced at Microsoft Ignite 2019, we get another hybrid cloud feature. We get a new Azure Cloud Shell extension in Windows Admin Center. Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell. We are able to use Cloud Shell directly from the Azure portal, shell.azure.com, in Visual Studio Code, in the new Windows Terminal or even in the Azure mobile app. Now with the new solution/extension, administrators can also run Cloud Shell directly within WAC.

How to run Azure Cloud Shell in Windows Admin Center

First, you will need to enable and install the new Azure Cloud Shell solution. For that open Windows Admin Center, go to Settings and in the menu click on Extensions.

Extensions

Extensions

Under available extensions, you will find the new Azure Cloud Shell (Preview) extension. Click on Install, the WAC portal will refresh automatically.

After the page has refreshed, the Cloud Shell option will show up in the top menu.

Start Cloud Shell in Windows Admin Center

Start Cloud Shell in Windows Admin Center

If you start Azure Cloud Shell for the first time, you will need to login to Azure.

After that, you can run the PowerShell or Bash experience, depending on what you prefer. You also have access to the clouddrive which comes with Cloud Shell.

Azure Cloud Shell in Windows Admin Center

Azure Cloud Shell in Windows Admin Center

In that, you can run tools like the Azure CLI, Azure PowerShell and much more. If you want to learn more about Azure Cloud Shell, check out my blog post, Mastering Azure with Cloud Shell. Windows Admin Center is a free download to use with your Windows Servers, you can download Windows Admin Center here. If you want to know more about the Hybrid capabilities, check out my blog post on ITOpsTalk.com.

I hope this gives you an overview of how you can run Azure Cloud Shell in Windows Admin Center. Let me know if you have any questions in the comments.