Deploy a project and environment
10 minutes
This is part one of the getting started walkthrough series. After you complete this step, move on to create a site and page.
When you create a new projectproject in the Deploy app, it automatically creates an environmentenvironment and runs an initial deployment. In this topic, we'll create a project that uses the XM Cloud starter foundation templatestarter foundation template. You can also create a project using the Sitecore CLI or the XM Cloud Deploy API.
This walkthrough describes how to:
-
Make sure you have an email invite to an XM Cloud instance, and you've been assigned an Organization Admin or Organization Owner role in the organization where you want to create a project.
-
Prepare a GitHub or Azure DevOps service account and its authentication details.
Open the XM Cloud Deploy app
You access XM Cloud for the first time by accepting the invitation you received to a Cloud Portal environment. This opens the Sitecore Cloud Portal, from which you navigate to XM Cloud.
To open the Deploy app:
-
In the invitation email, click Accept invitation.
-
Your browser opens. Follow the authorization process on screen and accept the terms and conditions.
-
You are now logged in to the Cloud Portal. It shows the apps and actions available to you, depending on your access rights. The portal is where you manage users, invite team members, and assign permissions. Now that you've accepted the invitation, you can access the portal directly at
https://portal.sitecorecloud.io
, and read the documentation to learn more about using it. -
To start creating your first project, open the Deploy app by clicking XM Cloud Deploy under the quick links in the menu on the right. The Deploy app can also be accessed directly by opening
https://deploy.sitecorecloud.io/
.NoteAfter you create an environment, you can access it from the portal by clicking the tile in the Apps section.
Deploy a project
When you create a new projectproject in the Deploy app, it automatically creates an environmentenvironment and runs an initial deployment there. In this walkthrough series, we'll deploy a project that uses the XM Cloud starter foundation templatestarter foundation template.
To create a project in the deploy app using the foundation template:
-
In the XM Cloud Deploy app, on the Projects page, click Create project.
-
Name the project XMC Getting Started, then click Continue.
-
To choose the source control provider you want to use for your project click Connect, then Continue. The Deploy app will create a new repository there to store your environment code.
-
In the Set up repository window, make sure Use XM Cloud template is selected.
-
Assuming there is no existing connection, click Connect to a new account, and follow the steps to authorize the Deploy app in your account. You can later manage the connection for the source control provider.
-
Enter a name for the repository, such as XMC-Getting-Started, then click Continue.
NoteYour repository name can only contain alphanumeric characters, underscores, periods, or hyphens, and a maximum of 100 characters. It must also follow the repository naming convention of your source control provider.
-
Name the environment XMC Getting Started.
-
In the Production SaaS SLA field, select No.
ImportantA production environment is optimized for production traffic and is covered by the Sitecore SaaS Service Level Agreement. This setting cannot be changed later.
-
In the Auto deploy on push to repository field, select Yes.
-
Review the configuration and click Start deployment.
-
The deployment runs for a few minutes, and you are redirected to the deployment log screen to see the progress (this might take a few seconds). After it completes, you can click Go to XM Cloud to open the Sites dashboard in a new tab and create a new site.
The deployment process:
-
Creates a new repository in the connected source control account and copies the source code from the XM Cloud foundation template to the new repository.
-
Provisions the infrastructure and SaaS tenants to host the Content Management (CM) instance in the environment you defined.
-
Pulls the source code from the repository to a hosted XM Cloud build server and builds the solution.
-
Deploys the XM Cloud build artifacts on the provisioned CM instance.
Now that you've provisioned the project and environment, the next thing you'll do is create a site and page.