本文演示Sitecore XP Single(XP0)在Azure上的一键部署,即“30分钟生成Sitecore演示环境”的一环。

关于XP(即Sitecore Experience Platform) roles的相关介绍移步

XP Single配置主要用来开发和测试:

Four Sitecore roles: Content Delivery, Content Management, Processing, and Reporting as a single WebApp instance.(cd,cm,Processing,Reporting作为一个web应用实例)

All XP roles: Search, Collection, Reference Data, Sitecore Cortex Processing, Sitecore Cortex Reporting, Marketing Automation, and Marketing Automation Reporting as a single WebApp instance.(其它所有功能作为一个应用实例)

Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

 本文使用的Sitecore版本为:Sitecore Experience Platform 10.1 Update-2

为什么使用这个版本?主要考虑使用Azure PaaS的全部功能,无需额外配置。如果使用Sitecore 10.2+以上,则需要额外搭建Solr服务,参照 Azure Search compatibility table

即使用8.2-10.1版本,是可以使用Azure Search代替Solr服务的。这里方便利用Azure云资源直接一键配置,无需做额外的动作。故使用Sitecore 10.1-Update-2来演示。

本地操作系统为Windows11专业版。

准备工作

1,Azure Portal账号一个,没有的话可以使用国际信用卡注册;

2,本地PowerShell ISE安装Azure模块;

3,Microsoft Azure Storage Explorer

4,Sitecore license文件

下载

1,下载 Sitecore Experience Platform 10.1 Update-2

     打开下载页定位到 Download options for Azure AppService

Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      下载 Packages for XP Single ,即XP0。解压得到3个压缩包:

      Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

 2,下载 Sitecore Identity

       选择 Sitecore Identity 7.0.326  ,

     Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      下载WDP installation package. 解压得到1个压缩包:

      Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      打开Microsoft Azure Storage Explorer,上传上面4个压缩包到Azure Blob

      Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      上传完毕后,分别点击每一个资源,鼠标右键,获取共享访问签名 -- 读取(权限) -- 创建 -- 复制资源的URL备用,上面4个资源都要复制。

 3,下载Sitecore Azure Toolkit ,选择 Sitecore Azure Toolkit 2.8.0

    Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

      下载后解压得到:

       Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

 4,下载Sitecore Azure Resource Manager (ARM) template,解压后得到:

       Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10 in Azure Paas)-LMLPHP

生成authentication certificate

以管理员身份运行Windows PowerShell ISE,输入以下代码并运行:

#Create a self-signed certificate.

$thumbprint = (New-SelfSignedCertificate `
-Subject "CN=$env:COMPUTERNAME @ Sitecore, Inc." `
-Type SSLServerAuthentication `
-FriendlyName "$env:USERNAME Certificate").Thumbprint
 
$certificateFilePath = "D:\Workspace\$thumbprint.pfx"
Export-PfxCertificate `
-cert cert:\LocalMachine\MY\$thumbprint `
-FilePath "$certificateFilePath" `
-Password (Read-Host -Prompt "Enter password that would protect the certificate" -AsSecureString)
04-25 12:40