Skip to content

Instantly share code, notes, and snippets.

View mathieu-benoit's full-sized avatar
🚲
learn it all

Mathieu Benoit mathieu-benoit

🚲
learn it all
View GitHub Profile
@mathieu-benoit
mathieu-benoit / Clone-WebApp-On-Slot.ps1
Created April 17, 2017 22:26
Clone-WebApp-On-Slot
#Currently there is an issue with New-AzureRmWebAppSlot so this snippet doesn't work.
#Issue entered here: https://github.com/Azure/azure-powershell/issues/3779
#Stay tuned!
Param(
[string] [Parameter(Mandatory=$true)] $SubscriptionId,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[string] [Parameter(Mandatory=$true)] $AppServicePlan,
[string] [Parameter(Mandatory=$true)] $WebAppName,
[string] [Parameter(Mandatory=$true)] $SlotName
@mathieu-benoit
mathieu-benoit / Deploy-Default-Sitecore-8-2-1-XM.ps1
Last active August 27, 2018 18:51
Powershell to deploy the default Sitecore XM ARM Template on Azure
# PowerShell script to deploy Sitecore 8.2.1 XM default ARM Template.
# Located here: https://raw.githubusercontent.com/Sitecore/Sitecore-Azure-Quickstart-Templates/master/Sitecore%208.2.1/xm
Param(
[string] [Parameter(Mandatory=$true)] $SubscriptionId,
[string] [Parameter(Mandatory=$true)] $ResourceGroupName,
[string] $ResourceGroupLocation = "East US",
[string] $TemplateFile = "https://raw.githubusercontent.com/Sitecore/Sitecore-Azure-Quickstart-Templates/master/Sitecore%208.2.1/xm/azuredeploy.json",
[string] [Parameter(Mandatory=$true)] $LicenseFile,
[string] $CdMsDeployPackageUrl = 'TO_REPLACE',