Tag: PowerShell
-

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…
-
Using PowerShell to extract all contacts from MS CRM 2011
We are moving to Salesforce from MSCRM 2011. We need to get our data out so we can import into Salesforce. Here is the PowerShell script I am using to export contacts to csv. Hope that helps someone.
-
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…
-
PowerShell to delete blobs in Azure
I was trying to delete a VHD in Azure via PowerShell, and I couldn’t find a good solution. Here is how you delete a blob in Azure Hope that helps someone.
-
My Azure ASM to ARM script
This is the “script” I used to move our older classic environment VMs to the new Azure Resource Manager. It it is not a function – I wanted to step through the process and make sure all was well at the different points in the script. The script assumes that there is only one Data…
-
PowerShell to download and install most recent Azure PowerShell cmdlets
This script will pull down the most recent Azure PowerShell cmdlets from github. This script assumes that Microsoft has not renamed the installer file, and the most recent is at the top. hope that helps someone.
