This file contains hidden or 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
| { | |
| "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "name": { | |
| "type": "String" | |
| }, | |
| "location": { | |
| "type": "String" | |
| }, |
This file contains hidden or 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
| export KEYVAULT=<<<CHANGEME>>> | |
| # Configure ssh forwarding | |
| export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock | |
| # need `ps -ww` to get non-truncated command for matching | |
| # use square brackets to generate a regex match for the process we want but that doesn't match the grep command running it! | |
| ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?) | |
| if [[ $ALREADY_RUNNING != "0" ]]; then | |
| if [[ -S $SSH_AUTH_SOCK ]]; then | |
| # not expecting the socket to exist as the forwarding command isn't running (http://www.tldp.org/LDP/abs/html/fto.html) |
This file contains hidden or 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
| { | |
| "mode": "All", | |
| "policyRule": { | |
| "if": { | |
| "allOf": [ | |
| { | |
| "equals": "Microsoft.Compute/virtualMachines", | |
| "field": "type" | |
| }, | |
| { |
This file contains hidden or 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
| { | |
| "mode": "All", | |
| "policyRule": { | |
| "if": { | |
| "equals": "Microsoft.Network/networkSecurityGroups", | |
| "field": "type" | |
| }, | |
| "then": { | |
| "details": { | |
| "deployment": { |
This file contains hidden or 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
| #!/bin/bash | |
| # Script to clean up after Enterprise-Scale - DO NOT RUN IN PRODUCTION | |
| echo "THIS SCRIPT WILL DESTROY YOUR AZURE ENVIRONMENT" | |
| read -n 4 -p "Are you SURE you want to do this? (type 'yes' to continue): " YES | |
| if [ ! "$YES" == "yes" ]; then | |
| echo "Confirmation denied - quitting" | |
| exit 0 |
This file contains hidden or 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
| <domain type="kvm"> | |
| <name>Windows10</name> | |
| <uuid>ccae4198-1930-4f33-9e73-8edda15e89ba</uuid> | |
| <title>Windows10</title> | |
| <metadata> | |
| <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0"> | |
| <libosinfo:os id="http://microsoft.com/win/10"/> | |
| </libosinfo:libosinfo> | |
| </metadata> | |
| <memory unit="KiB">6291456</memory> |
This file contains hidden or 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
| #!/bin/sh | |
| # matt.white@microsoft.com | |
| # Gets a secret from Azure key vault. | |
| # See usage() | |
| COMMANDS="az basename" | |
| for COMMAND in $COMMANDS; do |
This file contains hidden or 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
| #! /bin/bash | |
| az aks create \ | |
| --resource-group $RESOURCE_GROUP \ | |
| --network-plugin azure \ | |
| --vnet-subnet-id /subscriptions/$ARM_SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.Network/virtualNetworks/$VNET_NAME/subnets/$SUBNET_NAME \ | |
| --docker-bridge-address 172.17.0.1/16 \ | |
| --dns-service-ip 172.18.0.10 \ | |
| --service-cidr 172.18.0.0/16 \ | |
| --generate-ssh-keys \ | |
| --vm-set-type VirtualMachineScaleSets \ |
This file contains hidden or 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
| [Security] | |
| EAP-Method=PEAP | |
| EAP-Identity=anonymous | |
| EAP-PEAP-CACert=/etc/ca-certificates/extracted/cadir/DigiCert_Global_Root_CA.pem | |
| EAP-PEAP-ServerDomainMask=wifi.service.gov.uk | |
| EAP-PEAP-Phase2-Method=MSCHAPV2 | |
| EAP-PEAP-Phase2-Identity=<username> | |
| EAP-PEAP-Phase2-Password=<password> | |
| [Settings] |