Sitecore Deployer for Azure DevOps
This release task is based on our mutual work with Rob Habraken on Sitecore deployment script for Azure
This extension will deploy Sitecore in Azure basing on ARM templates, developed by Rob and inherited from Sitecore.
Select your Azure subscription in which Sitecore resources shall be deployed in field
Azure RM Subscription
ARM template path - provide path to ARM template
ARM parameters path - provide path ARM parameters file
Resource group name - provide name of resource group
Location - select Azure data center location
Deployment type - select Sitecore deployment type:
1. Infrastructure - will deploy template and parameters as specified in file and task inputs, without reference to previous deployment
1. Deploy - will try to get parameters from "sitecore-infra" deployment on resource group and add them to deployment parameters (so, this mode shall be used if you have had an infra deployment before)
1. Validate - will run template validation only (without actual deployment)
Generate SAS - if set to
True, then, if your scwdp packages are located on storage account at same subscription, then powershell will generate short-time SAS signatures for them.
License location - insert here you license.xml content / file path / link to license.xml file (if stored on storage account in same subscription and
Generate SAS is set to
True, then it will be downloaded with freshly generated SAS). Caution: if license location is set to
Inline - please, check your license file length, as on Windows all environment variables size is limited to 32 KiB; and all settings of this script are stored as environment variable. As far as I seen - you could not use partner's license in inline field (examples, I seen was license file with average size of 65 KiB), but for lesser size licenses this field may work still.
Additional ARM parameters - allows to pass additional or override existing parameters to ARM templates. This string shall be passed in
-name value format, use grid editor for changing this. Example:
-sas ?st=2018-05-28&test=test -url test. If value contains spaces - it shall be enclosed in double quotes. Example:
-sas "this is test value" -url iAmUrl. Use case for this: usage of nested templates, which requires that templates are being accessed only via HTTP(S) (Sitecore 9 deployments, for example): when storing templates at closed source control repository, not accessible from the wild Internet, you could push them to blob storage in folder with release number (achieving versioning), generate a link and pass it along with short living SAS to a task in parameters. Previous format with
name=value format, several parameters shall be separated by line end symbol
\n(do not forget about space symbol before and after). Example:
sas=?st=2018-05-28&test=test \n url=test is supported, if entered manually (or when upgrading version), but usage is discouraged, as there is no supported editor for it. Please, be aware that in version 3
name=value will be phased out.