Category: Work

All about my Work


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.



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.



Microsoft Ignite 2019 Bag

What’s in my bag for Microsoft Ignite 2019

For the last couple of Microsoft Ignite conferences (2015, 2017, 2018), I wrote a blog about what I will carry in my bag. I decided to do that again, and give you a quick look and share with you what’s in my bag for Microsoft ignite 2019 in Orlando. If you are a first-time attendee, you might enjoy a few tips on how I pack and what I take with me during the conference days. If you already a Microsoft Ignite veteran, you might still find some interesting tips you can use yourself. I am also interested to hear about your tips and what you are packing for Microsoft Ignite 2019.

I am super excited to meet with people from all around the world and help the team presenting and speaking in a couple of sessions and hosting some Channel9 live interviews. So if you are there, make sure you come over and say hi.

Let’s have a quick look at some of the things we keep in mind. First, attendees will get some SWAG like the Ignite backpack and a water bottle. So keep in mind that you might need to leave some space in your luggage on the day way back, and you might not need to bring your own backpack to the event since you will get one. Rick Claus and Joey Snow did a full video review on this year’s Microsoft Ignite 2019 conference backpack here.

The next thing you need to be aware of is that the Microsoft conference is enormous, and your sessions and meetings may be spread over the whole venue. You will walk a lot. It is crucial that you have good and comfortable shoes and save weight as much as possible when packing your bag.

What did I pack for Microsoft Ignite

I try to pack light, and this is what I bring to Microsoft Ignite 2019.

Microsoft Ignite 2019 Bag

Microsoft Ignite 2019 Bag

  • Same as last year, the primary devices this year will be the Microsoft Surface Go. Next to it being a notebook, tablet, and desktop replacement, it is very lightweight and small, which will not add a lot of weight. However, it still comes with a full Windows 10. This makes it a great device to carry it around the conference. And with OneNote, it should be great to take notes. I will have a look at the Surface Pro X, which will be available on November 5th, and it looks like a more powerful device then the Surface Go but still is thin and light. There will be a Microsoft pop-up store at Microsoft Ignite, and I hope that they have a couple of Surface Pro X devices available.
  • The Surface Pen, especially for conferences, workshops, and training, I like to take handwritten notes or draw things to discuss ideas and solutions with people.
  • Since I will do some serious work during Ignite, I will bring my Surface Book 2. The main reason for this is the screen size and performance. When I am working a couple of hours, a little bit more screen, real estate helps a lot.
  • The Surface Headphones and their noise-canceling feature is some real lifesaver. I like them especially when I travel and have long flights. But I also like that they now support Bluetooth so that I can connect wirelessly. I also use them regularly for conf calls.
  • I am also carrying the Samsung Galaxy Gear S3, which helps me tracks the steps I walk during Microsoft Ignite and the limited sleep I get during this event. Trust me, you will definitely walk a lot during that conference.
  • For presentations, I got a Microsoft USB-C to HDMI and VGA adapter. Since the Surface Book 2 and the Surface Go, both use USB-C for an external dongle, this makes it simple to carry just one type.
  • I just use one power adapter of the Microsoft Surface Book 2, which can power the Surface Go and the Surface Book 2. It also has an integrated USB port for charging the phone, speaker, and other stuff.
  • I will bring one of my Microsoft hoodies, which I quickly can put on and take off during the conference. As usual, you will experience some temperature differences between outside and inside. To quickly adjust to the right temperature, will not only make you happy but will also reduce the chance of you getting sick.
  • Next to that, I will bring some cables, sunglasses and a bunch of other stuff you need during a conference.

Now you have seen what I will be carrying, let me know what you pack in the comments.

Preparing is key; make sure you have a look at the session catalog and plan your session. You can always switch and go to another session, but making sure you know about the sessions you want to see, helps. Speaking about sessions, make sure you have a look at my session about Hybrid Management Technologies.

Nex to sessions there are other fun things to do:

  • Azure Developer and Architecture Center (DAC) where you can talk and meet with experts to discuss and listen to lightning talks
  • Channel 9 live shows and interviews
  • Microsoft Store
  • Expo Floor with a lot of partners and sponsors
  •  You can also take Microsoft Certification exams directly there, some of them even for free.
  • and much more

This was a quick look at what’s in my bag for Microsoft Ignite 2019. Let me know what your tips for Microsoft Ignite 2019 are in the comments.



Tips on how to take Microsoft Azure Certification Exams

Tips on how to take Microsoft Azure Certification Exams

As I wrote a couple of blog posts on Microsoft Azure Certification exams, like why should you become Microsoft Azure Certified, how you pick the right Azure Certification path or how you prepare for an Azure exam, I now got the questions if I have some tips to share about how to take the Microsoft Certification exams. I know that everyone takes exams differently, but I want to share what helped me to pass the exams. So here is a short list with tips on how you can be more successful when you take your Microsoft Azure Certification Exams.

Make sure you are prepared 💪

