This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add-PSSnapin "Microsoft.SharePoint.PowerShell" | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client") | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime") | |
$siteUrl = Read-Host -Prompt "Enter Site URL" | |
$username = Read-Host -Prompt "Enter username" | |
$password = Read-Host -Prompt "Enter password" -AsSecureString | |
$listTitle = Read-Host -Prompt "Enter List Title" | |
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteUrl) | |
$credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password) | |
$ctx.Credentials = $credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |