Category: Azure
-
Code to query Azure Load Balancer Metrics to verify Availability (VipAvailability )
This one was fun to put together. I wanted to write code to query the status of an Azure Load Balancer. I couldn’t find much out there. This code query’s the Azure Load Balancer’s Metrics for VipAvailability – through the REST API. If it returns 100 then are good to go. Anyting else, then there may…
-

Using Azure Traffic Manager with IP White-listed resources
The question was, how can you use Azure Traffic Manager if the destinations are restricted with IP white lists?This is the only way I could find: There is a blob that contains the source IPs of the probes. Here is the file, And here is the reference This list would need to be queried often…
-
PowerShell to move a VM to a new Log Analytics WorkSpace
This code uninstalls the Microsoft Monitoring agent and re-installs it to a new WorkSpace. Nothing special, just thought I would put it here. Mayby it will help someone?
-
Use the REST API to create a new Project in Azure DevOps
As the title says, I wanted to create a new project in VSTS / Azure DevOps, whatever you want to call it. Here is the code to do that. You need a Personal Access Token to authenticate with. Hope that helps someone?
-
Using PowerShell to query Azure Log Analytics via the REST API
I wanted to pull some data out of Azure Log Analytics using PowerShell and the REST API. Here is the code to Pull all errors in the Application event logs on VMs that are pushing their logs into Log Analytics via MicrosoftMonitoringAgent. Hopefully this may help someone: Notes: I keep my subscription information in Env Varaibles.…
-
Removing machines from Azure State Configuration (DSC)
I have been provisioning machines over an over trying to learn all the VM Extensions. One of the extensions that I have been playing with is the DSC extension. Every time I provision with this extension, it adds an additional record into the State Configuration, resulting in many stale machines. I wanted to clear out…
-
My PowerShell scripts to encrypt Azure VM disks
This is my steps that I took from this very long document. First we need to create a Key vault and then an AAD application, then you connect them. Make note of the output of $aadClientID. Once that is setup, you can encrypt a VM: If you did not make note of your aadClientID, then…
-
Microsoft Certified Solutions Expert: Cloud Platform and Infrastructure
I just became a Microsoft Certified Solutions Expert: Cloud Platform and Infrastructure (MCSE) ! I haven’t taken any new exams in over a year – I guess I already had enough of the requirements ! Nice?
-
My script/procedure to move Hyper-V VMs to Azure
We have been moving resources from ESXi to Hyper-V to Azure. ESXi to Hyper-V is done via the Microsoft Virtual Machine Converter (MVMC). Here is the Checklist/Script/Procedure I have been using to get Hyper-V to Azure. Once machine is in Hyper-V, make sure the VMs HDs are VHD and not VHDX Make sure DHCP is…
-
Hidden or UnDocumented Network Security Group (NSG) default rule in Azure (DNS)
I have been working to get a Citrix Netscaler up and running in Azure. It has not been easy, as all the documentation is for ASM. Our network configuration has IPSec tunnels going from OnPrem to Azure, and I have created two SubNets in Azure – a DMZ and a LAN. The DMZ has the…
