Skip to content

Instantly share code, notes, and snippets.

View ryanshripat's full-sized avatar

Ryan Shripat ryanshripat

View GitHub Profile
@ryanshripat
ryanshripat / CompareAzurePortalApplicationSettings.ps1
Last active September 27, 2018 13:13
Powershell script to compare the Azure Portal Application Settings in one site to those of another
Clear-Host
Login-AzureRmAccount #Only necessary once per session
$SOURCE_SUBSCRIPTION_NAME = "YOUR SOURCE SUBSCRIPTION NAME"
$SOURCE_SITE = "YOUR SOURCE SITE NAME (xxxx in xxxx.azurewebsites.net)"
$TARGET_SUBSCRIPTION_NAME = "YOUR TARGET SUBSCRIPTION NAME"
$TARGET_SITE = "YOUR TARGET SITE NAME (xxxx in xxxx.azurewebsites.net)"
function GetSortedApplicationSettings ([string] $subscriptionName, [string] $siteName)
{
(Get-AzureRmSubscription -SubscriptionName $subscriptionName | Select-AzureRmSubscription) > $null