As mentioned in my blog post how you prepare and pass a Microsoft Azure Certification exam, you need to go through the topics and prepare. There are a lot of great resources to prepare for this exam. Great free resources I use usually are Microsoft Docs and Microsoft Learn, make sure you check out my blog post to get prepared.

There are also Microsoft Official Practice Tests available which are a great way to build your confidence and validate your skills, allowing you to identify gaps that you might need to resolve before you take your Microsoft Certification exam. Another resource you might find helpful is the Exam Replay offer, giving you the opportunity to retake the same exam if you failed the first time.

Empower your brain ⚡

Now it is essential to make your mind work best during the exam. Make sure you had enough sleep, and you have the right amount of sugar and caffeine in you. Depending on the exam, you will be spending quite some time on the exam, and you will read a lot, so make sure you have enough energy to get the answers out of your brain. Questions often come with a lot of different information. Parts of that information is relevant for the answer, and other parts are not. You will need to focus on sorting relevant and irrelevant information.

Plan enough time and avoid stress ⌚

If you are going to take the exam at a test center, make sure you show up early. It is not great if you have to rush into the exam room because you came late. The same applies when you are taking the exam from home. I like to be ready for the exam more-less half an hour before the exam starts. This gives me a little bit of time to get in exam mode and make my brain switch from the thing I was doing before, to the exam topic.

Get into the topic 📄

For some people switching context between different things isn’t a big deal. For me, it works best if I have some ‘stress-free’ time after the last thing I did, before getting into the exam mode. I usually do an extra round on Microsoft Docs to get my brain thinking about the right context.

Get comfortable 🛋

Make sure you are relaxed and ready for the exam at least half an hour before your exam is scheduled to start. Also, make sure you used the restroom, you had your coffee and water because you are not allowed to take a break during the exam, and you can’t have these things close to you during the exam. And again, be relaxed, if you don’t pass the exam it isn’t the end of the world, you can still retake the exam another time. That said, also make sure you take advantage of special offers, like exam replays.

Read the questions carefully 👓

Make sure you read the questions carefully, to understand what is really asked. It also helps you to navigate through the exam, usually, you can go back to specific questions later. However, in some cases, the exam will let you know that you cannot access the question later after you have clicked next.

Answer all questions and use the mark question feature ✔

Now, when you start with the exam, you will maybe find some topics you are not familiar with, and you might not be sure about the answer. In these cases, you can mark this question and come back to it later, so you don’t lose too much time on it. If you don’t know the answer, make sure you at least select an answer, it is always better to have a small chance in guessing the right answer, then not answering the question at all. If you want to know more about the different types of questions in a Microsoft exam, check out my blog, which has a couple of additional tips on how to prepare and pass the exam.

Write down what you have learned 📝

For me it doesn’t matter if I have passed the exam or not, I always write down things I didn’t know the answer to. This allows me to look them up later and learn more. Make sure you don’t share this information since that would violate the testing policies.

Do you have tips to take a Microsoft Azure Exam? 🤔

I hope this blog post gives you some useful tips on how to take a Microsoft Azure Certification exam. Do you have any suggestions and tips? Let me know in the comments!

By the way, make sure you take the 2020 IT Skills and Salary Survey from Global Knowledge and be one of the first to get the results of the report early next year.

Getting started! 🧪

Are you also interested in becoming Microsoft Azure Certified? Check out my blog posts about why you should become Microsoft Azure Certified and how to pick the right Azure exam certification path. And have a look at my Azure exam experience with the different Azure exams.



Cascadia Code in Windows Terminal

Change the Windows Terminal Theme from Light to Dark

This is again a very small post on the Windows Terminal, like how to open the Windows Terminal from the command prompt or run and how to change the Windows Terminal background image. This time I got asked about how you switch the Windows Terminal Theme from light to dark. Well, the answer is pretty simple. The theme of the Windows Terminal is defined by the Windows 10 color theme. So to change the Windows Terminal theme from light to dark, you simply need to change the default app mode to dark or switch completely switch to dark in the Windows 10 personalization settings. Not like other Windows 10 apps, after you have switch the color mode, you will need to close and reopen the Windows Terminal to see the change.

The Windows Terminal is currently in preview and lets you run shells like the classic command-line, PowerShell or WSL and WSL 2. If you want to know how to install the Windows Terminal, check out my blog post.

Change to Windows Terminal Dark Theme

Here is how you change it to the dark theme.

  1. Open Windows 10 Settings
  2. Go to Personalization
  3. Click on Colors
  4. Choose your color and select “Dark
Windows Terminal Dark Theme

Windows Terminal Dark Theme

 

Activate Light Theme

Here is how you change it to the light theme.

  1. Open Windows 10 Settings
  2. Go to Personalization
  3. Click on Colors
  4. Choose your color and select “Light
Windows Terminal Light Theme

Windows Terminal Light Theme

I hope this is a quick help, also check out my blog post about the new font called Cascadia Code. If you have any questions, please let me know in the comment.