Skip to content

Instantly share code, notes, and snippets.

@docouto
docouto / Manage-App-Service-Plan.md
Last active May 17, 2023 21:23 — forked from mmckechney/Manage-App-Service-Plan.md
PowerShell and CLI to manage App Service Plan sizing

Manage App Service Plan count and SKU

Get the Service Plan, SKU, hosts and webapps running on it.

Get-AzAppServicePlan| select name, status,georegion,kind, NumberOfSites, @{n="Size"; e={($_.sku).size}}, @{n="Nodes"; e={($_.sku).capacity}}, @{n="sku name"; e={($_.sku).tier}}, @{n="Apps"; e={$((Get-AzWebApp -AppServicePlan $_).name)}}
@docouto
docouto / win-srv-logon-history.ps1
Created June 2, 2022 10:55 — forked from fredericmohr/win-srv-logon-history.ps1
Windows Server PS: Security Log Logon/Logoff Event Reporter
# Source: https://gallery.technet.microsoft.com/Log-Parser-to-Identify-8aac36bd
# Authors: Ryan DeVries, Drew Bonasera, Scott Smith
# Rochester Institute of Technology - Computer System Forensics
# Variables
# Reads the hostname, sets to the local hostname if left blank
$hostname = read-host "Enter the IP or hostname of the computer you wish to scan (Leave blank for local)"
if ($hostname.length -eq 0){$hostname = $env:computername}
# Reads the start date, sets to 1/1/2000 if left blank