{{ message }}
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 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
| $tmuri="https://webdemo.danmauser.com" #Replace with your website associate to Traffic Manager | |
| # WebTest with DNS resolution (using nslookup) | |
| While ($true) { | |
| $ts = Get-Date -Format "yyyy-MM-dd HH:mm:ss" | |
| # Resolve final single IP (follow one CNAME hop if present, then first A record) via nslookup | |
| $ipText = $null | |
| try { | |
| $baseHost = ([System.Uri]$tmuri).Host | |
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 | |
| # Variables | |
| subscriptionId="<YOUR_SUBSCRIPTION_ID>" | |
| resourceGroup="rg-storage-lab" | |
| location="eastus" | |
| storageAccount="storagelab$(date +%s)" | |
| retentionDays=7 |
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
| # --- Inputs --- | |
| $ResourceGroup = "<rg-name>" | |
| $StorageAccount = "<storage-account-name>" | |
| $Container = "<container-name>" | |
| $BlobName = "<blob-name>" | |
| # Optional: use MSI/Azure login (instead of key) | |
| Connect-AzAccount | Out-Null | |
| # Get storage context |
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
| #Variables | |
| rg=lab-vpngw | |
| gwname=az-vng-vpn | |
| gwsize=VpnGw1AZ | |
| asn=65515 | |
| vnet=hub-vnet | |
| location=westus | |
| addressprefix=10.0.0.0/24 | |
| mainprefix=10.0.0.0/27 | |
| gwsubnetprefix=10.0.0.32/27 |
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 subscriptionId="96799577-30b5-4a07-b0d3-ca5b40c5c05d"; | |
| export resourceGroup="arc-lab"; | |
| export tenantId="b1fa3d67-2da0-44d9-84f5-6bb580bd1d15"; | |
| export location="northcentralus"; | |
| export authType="token"; | |
| export correlationId="5f7d1872-3bb4-4445-8eab-53d15747ce09"; | |
| export cloud="AzureCloud"; | |
| LINUX_INSTALL_SCRIPT="/tmp/install_linux_azcmagent.sh" | |
| if [ -f "$LINUX_INSTALL_SCRIPT" ]; then rm -f "$LINUX_INSTALL_SCRIPT"; fi; |
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
| #vHUB effective routes | |
| #parameters | |
| rg=vwan-pair #Set your resource group | |
| #variables (do not change) | |
| #Parameter | |
| $rg=vwan-pair | |
| # Dump all vHUB route tables. | |
| for vhubname in `az network vhub list -g $rg --query "[].id" -o tsv | rev | cut -d'/' -f1 | rev` | |
| do | |
| for routetable in `az network vhub route-table list --vhub-name $vhubname -g $rg --query "[].id" -o tsv` |
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
| ## Firewall Policy and network rules over CLI | |
| # Variables: | |
| Commands to create a networking rule with Firewall Policy: | |
| #Create firewall rules | |
| fwpolicyname=NewPolicyTest #Firewall Policy Name | |
| rg=FW-Policies # Set your Resource Group |
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
NewerOlder
