This article is a revised article of Create CPU quota usage alerts for subscription using Azure ARM templates. Initially, I encountered a challenge while attempting to incorporate ARM variables or parameters into Kusto Query Language (KQL) within an Azure Resource Manager (ARM) template. Despite the rest of the template functioning as expected, the hard-coded KQL value used for defining alerts p…
Stuffs from real IT system ADMINISTRATORS world and my LAB
Reset VMware ESXi root password from vCenter using PowerCLI
When I began working with a new client on their Virtualization Broadcom VMware project, I encountered several ESXi servers that were already deployed and connected to vCenter servers. Since I was new to the project, I found that the root passwords for some of these ESXi servers were undocumented and unknown.
In certain cases, I needed the root password to log in and retrieve low-level informati…
Create PowerShell array of object in different way
When working with arrays and PSObject
in PowerShell, there are several efficient methods for creating and managing array elements. Below are examples that highlight both the creation of arrays and the addition of elements in different ways.
To create an empty array in PowerShell, you have two main options:
-
Using
[System.Collections.ArrayList]
This method initializes anArrayList
, w…
Broadcom VMware PowerCLI based ESXi capacity planner html web portal
I had a requirement to provide a solution for monitoring ESXi servers' CPU, memory, and datastore usage to non-IT or developer users without giving them direct access to vCenter or ESXi servers. The solution needed to avoid using any additional applications or tools. Previously, I had set up a system pipeline where the data was delivered in CSV or Excel format. However, I thought it would be more …
PowerCLI List Add Delete Role Assignment account user on ESXi server with esxcli
I faced a scenario where I needed to automate the execution of a shell script on VMware (Broadcom) ESXi servers, version 7. The task involved renaming /etc/rc.local.d/local.sh to a .bak extension and restarting all services using /sbin/services.sh restart, which was necessary to resolve VM disconnection issues. Normally, this task is straightforward if you have the root username and password of ES…
Deploying Azure ARM templates using Terraform
This article demonstrates how to deploy an Azure ARM template using Terraform. I encountered several scenarios where resources deployed through Terraform, Bicep, or the REST API didn't function as expected. However, when I deployed the same resources using an ARM template, they worked flawlessly.
For example, in one case involving Scheduled Query Rules with Action Groups or Log Analytics, the d…
Azure resource group deployments with ARM JSON templates in Subscription with PowerShell
In this article, this example shows how to deploy resource group in Azure subscription. While deploying resource group with PowerShell you need to use New-AzSubscriptionDeployment cmdlet. Below is the output after deploying Resource Group in the subscription.
.\091-Complete_ARM_Template> # Create a hashtable for parameters $templateParameters = @{ rgLocation = 'eastus' rgName =…
Deploy CPU quota usage alerts for subscription using Terraform azapi provider
This is another way of deploying resources/services on Azure using azapi provider using HashiCorp Terraform.
AzAPI is a lightweight, flexible provider that leverages the Azure ARM REST APIs, empowering you to manage any Azure resource type with any desired API version. This enables access to the latest Azure features and functionality.
Key Benefits:
Compatibility with any API version
Design…
Configure CPU quota usage alerts for subscription using Azure Bicep templates
This article is a continuation of my previous post, where I deployed CPU quota usage alerts for a subscription using Azure ARM templates. In this post, I'll demonstrate how to deploy Action Groups and Subscription Quota Alerts for CPU usage using Bicep.
Compared to ARM templates, I find Bicep to be more user-friendly, intuitive, and concise. If you're familiar with Terraform, you'll find Azure …
Create CPU quota usage alerts for subscription using Azure ARM templates
This article is about Implementing of CPU Quota Usage Alert for Azure Subscription. As part of my recent assignment, I successfully created a CPU quota usage alert for an Azure subscription using Azure Resource Manager (ARM) templates. The deployment enables real-time monitoring of CPU quota usage, providing proactive alerts to prevent potential resource exhaustion.
Upon deployment, the alert r…
Page Views
12378806
Archive
- December 2024 (1)
- November 2024 (2)
- October 2024 (7)
- September 2024 (12)
- August 2024 (22)
- July 2024 (11)
- June 2024 (1)
- May 2024 (3)
- April 2024 (5)
- November 2023 (1)
Thank you!
Hello, my friend,
I just wanted to say thank you very much for the excellent instruction guide!
It's my first time using Packer and I had no problem creating a new Windows 2022 VM using the information here, after tweaking the scripts.
Thanks very much!
THIS! This worked, thank you so much!
Almost 1h spent troubleshooting silly windows errors...all other "tutorials" and "guides" should really just link this ste.
Thank you.
Worked perfectly!