Create a Episerver CMS resource group in Azure.
Your Azure SubscriptionId that you want to create the new resource group in.
The client secret used to access the project.
Don´t put in any special characters and stuff. It could end up with errors because of the Azure portal naming convention.
Note: Storage account name must be between 3 and 24 characters in length and use numbers and lower-case letters only.
The password to your database that will be generated. You need to follow the password policy. More information about Password policy in Azure AD
The password will be transformed to a SecureString in the function.
The tags that will be set on the resource group when it is created. We are using the following tags for our projects. These are recommended by Microsoft. You can read more in the Resource naming and tagging decision guide
Ex:
$Tags = @{
"Environment"="dev";
"Owner"="[email protected]";
"App"="Episerver";
"Client"="Customer AB";
"Project"="External Website 2021";
"ManagedBy"="[email protected]";
"Cost"="internal";
"Department"="IT";
"Expires"="2030-01-01";
}
The location where the resource group should be hosted. Default = "westeurope". You can get a complete list of location by using Get-AzureRmLocation |Format-Table
.
The location where we can find your custom ARM template to use in this script. Default = https://raw.githubusercontent.com/Epinova/EpinovaAzureToolBucket-psmodule/main/ArmTemplates/epinova-azure-basic-episerver-cms.json
If you don´t want to use the Epinova ARM template that is used by default, you can always take a copy of the https://raw.githubusercontent.com/Epinova/EpinovaAzureToolBucket-psmodule/main/ArmTemplates/epinova-azure-basic-episerver-cms.json and make your own ARM template. You can now specify your own ARM template when execute New-EpiserverCmsResourceGroup
with the parameter: -ArmTemplateUri = 'https://raw.githubusercontent.com/yourrepository/arm-templates/main/azure-episerver-cms.json'
$SubscriptionId = "95a9fd36-7851-4918-b8c9-f146a219982c"
$ResourceGroupName = "mycoolwebsite"
$DatabasePassword = "KXIN_rhxh3holt_s8it"
$Tags = @{
"Environment"="dev";
"Owner"="[email protected]";
"App"="Episerver";
"Client"="Customer AB";
"Project"="External Website 2021";
"ManagedBy"="[email protected]";
"Cost"="internal";
"Department"="IT";
"Expires"="2030-01-01";
}
New-EpiserverCmsResourceGroup -SubscriptionId $SubscriptionId -ResourceGroupName $ResourceGroupName -DatabasePassword $DatabasePassword -Tags $Tags
$Tags = @{
"Environment"="dev";
"Owner"="[email protected]";
"App"="Episerver";
"Client"="Customer AB";
"Project"="External Website 2021";
"ManagedBy"="[email protected]";
"Cost"="internal";
"Department"="IT";
"Expires"="2030-01-01";
}
New-EpiserverCmsResourceGroup -SubscriptionId '95a9fd36-7851-4918-b8c9-f146a219982c' -ResourceGroupName 'mycoolwebsite' -DatabasePassword 'KXIN_rhxh3holt_s8it' -Tags $resourceGroupTags -ResourceGroupLocation = "westeurope" -ArmTemplateUri = "https://raw.githubusercontent.com/yourrepository/arm-templates/main/azure-episerver-cms.json"
New-EpiserverCmsResourceGroup -SubscriptionId '95a9fd36-7851-4918-b8c9-f146a219982c' -ResourceGroupName 'mycoolwebsite' -DatabasePassword 'KXIN_rhxh3holt_s8it' -Tags @{ "Environment"="dev";"Owner"="[email protected]";"App"="Episerver";"Client"="Client name";"Project"="Project name";"ManagedBy"="Ove Lartelius";"Cost"="Internal";"Department"="IT";"Expires"=""; } -ResourceGroupLocation = "westeurope" -ArmTemplateUri = "https://raw.githubusercontent.com/yourrepository/arm-templates/main/azure-episerver-cms.json"