A template to deploy SharePoint Subscription Edition

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

This template creates a secure, highly customizable SharePoint Subscription Edition farm, using Azure Verified Modules, and the project SharePointInfraDsc to apply the DSC (desired state configuration) to the virtual machines.

Main objectives

  • A highly secure, customizable environment, under your full control (you set the AD domain name, admin account name, all accounts password).
  • A SharePoint farm installed with the PU of your choice (including the latest one), and up-to-date Windows and software before you first log-in.
  • A fine-grained control on the SharePoint configuration: You can easily specify what features are configured individually, or choose between 4 levels: 'Minimum', 'Light', 'Medium' (default), and 'Full'
  • Truly ready-to-use virtual machines right at the first log-in, with everything a SharePoint administrator needs.
  • A state-of-the-art configuration that showcases the best practices for a well-configured SharePoint farm.
  • A fast deployment time: A fully configured SharePoint farm installed with the latest PU takes only about 1h15 mins to be fully ready (if you think it is not so fast, compare this with the time it takes to install a SharePoint PU in your farm).
  • Easy to create, use, and destroy. You want to test a SharePoint setting/config but you are afraid to mess your existing farm? You want to test a specific SharePoint build? Or test OIDC? Use this template.

Virtual machines

Usage

Usage

Deploy To Azure Deploy To Azure US Gov Visualize

Deploy using az cli (in PowerShell)

az group create --location "france central" --name "sharepoint-quickstart"
# This is an example, many other parameters / combinations are possible
az deployment group create --name "sharepoint-quickstart" --resource-group "sharepoint-quickstart" --template-uri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/refs/heads/master/application-workloads/sharepoint/sharepoint-adfs/azuredeploy.json" --parameters sharePointVersion='Subscription-Latest' sharePointConfigurationLevel='Custom' customSharePointConfiguration="['Addins', 'TrustedAuthentication']" adminUsername='yvand' adminPassword='<PASSWORD>' otherAccountsPassword='<PASSWORD>'

SharePoint configuration

  • Parameter sharePointVersion sets which version of SharePoint Subscription Edition will be installed:
  • Parameter sharePointConfigurationLevel sets how much configuration is done:
    • Custom: You specify what SharePoint features are installed by setting the parameter customSharePointConfiguration.
    • Minimum: Creates a web application with its default zone only.
    • Light: Everything in Minimum, plus:
      • Provisions the State Service Application.
      • Configures the trusted authentication (OIDC with ADFS).
      • Creates additional site collections (host-named and path-based).
    • Medium: Everything in Light, plus:
      • Extends the web application to zone Intranet.
      • Provisions the User Profile Service Application.
      • Configures all the resources to run and deploy add-ins.
    • Full: Everything in Medium, plus:
      • Provisions Project Server.
      • Provisions the Search Service Application.
  • Parameter defaultZoneMustBeHttps: true if the default zone must use HTTPS, false if it may use HTTP (if compatible with the configuration selected).
  • Parameter frontEndServersCount lets you add up to 4 additional SharePoint servers to the farm with the MinRole Front-end.

Outbound access to internet

During the provisionning, virtual machines require an outbound access to internet to be able to download and apply their configuration.
The outbound access method depends on parameter outboundAccessMethod:

Remote access

The remote access to the virtual machines depends on the following parameters:

  • Parameter rdpTrafficRule specifies if a rule in the network security groups should allow the inbound RDP traffic:
    • No (default): No rule is created, RDP traffic is blocked.
    • * or Internet: RDP traffic is allowed from everywhere.
    • CIDR notation (e.g. 192.168.99.0/24 or 2001:1234::/64) or an IP address (e.g. 192.168.99.0 or 2001:1234::): RDP traffic is allowed from the IP address / pattern specified.
  • Parameter addBastion:
    • if true: Configure service Azure Bastion with Developer SKU, to allow a secure remote access to virtual machines.
    • if false (default): Service Azure Bastion is not created.

IMPORTANT: If you set parameter outboundAccessMethod to AzureFirewallProxy, the virtual machines do not get a public IP. To connect to a virtual machine, you will need to either assign a public IP address after deployment, or use Azure Bastion.

Other input parameters

  • The resource group name is used:

    • As the name of the Azure resource group which hosts all the resources that will be created.
    • As part of the public DNS name of the virtual machines, if they get a public IP (parameter outboundAccessMethod), and a DNS name associated with it (parameter addNameToPublicIpAddresses).
  • Parameter enableHybridBenefitServerLicenses allows you to enable Azure Hybrid Benefit to use your on-premises Windows Server licenses and reduce cost, if you are eligible. See this page for more information.

Outputs

Upon completion, the deployment returns multiple values such as the logins, passwords, the public IP address of virtual machines, and other useful information.

Cost of the resources deployed

By default, virtual machines use Basv2 series, ideal for such template and much cheaper than other comparable series.
Below is the default size and storage used per virtual machine role:

You can use https://azure.com/e/26eea69e35b04cb884b83ce06feadb5c to estimate the monthly cost of deploying the resources in this module, in the region/currency of your choice, assuming it is created using the default settings and runs 24*7.

Known issues

  • The password for the User Profile directory synchronization connection (parameter otherAccountsPassword) needs to be re-entered in the "Edit synchronization connection" page, otherwise the profile import fails (password decryption error in the logs).
  • When setting outbound_access_method to AzureFirewallProxy, most of the software installed through Chocolatey fail to download and are not installed.
  • When setting sharepoint_configuration_level to Full and front_end_servers_count > 0: the configuration wizard hangs on the additional web front ends when they join the farm.
  • The deployment of Azure Bastion fails pretty frequently. This has little impact, since it is very easy to redeploy through the portal.

Additional information

  • Using the default options, the complete deployment takes about 1h (but it is worth it).
  • Installing a SharePoint PU adds less than 10 minutes to the total deployment time, mostly because the PU is installed before the farm is created.
  • For various (very good) reasons, in SQL and SharePoint VMs, the name of the local (not domain) administrator is set with a string that is unique to your subscription (e.g. l-[q1w2e3r4t5]). It is recorded in the 'Outputs' of the deployment once it is completed.

Tags: Microsoft.Network/networkSecurityGroups, Microsoft.Network/virtualNetworks, Microsoft.Network/publicIPAddresses, Microsoft.Network/networkInterfaces, Microsoft.Compute/virtualMachines, extensions, DSC, Microsoft.Compute/virtualMachines/extensions, Microsoft.DevTestLab/schedules, Microsoft.Network/virtualNetworks/subnets, Microsoft.Network/bastionHosts