Skip to content

Instantly share code, notes, and snippets.

@Hooloovoo
Hooloovoo / BasicCISUbuntuPro1804SIGTemplate.json
Last active November 3, 2021 17:00
A basic Azure Shared Image Gallery template for Ubuntu Pro 18.04 with simple CIS hardening for use as part of a tutorial
{
"type": "Microsoft.VirtualMachineImages",
"apiVersion": "2020-02-14",
"location": "<region1>",
"dependsOn": [],
"tags": {
"imagebuilderTemplate": "AzureImageBuilderSIG",
"userIdentity": "enabled"
},
"identity": {
@Hooloovoo
Hooloovoo / BasicCISUbuntuPro2004SIGTemplate.json
Last active November 3, 2021 16:54
A basic Azure Shared Image Gallery template for Ubuntu Pro 20.04 with simple CIS hardening for use as part of a tutorial
{
"type": "Microsoft.VirtualMachineImages",
"apiVersion": "2020-02-14",
"location": "<region1>",
"dependsOn": [],
"tags": {
"imagebuilderTemplate": "AzureImageBuilderSIG",
"userIdentity": "enabled"
},
"identity": {
@Hooloovoo
Hooloovoo / Azure_Resource_Graph_query_Canonical.txt
Created April 27, 2021 12:33
Find Azure subscriptions using Ubuntu VMs using Azure Resource Graph Explorer
// Find the subscriptions containing Ubuntu virtual machines by subscription
//
// Open the Azure Resource Graph Explorer in the Azure Portal
// https://portal.azure.com/#blade/HubsExtension/ArgQueryBlade
//
// Copy-paste the below
// Click the "Run query" command above to execute the query and see results,
// together with how many Ubuntu machines are in each subscription.
// Ensure you select "All subscriptions" in the top right of the Explorer
resources