Log Analytics Data Collector API

You can send practically any data to Azure Log Analytics (aka. OMS). As long as you can convert it to JSON format prior to sending it to your Log Analytics workspace. Here’s the official write up on it https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-data-collector-api. Data that you upload gets sent to a custom log, with the characters ‘_CL‘ at the end, these characters are appended automatically. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters #region…

Create Azure Blob Storage SAS tokens

An Azure blob SAS (Shared Access Signature) token is used in many places in order to access either a specific blob or a container. It’s simply a string made up of your storage account name and your storage account key. The whole point of the SAS token is that you can share it with anyone you like to give them access to blob storage without compromising your real underlining storage account key. The SAS token is in a format which can be used in a URI/URL. It is not a certificate and is not stored anywhere, it’s purely created/constructed and…

Azure Automation DSC Config example

There’s a couple of ways to do DSC on Azure, you can deploy a template and use the DSC extension resource to deploy DSC configuration to your VM (simple for quick simple deployments), or you can leverage Azure Automation as a DSC Pull server (subject of this blog), where you store all your DSC configuration scripts, MOF files and manage all your DSC nodes, to see drift, compliance etc. This blog post discusses my github repo, which: Deploys an Azure VM Deploys a vNet into a separate Resource Group (Cross Resource Group Deployment), a resource group used for shared resources…

DSC Troubleshooting

If you want to troubleshoot DSC (Desired State Configuration)… You can easily run a DSC config script locally on your computer, apply the MOF manually on-demand and watch it apply in realtime as per the below. The below are the lines of PowerShell code you need for testing. First though, make sure you run the entire DSC Configuration block of code – so it’s in memory, similar to how a function behaves. In the example below, my DSC configuration file is called ‘Main‘. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below….

VS Code & VSTS for Azure IaaS on Windows

Are you an IT Professional and being forced more into the DevOps world? It may seem scary, however it’s not that scary once you have the proper tools. The only difference is that you no longer have to stand or walk into a cold datacenter and stand in front of a server – it’s all template based using a declarative approach – you simply say how the Infrastructure should look like, then Azure Resource Manager makes it so by doing the imperative. The new world is all about declarative language and this post will walk you through setting up all the…

Azure Migrate Deep Discovery

The following will show you the step-by-step setup for Azure Migrate Deep Discovery, installing both the Microsoft Monitoring Agent (OMS / SCOM) and the Dependency Agent (Service Map / Wire Data). Azure Migrate has two types of discovery that logically runs in order, 1) a Light Discovery (agentless) which leverages the VMware inventory, and 2) a Deep Discovery (agent based). This guide assumes you have already completed the Light Discovery. In the Azure portal http://portal.azure.com – the very top, search for Azure Migrate or Migration Projects. Go to your Migration Project > click on Machines > in the dependencies column,…

Build Announcements 2018

Some of the announcements at Microsoft Build 2018 the other week: AI + Machine Learning ML.NET Microsoft Cognitive Services – Microsoft Speech Services Microsoft Cognitive Services – QnA Maker API Microsoft Cognitive Services – Language Understanding Speech to Intent Microsoft Cognitive Services – Bing Custom Search API Microsoft Cognitive Services – Bing Statistics Microsoft Cognitive Services – Bing Visual Search API Microsoft Cognitive Services – Computer Vision API Microsoft Cognitive Services – Custom Vision Service API Compute Azure Function – Durable Functions Azure Event Grid – Cloud Events Azure App Service – Windows Server Container Support Azure App Service –…

Log Analytics Data Collector API

Grab data/information from anywhere and store this in Log Analytics. Basically any log, any OS, any type of data can be captured on a loop and sent to a Log Analytics workspace on a constant basis, then can be used to pull out reports etc. My example below pulls the ‘Current Playing Song‘ out of radio station websites, it runs through many radio stations, at the end converts the aggravated results to JSON, then the data is sent to the Custom Log in Log Analytics using the API. You can run the script below on a regular basis, e.g. set…

Change Azure Storage Blob Tiers

Imagine you had a whole lot of data stored in Azure, you also want to save the most money in storage costs. By default, Azure Blob Storate is set to the Hot tier for all blobs, the most expensive storage costs, but the cheapest to read. To give you an idea of the cost savings, here are General Purpose v2 storage account pricing below as of time of publication in US dollars:   HOT COOL ARCHIVE Storage | First 50 terabyte (TB) / month $0.0208 per GB $0.0152 per GB $0.0025 per GB Storage | Next 450 TB / Month $0.02 per GB $0.0152 per…

Azure Files Sync 5TB limit

When working with Azure Files Sync, you create whats called a Sync Group, this Sync Group contains two parts, a Cloud Endpoint and one or many Server Endpoints. The Cloud Endpoint is an Azure Files Share (5TB Limit) and the Server Endoint is a folder on a server volume (not necessarily a share). Due to a current limitation of Azure Files, Azure Files Shares is currently set to 5TBs, this is being lifted soon to 100TBs, but in the meantime, there is a work around as shown below. Create multiple Sync Groups, split up the folders on-prem, spread them across…