
Category Archives: Uncategorized
Reply
Measure Azure Latency
Create site for checking out, what the latency is to the Azure datacenters
Force cancelation of subscription in Azure with REST call
Normally you can only cancel/disable a subscription by code if the subscription is empty.
If you add IgnoreResourceCheck=true and thereby still cancel the subscription. This give you the grace time before deletion. Remember to change {subscriptionId} in the URI
Documentation on grace period
Site with Phishing links
Get location names from Azure
az account list-locations -o table
Create local windows user from command line and make the user administrator
net user /add [username] [password] net localgroup administrators [username] /add
Links to all of Microsoft portals
Nice overview of M365 licesing
Create secret with Powershell for Azure App registration
$startDate = Get-Date $endDate = $startDate.AddYears(80) $ObjectID = "132645645-d39e-4658-ab92-306cbb637421" $Name = "SecretName" Connect-AzureAD $aadAppsecret01 = New-AzureADApplicationPasswordCredential -ObjectId $ObjectID -CustomKeyIdentifier $Name -StartDate $startDate -EndDate $endDate $aadAppsecret01.value
VB script to keep machine from going to sleep
set wsc = CreateObject("WScript.Shell") Do wsc.SendKeys("{F13}") WScript.Sleep(1*60*1000) Loop