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
# | |
# This script transfers a domain out of Azure DNS to another registrar. | |
# It uses the Azure CLI and Az PowerShell module to perform the transfer. | |
# Prerequisites: | |
# - http://shell.azure.com or Azure CLI installed | |
# - Azure subscription and resource group created | |
# - Domain registered with Azure DNS | |
# Usage: | |
# 1. Set the variables for your Azure subscription, resource group, and domain name. | |
# 2. Run the script in PowerShell. |
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 | |
# | |
# The script is used to create Azure Bastion in TaiwanNorth region. | |
# And will create a public IP for Azure Bastion without any issues | |
# | |
# Steps: | |
# 1. Open Cloud Shell in Azure Portal https://shell.azure.com/ | |
# 2. Donwload the script to Cloud Shell wget https://gist.githubusercontent.com/pichuang/4a6a83811fd76ba88c04c13593d8e3de/raw/1a47cb059df9e1f27e0937ea99a7e398c323737e/deploy-azure-bastion.sh | |
# 3. Modify the variables in the script | |
# 4. Run the script `bash deploy-azure-bastion.sh` |
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
# {type}-{org}-{workload}-{env}-{region}-{instance} | |
# https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations | |
- rg-connectivity-prod-jpe-00 | |
- vnet-connectivity-prod-jpe-00 | |
- snet-vm-jpe | |
- snet-dnspr-in-prod-jpe | |
- snet-dnspr-out-prod-jpe | |
- GatewaySubnet | |
- vpng-prod-jpe-00 // VPN Gateway | |
- vcn-onpremise-00 // VPN Connection |
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
# Onpremise Side | |
onpremise-vm 192.168.100.68 | |
tcp-333 192.168.100.68 tcp=dstport:333 | |
tcp-21 192.168.100.68 tcp=dstport:21 | |
tcp-22 192.168.100.68 tcp=dstport:22 | |
tcp-53 192.168.100.68 tcp=dstport:53 | |
tcp-80 192.168.100.68 tcp=dstport:80 | |
tcp-179 192.168.100.68 tcp=dstport:179 | |
tcp-443 192.168.100.68 tcp=dstport:443 | |
tcp-3399 192.168.100.68 tcp=dstport:3389 |
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
#cloud-config | |
package_update: true | |
package_upgrade: true | |
packages: | |
- iputils-ping | |
- iputils-tracepath | |
- mtr | |
- git | |
- vim |
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
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
info title | |
info underline | |
info "OS" distro | |
info "Host" model | |
info "Kernel" kernel | |
info "Uptime" uptime |
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
apiVersion: scheduling.k8s.io/v1 | |
kind: PriorityClass | |
metadata: | |
name: overprovisioning | |
value: -1 | |
globalDefault: false | |
description: "This priority class is for overprovisioning" | |
--- | |
apiVersion: v1 | |
kind: Namespace |
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 | |
RESOURCE_GROUP="" | |
ARS_NAME="" | |
PEERNAME="" | |
echo "=====" | |
echo "Show Azure Route Server Advertised Routes" | |
echo "=====" | |
az network routeserver peering list-advertised-routes \ |
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
curl -X POST -H "Content-Type: application/Json;charset=utf-8" -d '{ | |
"type":"message", | |
"attachments":[ | |
{ | |
"contentType":"application/vnd.microsoft.card.adaptive", | |
"contentUrl":null, | |
"content":{ | |
"$schema":"http://adaptivecards.io/schemas/adaptive-card.json", | |
"type":"AdaptiveCard", | |
"version":"1.2", |
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
$ ARM_PROVIDER_ENHANCED_VALIDATION=false terraform plan | |
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the | |
following symbols: | |
+ create | |
Terraform will perform the following actions: | |
# azurerm_resource_group.rg-taiwannorth will be created | |
+ resource "azurerm_resource_group" "rg-taiwannorth" { |
NewerOlder