Sitecore XP1 on Azure – Step5 – Deploy using PowerShell.

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:\Sitecore\AzureXp1\Sitecore Azure Toolkit 1.0 rev. 161125\tools\Sitecore.Cloud.Cmdlets.psm1”

#Add Azure account

Add-AzureRMAccount

#Select the subscription.

Set-AzureRMContext -SubscriptionId $SubscriptionId

#Start the deployment

Start-SitecoreAzureDeployment -location $location -Name $Name -ArmTemplatePath $ArmTemplatePath  -ArmParametersPath $ArmParametersPath -LicenseXmlPath $LicenseXmlPath -SetKeyValue @{} -Verbose;

The above commands along with the comments is self-explanatory 🙂

Advertisements

Select the code and click on execute as shown below.

2_Execute

Clicking on execute button will prompt you to provide the credentials of your Azure Subscription as shown below.

3_Credentials

Provide the username and password and click on Sign in button.

You can log into your subscription and navigate to the Resource Group and view the Essentials tab as shown below.

Advertisements
4_Deploying

Click on the 1 Deploying to view the progress on the deployment.

5_DeploymentStatus

If you have configured all the setting correctly, it would take approximately 25 minutes to successfully deploy the Sitecore XP1 instance on Azure App Services.

Advertisements

Let’s navigate to the Sitecore Content Management role.

6_Admin

That’s it. We have successfully deployed the Sitecore XP1 instance on Azure App Service.

Do you like this article? If you want to get more updates about these kind of articles, you can join my Learning Groups

WhatsApp

Telegram

Advertisements
Advertisements
Advertisements

One comment

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 )

Connecting to %s