In this lab, you will go though the following tasks:
- Create your first pipeline
- Run the deployment to the QA environment
In this task, you will create your first pipeline. The Deployment Pipeline Configuration
app that you installed in lab 1 will be used for that.
Go to the maker portal, and make sure you are in the Prod
environment.
Select the Deployment Pipeline Configuration app and make sure to play it.
This will open the app in a new tab:
Make yourself familiar with the app, by looking around which menu items there are:
First, there is an Overview
section, where you land when you open the app. This is the Pipelines Dashboard
, which will show you the latest info about runs and pipelines that are active. When you open this for the first time, it's supposed to be empty, so don't worry!
There is also a Pipeline Setup
section where you can view your environments and pipelines.
Last but not least, there is a Deployments
section which enables you to view the run history and find solution artifacts.
Let's create a new pipeline, by selecting the + new button on the Pipelines Dashboard
.
This will open a quick create form at the side.
-
Use
My first pipeline
as the name -
Leave the rest as default and save the pipeline by selecting the Save and Close button
You will end up on the Pipelines Dashboard
again, but now My first pipeline
will be visible.
- Click on the name
My first pipeline
This will lead you to a form where you can enter details about your pipeline:
Scroll down and you will see the following content below the owner field:
As you can see there are two sections: Linked Development Environments & Deployment Stages.
Linked Development Environments
A pipeline can be available for multiple development environments. This is very convenient when you want to use multiple development environments and use shared test and shared production environments.
In this lab, we will only add one development environment to the Linked Development Environments, but when you use this at your company later on, remember that it can be more than one environment here.
Deployment Stages
The Deployment Stages section will give you the option to add stages after your development environment. So for instance, in our lab today, we are going to add a stage called Deploy to QA
and another stage called Deploy to Prod
. The cool thing is that we can set previous stages for these stages. This gives us the ability to make sure Deploy to QA
goes first, and Deploy to Prod
comes second.
Let's continue our lab and start by adding a new development environment by selecting the New Development Environment button in the Linked Development Environments section.
A sidebar will be opened, where you can enter the details of the Dev
environment you created in lab 01.
-
Add
Dev
as the Name -
Set the Environment Type to
Development Environment
-
For the next step, make sure to grab the
Environment Id
from the Power Platform Admin Center-
Open a new tab and go to the Power Platform Admin Center
-
Select Environments in the menu on the left
-
Select the environment named Dev
-
Copy the environment ID from there and paste it in the
Deployment Pipeline Configuration
app.
-
-
Select the Save and Close button on the bottom of your sidebar
If all went well, you'll see the following screen (Refresh the page if you don't see it):
Make sure to select the + New Deployment Stage button now to add the first deployment stage.
This will open a new form, where you can enter details about your first deployment stage.
-
Add
Deploy to QA
as the Name -
We're leaving the Description and Previous Deployment stage empty, because we don't have a previous deployment stage, since this is our first stage
-
Set focus to the input box next to target deployment environment. This will open up a small popup which enables you to add a new deployment environment
-
Select + New Deployment Environment
This will open another sidebar where you can add details about your QA environment.
In the sidebar, make sure to add the following details:
-
Add
QA
as theName
-
Add
Target Environment
as theEnvironment Type
-
Add the environment ID of the test environment
-
Open a new tab and go to the Power Platform Admin Center
-
Select Environments in the menu on the left
-
Select the environment named QA
-
Copy the environment ID from there and paste it in the
Deployment Pipeline Configuration
app.
-
-
Select the Save and Close button on the bottom of your sidebar
-
Select Save and Close to save at the top of your deployment stage form as well
Make sure to select the + New Deployment Stage button again to add a second deployment stage: Deploy to prod
.
-
Add
Deploy to prod
as theName
-
Leave the
Description
empty -
Focus on the
Previous Deployment Stage
and search for theDeploy to QA
stage. After you have found that stage, select it -
Set focus to the input box next to target deployment environment. This will open up a small popup which enables you to add a new deployment environment
-
Select + New deployment Environment
Note:
There is a setting field calledPre Deployment Step Required
. We're not using that in this case, but think about what could that be used for. During the workshop, the trainers will show an example of it.
-
Add
Prod
as the Name -
Set the Environment Type to
Target Environment
-
For the next step, make sure to grab the
Environment Id
from the Power Platform Admin Center-
Open a new tab and go to the Power Platform Admin Center
-
Select Environments in the menu on the left
-
Select the environment named Prod
-
Copy the environment ID from there and paste it in the
Deployment Pipeline Configuration
app.
-
-
Select the Save and Close button on the bottom of your sidebar
-
Select Save and Close to save at the top of your deployment stage form as well
In this task, you will deploy the solution we created in lab 2 to the QA and Prod environments. Let's start by deploying to QA. In this lab, you have configured a pipeline and the stages that belong to it. But how does a maker deploy a solution from the Dev
environment to the QA
and Prod
environments?
-
Go to the maker portal
-
Make sure to select the Dev environment
-
Go to Solutions via the left menu
-
Select the MPPC 23 solution by selecting the display name
-
Select the rocket icon on the left
This will show you a new screen where you can see an overview of all stages you just configured in the last task
-
Select the purple Deploy here button. This will open a new sidebar which will give you the option to start your deployment now or plan your deployment for later
-
Notice the message at below the deployment schedule. This indicates that this pipeline uses AI to generate a solution overview
-
Leave everything on default and select the purple Next button on the bottom of the sidebar
This will lead you to the next section called
Summary
. Here you can find a bunch of info about the solution you are about to deploy to the QA environment. It also shows an AI suggested solution overviewWhen you're happy with that AI generated solution overview, select the Apply button below the AI suggested solution overview
Now the AI suggested solution overview is added in the
Deployment notes
box -
Check the AI suggested solution overview to make sure it doesn't include any errors and correct where needed
-
Select the purple Deploy button
It will take a couple of minutes to deploy the solution to the QA environment. After it's done, the overview page for the pipelines should look like this:
As you can see, the last deployed solution version and last deployed date time are visible here.
-
Of course, you want to see for yourself if the deployment was successful, so select the Go to this environment button in the
Deploy to QA
stage -
Select Solutions in the left navigation
-
Check if the
MPPC 23
solution with version 1.0.0.1 is installed in theQA
environment -
Open the
MPPC 23
solution by selecting the display name -
Select the Real Estate Property canvas app and select the Play button in the command bar at the top
-
This will open the app in a new tab
It will look like your app is broken, since it will have the message
Getting your data
, but it's working fine! The problem is that there is no data in this environment, because we just deployed the solution here. Let's fix that! -
Select the + New button on the left side of the screen
-
Fill in the following fields with the information below:
-
ID:
101
-
Image:
https://raw.githubusercontent.com/microsoft/PowerPlatformAdvocates/main/MSLearn/AIModule/Images/property1.jpg
-
Owner:
Emily Johnson
-
OwnerEmail:
[email protected]
-
Size:
1800
-
Address:
432 Elm Street, Riverside, CA 92501
-
Price:
350000
-
-
Select the check to save the new row
-
Now you will see at least one row in the app and the app should look more familiar with the photo and the Power Apps Ideas formatting we did in lab 2
-
Select the Real Estate Showings canvas app and select the Play button in the command bar at the top
-
This will open the app in a new tab
Again, it will look like your app is broken, since it will have the message
Getting your data
, but it's working fine! -
Select the + New button on the left side of the screen
-
Fill in the following fields with the information below:
-
Agent:
James Bond
-
Client Email:
[email protected]
-
Client Name:
Austin Powers
-
Showing Date:
<Pick the date of today - don't change the time>
-
Showing Time:
<Pick the date of today - change the time to 10:00>
-
Status:
Pending
-
Property:
432 Elm Street, Riverside, CA 92501
-
-
Select the check to save the new row
-
Now you will see at least one row in the app and the app should look more familiar like the
Real Estate Showings
app we created in lab 2
Now you know the app works in QA, let's deploy it to production.
This is the end of lab 3. Select page 4 below to move to the next lab.