Thomas Maurer
Blogs, Articles, and Posts
6 Command Line (PowerShell & CLI) Tips & Tricks for Microsoft Azure you should know about!
(thomasmaurer.ch)
There are many experiences and possibilities to manage your Microsoft Azure resources, one of them
By: Thomas Maurer submitted:Dec 16 2022
There are many experiences and possibilities to manage your Microsoft Azure resources, one of them
being the command line experience using the Azure CLI or Azure PowerShell. In this blog post we are going to have a look at 6 tips & tricks for managing your Microsoft Azure resources using the command line with Azure
By: Thomas Maurer submitted:Dec 16 2022
Add a PowerShell Remote Session in Windows Terminal
(thomasmaurer.ch)
I am sure you have heard about the new Windows Terminal, which is in preview, and you can get it
By: Thomas Maurer submitted:Jun 15 2022
I am sure you have heard about the new Windows Terminal, which is in preview, and you can get it
from the Windows Store. In this blog post, I want to share how you can add a PowerShell remote session to the drop-down menu in the Windows Terminal when you open a new tab. The new Windows Terminal is highly customizable and it allows you to run different shells like the classic command prompt, Windows PowerShell, PowerShell 7, and also Windows Subsystem for Linux shells (I am using, for example, Ubuntu with the Windows Subsystem for Linux 2 (WSL 2)).
By: Thomas Maurer submitted:Jun 15 2022
Automate on-premises Windows Server from the cloud using Azure Arc
(thomasmaurer.ch)
Running Windows Server on-premises or at the edge? Learn how you can leverage Azure automation,
By: Thomas Maurer submitted:Apr 12 2024
Running Windows Server on-premises or at the edge? Learn how you can leverage Azure automation,
PowerShell, Windows commands, and Azure management solutions for Windows Server on-premises. At the Windows Server Summit 2024, I had the chance to deliver a session with Ryan Willis Product Manager for Azure Arc and we went through different automation options ...
By: Thomas Maurer submitted:Apr 12 2024
Az Next – AI-powered interactive assistant Azure CLI
(thomasmaurer.ch)
As you know, the Azure CLI already AI-build in with the az find command, and you might have seen a
By: Thomas Maurer submitted:Jun 16 2022
As you know, the Azure CLI already AI-build in with the az find command, and you might have seen a
great feature like AI-powered PowerShell module called Az Predictor Module (Azure PowerShell Predictions), which does what the name says, predict PowerShell commands. Now with az next, the team also brought a similar feature to the Azure CLI. The team's goal with az next is to guide users through their scenarios or sequence of jobs-to-be-done in tool, so that they could remain focused and avoid unnecessary external documentation searches.
By: Thomas Maurer submitted:Jun 16 2022
Azure Arc Setup on Windows Server
(thomasmaurer.ch)
With Windows Server 2022 and later you now get the Azure Arc Setup integrated on your Windows
By: Thomas Maurer submitted:Dec 8 2023
With Windows Server 2022 and later you now get the Azure Arc Setup integrated on your Windows
Server. This allows you to onboard your Windows Server through a graphical wizard. With the wizard, you can easily onboard your Windows Server machine to Azure Arc. The wizard takes care of the following steps for you: verifying ...
By: Thomas Maurer submitted:Dec 8 2023
Cloud operations for Windows Server through Azure Arc
(thomasmaurer.ch)
Running Windows Server on-premises or at the edge? Learn how you can leverage Azure management
By: Thomas Maurer submitted:Apr 19 2024
Running Windows Server on-premises or at the edge? Learn how you can leverage Azure management
solutions for cloud operations for Windows Server through Azure Arc.
By: Thomas Maurer submitted:Apr 19 2024
Connect Azure Cloud Shell to Virtual Network vNet
(thomasmaurer.ch)
As you know, Azure Cloud Shell is a great management tool to manage your Azure resources. Azure
By: Thomas Maurer submitted:Jun 16 2022
As you know, Azure Cloud Shell is a great management tool to manage your Azure resources. 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.
By: Thomas Maurer submitted:Jun 16 2022
Connect your AKS Edge Essentials cluster to Azure Arc
(thomasmaurer.ch)
In a blog post I was describing how you can install Kubernetes on Windows 10 and Windows 11 using
By: Thomas Maurer submitted:May 5 2023
In a blog post I was describing how you can install Kubernetes on Windows 10 and Windows 11 using
Azure Kubernetes Service (AKS) Edge Essentials. In this blog post we are going to have a look at how you can connect this AKS Edge Essentials cluster to Microsoft Azure using Azure Arc-enabled Kubernetes, and how ...
By: Thomas Maurer submitted:May 5 2023
Create an Azure Arc Service Principal with longer expiration date using PowerShell
(thomasmaurer.ch)
When you are onboarding at scale of Azure Arc enabled servers or Azure Arc enabled Kubernetes
By: Thomas Maurer submitted:Sep 16 2022
When you are onboarding at scale of Azure Arc enabled servers or Azure Arc enabled Kubernetes
clusters, you want to use service principals for automated authentication during the onboarding process for Azure Arc resources. Microsoft provides you with an option in the Azure portal to create that service principal. When you use this, you can set .
By: Thomas Maurer submitted:Sep 16 2022
Download script or file from GitHub
(thomasmaurer.ch)
Since a lot of people are starting to store their scripts and files in GitHub repositories, I often
By: Thomas Maurer submitted:Jun 16 2022
Since a lot of people are starting to store their scripts and files in GitHub repositories, I often
get the question, how can I download a script or a file from a Git repository using PowerShell. There are a couple of ways to you can obviously do this. You could use git and do a git clone of the repository and then run the script. In many cases however you don't have git installed on the machine or it would be too much to clone the whole repo. So you can simply download the file or script from GitHub using PowerShell using the Invoke-WebRequest cmdlet.
By: Thomas Maurer submitted:Jun 16 2022
Empty Windows recycle bin with PowerShell
(thomasmaurer.ch)
Windows has the concept of the recycle bin, from which you can restore files you have deleted. You
By: Thomas Maurer submitted:Jun 16 2022
Windows has the concept of the recycle bin, from which you can restore files you have deleted. You
might want to clear the Windows recycle bin from time to time, to remove unnecessary files and free up space. You can do that using the Windows user interface, or you can empty the Windows recycle bin using PowerShell. The Clear-RecycleBin is a simple PowerShell cmdlet, which removes the file from the Windows recycle bin.
By: Thomas Maurer submitted:Jun 16 2022
How to chain multiple PowerShell commands on one line
(thomasmaurer.ch)
PowerShell one-liners sometimes are an easy way to achieve something quickly. There are cases where
By: Thomas Maurer submitted:Jun 16 2022
PowerShell one-liners sometimes are an easy way to achieve something quickly. There are cases where
you might want to run multiple separated PowerShell commands on one line. This can be handy if you do copy pasting of commands or if you want to make it easy for the end-user when you need to troubleshoot something. In this blog post, we will look at how you can chain and run multiple PowerShell commands on one line using pipelines and chaining commands.
By: Thomas Maurer submitted:Jun 16 2022
How to chain multiple PowerShell commands on one line ?? – YouTube
(youtube.com)
PowerShell one-liners sometimes are an easy way to achieve something quickly. There are cases where
By: Thomas Maurer submitted:Jun 16 2022
PowerShell one-liners sometimes are an easy way to achieve something quickly. There are cases where
you might want to run multiple separated PowerShell commands on one line. This can be handy if you do copy pasting of commands or if you want to make it easy for the end-user when you need to troubleshoot something. In this blog post, we will look at how you can chain and run multiple PowerShell commands on one line using pipelines and chaining commands.
By: Thomas Maurer submitted:Jun 16 2022
How to Copy files from Windows to Linux using PowerShell Remoting
(techcommunity.microsoft.com)
With the release PowerShell Core 6, the PowerShell Team brought PowerShell to other platforms like
By: Thomas Maurer submitted:Jun 15 2022
With the release PowerShell Core 6, the PowerShell Team brought PowerShell to other platforms like
Linux and macOS. This new cross-platform approach allows users to take advantage of some pretty cool features. In this blog post, I am quickly going to show you, how you can use PowerShell Remoting to copy files from Windows to Linux systems.
By: Thomas Maurer submitted:Jun 15 2022
How to Manage Hyper-V VM Checkpoints with PowerShell
(thomasmaurer.ch)
In this blog post we are going to have a look at how you can create, manage, apply, and remove VM
By: Thomas Maurer submitted:Jun 16 2022
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.
By: Thomas Maurer submitted:Jun 16 2022
How to Move Files with PowerShell
(thomasmaurer.ch)
PowerShell is a powerful scripting language that can help you automate various tasks on your Windows
By: Thomas Maurer submitted:Jun 9 2023
PowerShell is a powerful scripting language that can help you automate various tasks on your Windows
and Linux system. One of the common tasks that you may need to perform is moving files from one location to another. In this blog post, I will show you how to use PowerShell to move files with different ...
By: Thomas Maurer submitted:Jun 9 2023
How to run scripts against multiple Azure VMs by using Run Command
(thomasmaurer.ch)
I wrote a blog post on how to run scripts in your Azure VM by using Run Command, and explained how
By: Thomas Maurer submitted:Jun 16 2022
I wrote a blog post on how to run scripts in your Azure VM by using Run Command, and explained how
handy this feature is to manage Azure virtual machines (VMs). In this blog post, we are going to have a look at how you can run scripts against multiple Azure virtual machines (VMs) by using PowerShell and the Invoke-AzVMRunCommand feature.
By: Thomas Maurer submitted:Jun 16 2022
Move Azure Arc-enabled Server to a different resource group or subscription
(thomasmaurer.ch)
This is just a quick post on how you can change and move your Azure Arc-enabled server to a
By: Thomas Maurer submitted:Feb 3 2023
This is just a quick post on how you can change and move your Azure Arc-enabled server to a
different resource group or subscription. To do this, you can use the Azure PowerShell module and the Move-AzResource cmdlet. You can find more about the Move-AzResource cmdlet on Microsoft Learn. The Move-AzResource cmdlet moves existing resources to a ...
By: Thomas Maurer submitted:Feb 3 2023
My Windows Terminal Color Schemes
(thomasmaurer.ch)
The Windows Terminal became generally available at the Microsoft Build 2020 virtual conference a
By: Thomas Maurer submitted:Jun 16 2022
The Windows Terminal became generally available at the Microsoft Build 2020 virtual conference a
couple of weeks ago. I already blogged about how you can customize your Windows Terminal settings and shared my settings.json file. Many people asked me about the different Windows Terminal Color Schemes I use. So I thought a blog post would be a good way of sharing my Windows Terminal Schemes.
By: Thomas Maurer submitted:Jun 16 2022
Run PowerShell Scripts with Azure Automation Hybrid Workers on-premises using Azure Arc
(thomasmaurer.ch)
If you want to automate your on-premises environment Azure Arc enabled Server is a great offering to
By: Thomas Maurer submitted:Sep 9 2022
If you want to automate your on-premises environment Azure Arc enabled Server is a great offering to
onboard Azure management services such as Azure Monitor, Defender for Cloud, and many others. One of the integrations is with Azure Automation Hybrid Worker. This allows you to run Azure Automation PowerShell or Phyton runbooks on-premises directly on .
By: Thomas Maurer submitted:Sep 9 2022
Schedule and Run PowerShell Scripts for Azure VMs using Azure Automation
(thomasmaurer.ch)
A while ago I wrote a blog post on how you can run a PowerShell or Bash script against multiple
By: Thomas Maurer submitted:Aug 12 2022
A while ago I wrote a blog post on how you can run a PowerShell or Bash script against multiple
Azure Virtual Machines (VMs) using Run Command. In this blog post we are going to have a look on how you can schedule and run PowerShell and Bash scripts against Azure virtual machines (VMs) using .
By: Thomas Maurer submitted:Aug 12 2022
SSH access to servers running anywhere using Azure Arc
(thomasmaurer.ch)
With Azure Arc, you can remotely manage your Linux and Windows Servers using the Azure control plane
By: Thomas Maurer submitted:Jun 16 2022
With Azure Arc, you can remotely manage your Linux and Windows Servers using the Azure control plane
and management services, such as Azure Policy, Update Management, Security Center, Azure Monitor, and many more.
By: Thomas Maurer submitted:Jun 16 2022
Upload Files to Azure Blob Storage using Power Automate Desktop
(techcommunity.microsoft.com)
In this blog post, we are going to have a look at how you can automatically upload files to an Azure
By: Thomas Maurer submitted:Jun 16 2022
In this blog post, we are going to have a look at how you can automatically upload files to an Azure
Blob storage account using Power Automate Desktop. Power Automate Desktop is a great tool to build automation on your desktop. You can create flows,?interact with everyday tools such as email and excel and work with modern and legacy applications.
By: Thomas Maurer submitted:Jun 16 2022
Use the Azure Arc Managed Identity with Azure PowerShell
(thomasmaurer.ch)
In this blog post we are going to have a look at how you can use the Azure Arc provided Azure Active
By: Thomas Maurer submitted:Oct 7 2022
In this blog post we are going to have a look at how you can use the Azure Arc provided Azure Active
Directory (Azure AD) managed identity (MSI) to authenticate in Azure PowerShell on your on-premises Linux and Windows Server machines. The moment you want to run some automation directly on your servers, you often .
By: Thomas Maurer submitted:Oct 7 2022
Write PowerShell Online using Visual Studio Codespaces
(thomasmaurer.ch)
Last week the Visual Studio Services team announced a new service called Visual Studio Codespaces.
By: Thomas Maurer submitted:Jun 16 2022
Last week the Visual Studio Services team announced a new service called Visual Studio Codespaces.
Visual Studio Codespaces allows you to do cloud-hosted development for wherever you're working. While the new services support many different programming and scripting languages, it also supports PowerShell. In this blog post, I am going to show you how you can write PowerShell code online in a web browser using Visual Studio Codespaces.
By: Thomas Maurer submitted:Jun 16 2022
Write PowerShell Online using Visual Studio Codespaces
(thomasmaurer.ch)
Last week the Visual Studio Services team announced a new service called Visual Studio Codespaces.
By: Thomas Maurer submitted:Jun 16 2022
Last week the Visual Studio Services team announced a new service called Visual Studio Codespaces.
Visual Studio Codespaces allows you to do cloud-hosted development for wherever you're working. While the new services support many different programming and scripting languages, it also supports PowerShell. In this blog post, I am going to show you how you can write PowerShell code online in a web browser using Visual Studio Codespaces.
By: Thomas Maurer submitted:Jun 16 2022
Projects, Scripts, and Modules
Az Predictor Module
(thomasmaurer.ch)
Want to make it easier to write Azure PowerShell commands? Check out the Az Predictor which helps
By: Thomas Maurer submitted:Jun 16 2022
Want to make it easier to write Azure PowerShell commands? Check out the Az Predictor which helps
you to predict your Azure PowerShell command!
By: Thomas Maurer submitted:Jun 16 2022
Books, Media, and Learning Resources
Azure Cloud Shell in the Windows Terminal (YouTube)
(youtube.com)
Azure Cloud Shell is a great tool to manage your Azure environment. In this video, we are going to
By: Thomas Maurer submitted:Jun 16 2022
Azure Cloud Shell is a great tool to manage your Azure environment. In this video, we are going to
have a look at how you can run your Azure Cloud Shell in the Windows Terminal. 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.
By: Thomas Maurer submitted:Jun 16 2022
Getting started and Learn PowerShell on Microsoft Learn!
(techcommunity.microsoft.com)
I remember running my first commands and building my first automation using Windows PowerShell back
By: Thomas Maurer submitted:Jun 16 2022
I remember running my first commands and building my first automation using Windows PowerShell back
in 2006. Since then, PowerShell became one of my daily tools to build, deploy, manage IT environments. With the release of PowerShell version 6 and now PowerShell 7, PowerShell became cross-platform. This means you can now use it on even more systems like Linux and macOS. With PowerShell becoming more and more powerful (you see what I did there ;)), more people are asking me how they can get started and learn PowerShell. Luckily we just released 5 new modules on Microsoft Learn for PowerShell.
By: Thomas Maurer submitted:Jun 16 2022
How to edit files in Azure Cloud Shell
(techcommunity.microsoft.com)
Azure Cloud Shell is a great tool to manage your Azure resources directly within the Azure Portal,
By: Thomas Maurer submitted:Jun 16 2022
Azure Cloud Shell is a great tool to manage your Azure resources directly within the Azure Portal,
Microsoft Docs, the Azure Mobile App or shell.azure.com
By: Thomas Maurer submitted:Jun 16 2022
PowerShell Unplugged 2022 Edition
(thomasmaurer.ch)
April Edwards and I had the chance to host the PowerShell Unplugged 2022 Edition and the video is
By: Thomas Maurer submitted:Oct 21 2022
April Edwards and I had the chance to host the PowerShell Unplugged 2022 Edition and the video is
now available on YouTube! In the PowerShell Unplugged 2022 Edition we talked to the PowerShell product group at Microsoft to learn more about PowerShell 7, secret management, PowerShell Crescendo, Remoting, Predictive IntelliSense, VS Code, the roadmap, and .
By: Thomas Maurer submitted:Oct 21 2022
Fun
PowerShell being 15 years old… Just made me realise how old I am..
(twitter.com)
Me too, Thomas, me too
By: Thomas Maurer submitted:Jun 24 2022
Me too, Thomas, me too
By: Thomas Maurer submitted:Jun 24 2022