Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
brsteph authored Mar 16, 2022
1 parent 1ecfa97 commit 3b91bd8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appGW-Start.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$AppGWName = "appgw-appa-spokea-eastus2"
$AppGWRG = "scenario-appgateway-eus2-rg"

# Get Azure Application Gateway
$appgw = Get-AzApplicationGateway -Name $AppGWName -ResourceGroupName $AppGWRG

# Start the Azure Application Gateway
Start-AzApplicationGateway -ApplicationGateway $appgw
8 changes: 8 additions & 0 deletions appGW-Stop.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$AppGWName = "appgw-appa-spokea-eastus2"
$AppGWRG = "scenario-appgateway-eus2-rg"

# Get Azure Application Gateway
$appgw = Get-AzApplicationGateway -Name $AppGWName -ResourceGroupName $AppGWRG

# Stop the Azure Application Gateway
Stop-AzApplicationGateway -ApplicationGateway $appgw
19 changes: 19 additions & 0 deletions subCleanUp.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$rgs = get-azresourcegroup

write-host "Found $($rgs.count) resource groups" -foregroundcolor blue

ForEach ($rg in $rgs) {

try {
write-host "Deleting $($rg.ResourceGroupName)."
Remove-AzResourceGroup -name $rg.ResourceGroupName -force
}

finally {
write-host "Moving to next resource group..."
write-host "..."
write-host "..."
}
}


0 comments on commit 3b91bd8

Please sign in to comment.