Create a resource group in Azure to hold all of the resources you'll be creating:
- Virtual Network
- Virtual Machines
- Don't use 172.* IPs. I used 10.3.0.0/24
#!/bin/bash | |
set -e | |
USERNAME="" | |
PASSWORD="" | |
UCP_FQDN="" | |
AUTH_TOKEN="$(curl -sk -d '{"username":"'${USERNAME}'","password":"'${PASSWORD}'"}' "https://${UCP_FQDN}/auth/login" | jq -r .auth_token 2>/dev/null)" | |
CURL_OPTS=(-ks --header "Content-Type: application/json" --header "Accept: application/json" -H "Authorization: Bearer ${AUTH_TOKEN}") |
$processId = $PID | |
do { | |
$thisProcess = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId = $processId" | |
$thisProcess | Select-Object ProcessId,ParentProcessId,Name,CreationClassName,CreationDate,CommandLine | |
$processId = $thisProcess.ParentProcessId | |
} while ($null -ne $processId) |