Skip to content

Instantly share code, notes, and snippets.

View anwather's full-sized avatar

Anthony Watherston anwather

  • Microsoft Corporation
  • Australia
View GitHub Profile
# Lines 32-44 we will change to be parameters for the script - so multiple copies don't have to be maintained.
# Not all these values need to be exposed e.g. proxy, tenant, auth_type should remain the same.
# Line 66 calls out to "https://gbl.his.arc.azure.com/azcmagent-windows" which is the script to download and install the agent.
# This script verifies a whole heap of pre-requisites on the server.
# The agent installer comes from "https://gbl.his.arc.azure.com/azcmagent/latest/AzureConnectedMachineAgent.msi"
# Once agent installation is complete it returns to this script and runs the "azcmagent connect" command to connect to Azure.
https://dsctstawqdmo01x.blob.core.windows.net/iac-labs/Iac-Labs.zip?sp=r&st=2025-07-31T01:14:21Z&se=2025-08-06T09:29:21Z&skoid=daed4a0e-53b5-4c8a-a106-e32643cbe4a4&sktid=ab9330c6-7920-437d-9ff9-c6f2e3814689&skt=2025-07-31T01:14:21Z&ske=2025-08-06T09:29:21Z&sks=b&skv=2024-11-04&spr=https&sv=2024-11-04&sr=b&sig=rYf0%2BPlSj4KEIlAKunBY77RhJpVBUaWNJfFCeVb%2Bxu0%3D
https://imgaa1caue001.blob.core.windows.net/avs-hcx/VMware-HCX-Connector-4.10.3.0-24447631.ova?sp=r&st=2025-05-29T04:33:35Z&se=2025-06-04T12:33:35Z&skoid=daed4a0e-53b5-4c8a-a106-e32643cbe4a4&sktid=ab9330c6-7920-437d-9ff9-c6f2e3814689&skt=2025-05-29T04:33:35Z&ske=2025-06-04T12:33:35Z&sks=b&skv=2024-11-04&spr=https&sv=2024-11-04&sr=b&sig=7PZPcxnCIKQKU0VVapi13tWD%2F3AswKA6SwV9d6Z4cz0%3D
{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "# Azure Virtual Machine Sku Optimisation #\r\n\r\n## Instructions for Use\r\n- Final panel does not show all fields - export to CSV to get everything including Sku recommendations\r\n\r\n## Caveats ##\r\n- No spot VM pricing\r\n- AUD only\r\n- No dedicated host\r\n- No ms|ls pricing or recommendations"
},
"name": "text - 4"
},
@anwather
anwather / gist:07cf364b2dd6d05f0da054aeb31e6bb1
Created July 22, 2024 00:22
Availability Workbook - Quick
{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "# Virtual Machine Availability State"
},
"name": "text - 1"
},
function Get-EntraBitLockerKeys {
[CmdletBinding()]
param (
[Parameter(Mandatory = $false, HelpMessage = "Device name to retrieve the BitLocker keys from Microsoft Entra ID", ValueFromPipeline = $true)]
[string]$DeviceName
[Parameter(Mandatory = $false, HelpMessage = "Device Id to retrieve the BitLocker keys from Microsoft Entra ID", ValueFromPipeline = $true)]
[string]$DeviceId
)
Process {
@anwather
anwather / policy.json
Created July 11, 2024 04:19
Policy Workbook
{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "# Policy Compliance Reporting\r\n"
},
"name": "text - 3"
},
{
"version": "Notebook/1.0",
"items": [
{
"type": 1,
"content": {
"json": "## Azure WAF Monitor Workbook\r\n---"
},
"name": "Workbook Title"
},
#Requires -PSEdition Core
[CmdletBinding()]
param (
[Parameter(Mandatory = $false, HelpMessage = "Definitions folder path. Defaults to environment variable `$env:PAC_DEFINITIONS_FOLDER or './Definitions'.")]
[string]$definitionsRootFolder,
[Parameter(Mandatory = $false, HelpMessage = "Output Folder. Defaults to environment variable `$env:PAC_OUTPUT_FOLDER or './Outputs'.")]
[string] $outputFolder,
# Microsoft Cloud Security Benchmark
Auto-generated Policy effect documentation across environments 'Production' sorted by Policy category and Policy display name.
## Table of contents
- [Environments](#environments)
- [Policy effects across environments](#policy-effects-across-environment)
## <a id="environments"></a>Environments