Sitecore XP1 on Azure – Step5 – Deploy using PowerShell.

Praveen Kumar Sreeram's Blog

This article is a Companion article. Please have a look at the Main article  Sitecore XP1 on Azure using Azure App Service.

In this article, we will discuss about the PowerShell CmdLets that should be used to deploy the Sitecore XP instance to Azure.

Below is the list of files that I have placed in a folder.

1_Files

My PowerShell code is available in the sitecoreazurexp.ps1 file. Below is the code.

#Azure SubscriptionID

$SubscriptionId = “Subscription id here”;

#Name of Resource Group. The DeploymentId in azuredeploy.parameters.json should also be the name of the Resource Group

$Name = “xp1-rg”;

#Location of the Sitecore license file.

$LicenseXmlPath = “license.xml”;

#Location of the ARM template file.

$ArmTemplatePath = “azuredeploy.json”;

#location of the parameters.json file.

$ArmParametersPath = “azuredeploy.parameters.json”;

#Name of Azure Location / Data Center

$location = “EastUS”;

#Load the Azure Toolkit module

Import-Module “D:SitecoreAzureXp1Sitecore Azure Toolkit 1.0 rev. 161125toolsSitecore.Cloud.Cmdlets.psm1”

#Add Azure account

View original post 152 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s