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
#!/bin/bash | |
BASE_NAME="yourbasename" | |
echo "[Resource Group ${BASE_NAME}-rg] Creating Resource Group..." | |
az group create -n ${BASE_NAME}-rg -l japaneast | |
echo "[VNET vnet01] Creating VNET..." | |
az network vnet create -g ${BASE_NAME}-rg \ | |
-n vnet01 \ |
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
certbot certonly --manual --domain <fqdn> --email <mail> --agree-tos --manual-public-ip-logging-ok --preferred-challenges dns |
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
#!/bin/bash | |
echo echo "Custom Script executed at: `date`" > ~/runext_time.txt |
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
#!/bin/bash | |
apt update -y | |
apt install nginx -y | |
echo "Ver.3" > /var/www/html/index.nginx-debian.html |
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
#!/bin/bash | |
apt update -y | |
apt install nginx -y | |
echo "Ver.2" > /var/www/html/index.nginx-debian.html |
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
#!/bin/bash | |
apt update -y | |
apt install nginx -y | |
echo "Ver.1" > /var/www/html/index.nginx-debian.html |
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
# List CustomScript Extension | |
az vm extension image list --query "[?name=='CustomScript']" | |
# List API Versions | |
az provider show -n Microsoft.Resources --query "resourceTypes[?resourceType=='deployments'].[apiVersions]" |
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
const request = require('request'); | |
const tenant = '<Your Tenant ID>'; | |
const subscriptionId = '<Yout Subscription ID>'; | |
const clientId = '<Your Service Principal App ID>'; | |
const clientSecret = '<Your Service Principal Password>'; | |
const resourceGroup = '<Your Resource Group Name of Log Analytics Workspace>'; | |
const workSpace = '<Your Workspace Name>'; | |
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
#!/bin/bash | |
# This script was tested for Ubuntu 16.04 LTS | |
# An set of disks to ignore from partitioning and formatting | |
BLACKLIST="/dev/sda|/dev/sdb" | |
# Base directory to hold the data* files | |
DATA_BASE="/datadrive" | |
usage() { |
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
# Learn more: http://boxstarter.org/Learn/WebLauncher | |
# Install manually (Ubuntu, VS, Azure PS, 1Password 6, Driver Management Tool) | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Fonts --- | |
choco install inconsolata | |
#--- Windows Settings --- |