Skip to content

Instantly share code, notes, and snippets.

View dmauser's full-sized avatar

Daniel Mauser dmauser

View GitHub Profile
@dmauser
dmauser / afdfailover.ps1
Last active October 7, 2021 17:24
azure-afd-perf-test
<#
The scenario below we have four URIs:
1) afduri - pointing to the frontdoor name which has WebApps backends hosted in three different Azure Regions (EastUS, WestUS and CentralUS)
2) easturi - East US WebApp
3) westuri - West US WebApp
4) centraluri - Central US WebApp
1st GOAL - When client sends a request to Azure Front Door URI it will show
2nd GOAL - Turn off primary WebApp and validate failover from one region to another.
#>
@RomelSan
RomelSan / Powershell-Certificates-BRIEF.ps1
Last active May 2, 2024 02:43
Powershell Self Signed Certificate
#-------------------------------------------------------------------------------------
# Create Self signed root certificate
# -dnsname -DnsName domain.example.com,anothersubdomain.example.com
# -Subject "CN=Patti Fuller,OU=UserAccounts,DC=corp,DC=contoso,DC=com"
$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `
-Subject "CN=P2SRootCert" `
-KeyExportPolicy Exportable `
-HashAlgorithm sha256 -KeyLength 4096 `
-CertStoreLocation "Cert:\CurrentUser\My" `
-KeyUsageProperty Sign `