Tag Archives: PowerShell

Creating a PowerShell Function to display error messages

When writing your code using PowerShell, and based on the complexity of the script we need to create output to troubleshoot/debug the code. We can always write-host “xxx” and see…

Article: Step-by-step Guide – Exploring three ways to deploy your ARM templates

Hello folks, In this article, we will explore several methods to deploy our well-known friend JSON files to deploy ARM Templates into Microsoft Azure. We will use PowerShell, Azure Portal…

Looping through your Azure subscriptions using PowerShell

When working with multiple subscriptions in Azure, more than often we will have to loop through the available subscriptions to list or change resources. Solution The solution is simple, basically…

Retrieving the GUID of installed applications on you Windows Server/Workstation

If you are managing desktop applications or working on DSC packages, the GUID of installed application will be required at some point of your journey. Solution There are several ways…

Generating random numbers in PowerShell

When creating PowerShell scripts, very often we need to generate random numbers to use in several scenarios. In Today’s post, we are going a couple of examples how to use…

MethodNotAllowed when using Backup-AzureKeyVaultSecret

I’ve been working with Azure Automation in the last few days, and during the creation of the code I was using PowerShell ISE to backup and restore Azure Key Vault…

How to connect to Microsoft Azure using PowerShell

In Today’s tutorial, we are going over the process to connect your Windows 10/Windows Server 2016 in Microsoft Azure to manage your tenant. In the past, we had to install…

Removing Azure Active Directory users using Azure Cloud Shell

Cloud Shell is one of the new features in Azure Portal, and it is accessible from virtually any browser and even from Azure App. In this Tutorial, we are going…

How to rename an AWS EC2 instance during provisioning using PowerShell

In the Cloud era the VM/instance name is not that important, especially when we have a fleet of servers doing the same work, and that is key for scenarios where…

Listing the drive letters, size and free space using PowerShell

Using PowerShell, the administrator is able to retrieve a lot of information from the operating system. In Today’s Tutorial, we are going the process to retrieve all volumes of any…