How to create a maintenance mode in Azure Automation

An emergency button to ensure that your runbooks stop running without disconnecting the schedule in Azure Automation Disclaimer: This post can be seen as satire. There are probably better ways, but because we were so limited with the customer at the time, we opted for a hobby approach: ‘Maintenance mode the creative way‘. What if… … Continue reading How to create a maintenance mode in Azure Automation

FIX: Conflict with Cloud Update in office application

This product can’t be installed on the selected channel due to the conflict with Cloud Update Are you trying to install an Office 365 application, or all applications, and do you get the error message below? FIX: Conflict with Cloud Update This product can’t be installed on the selected channel due to the conflict with … Continue reading FIX: Conflict with Cloud Update in office application

How to open links in Microsoft Teams in a different browser

How to open URLs in Teams in other browsers or Microsoft Edge Microsoft Teams can open websites in either the default browser or Microsoft Edge. Most likely the reason for only these two options is because Microsoft owns Microsoft Edge. I think Microsoft Edge is also installed on new devices these days (mine is so … Continue reading How to open links in Microsoft Teams in a different browser

FIX: Get-AzContext missing ‘subscription’ Az.Accounts PowerShell

Get-AzContext missing a ‘subscription’ while using Set-AzContext We use the command below as standard in our scripts, but I have also discovered that this is not entirely useful. But for more about that you should go to another section on this blog (see the Table of Contents). You probably found this blog cause of an … Continue reading FIX: Get-AzContext missing ‘subscription’ Az.Accounts PowerShell

How to import PowerShell 7 runbooks in Azure Automation

Import a PowerShell 7.XX runbook in Azure Automation via PowerShell You cannot currently choose PowerShell 7.XX runtime via the standard cmdlet New-AzAutomationRunbook in the Az.Automation module. This limits you to using the Azure portal. You can upload runbooks via a workaround with runtime 7.XX. This only applies to powershell script files located in an Azure … Continue reading How to import PowerShell 7 runbooks in Azure Automation

FIX: This file can’t be previewed because of an error

This file can’t be previewed because of an error in the Microsoft Word Previewer The tutorial below is written for Outlook where you cannot open the attachments and for File Explorer where previews cannot be shown. I don’t yet understand exactly why this problem arises. The tutorial below is therefore not a real fix, but … Continue reading FIX: This file can’t be previewed because of an error

FIX: VSC source control show unknown files to commit to branch

Committing 10k+ files to a branch you haven’t heard of (or even main/master)? The tutorial can work for other tools using git as well. Do you see a list of changes in Visual Studio Code Source Control? A list of changes that don’t seem familiar to you, like below? Directories, git, source control and unknown … Continue reading FIX: VSC source control show unknown files to commit to branch

FIX: Teams channel cannot be unpinned

Pinned Teams channel is not unpinned I had created a temporary channel that I used to send emails from development that contained errors. These were mainly used for bug fixes and other purposes. It also has the delightful name ‘ACCEPT – Error’. Because I was working on this, I pinned the channel so that it … Continue reading FIX: Teams channel cannot be unpinned

FIX: Azure Automation PS 7 not recognizing environment variables

Do I run the script (runbook) locally or in Azure Automation? I develop scripts or runbooks on my local machine and then run them against Microsoft Graph or Azure (REST API) and when the script is complete I upload them in Azure Automation as a runbook. I need logic in my script to see if … Continue reading FIX: Azure Automation PS 7 not recognizing environment variables

FIX: ‘else’ is not recognized as cmdlet Visual Studio Code debugger

Debugging Visual Studio Code and manually running an if else statement erroring If you look at the piece of code below, you would say this works. This works, but when you run this manually in the Visual Studio Code debugger, you get the following error: else: The term ‘else’ is not recognized as a name … Continue reading FIX: ‘else’ is not recognized as cmdlet Visual Studio Code debugger