Adapted from the official lab
Adapted from Building code first website with Power Pages in Microsoft's Apps and Agents workshop (Power Series labs), built by Microsoft's Power CAT team, with the official lab authored by Nikita Polyakov. Source: https://microsoft.github.io/apps-agents-workshop/labs/lab.html?path=byoc-powerpages%2Fbyoc-powerpages.md&branch=main&deck=byoc-powerpages%2FPower%20Series%20-%20BYOC%20Power%20Pages.pptx.
The lab documentation is licensed under CC BY 4.0. Copyright Microsoft Corporation. The licence text is in the repository LICENSE-DOCS file.
IGOE AI adapted it into this UK follow-along checklist, including wording changes, a progress checklist, and this page layout. This is not an official Microsoft page and is not endorsed by Microsoft.
Watch the video
A walkthrough video will appear here once the YouTube ID is added.
What you will build
A published Power Pages site with a supplier onboarding form that writes securely to Dataverse, plus a check of table permissions and Web API site settings.
Licences and prerequisites
The official lab lists cloud and role prerequisites, developer machine tooling, and Dataverse. Follow those official prerequisite steps at the start of the checklist, including any tools the source lab names. Do not skip the security and site settings check. Shared workshop prerequisites: labs/prereqs.md. Shared sample setup: solutions/README.md.
Labs that use generative AI can look different from the screenshots. If the result varies, complete the task from the intended outcome and the UI you see, as the official workshop notes.
Follow the lab
Work through the official steps below as a checklist. Tick each step as you finish it. Your progress is saved in this browser on this device only. Use the reset button to start again. Each step has a stable address such as https://igoe.ai/learn/apps-agents-workshop/power-pages-byoc/#step-1 so a video can link to it.
Lab overview
Lab purpose
This lab demonstrates the Bring Your Own Code (BYOC) approach using the Single Page Application capability in Power Pages to build a supplier-facing portal backed by Microsoft Dataverse. You will generate a simple website with GitHub Copilot, publish it to Power Pages, and wire it to Dataverse using the Power Pages Web API to capture supplier onboarding requests securely.
Why this matters
The BYOC feature empowers development teams to reuse existing code or create bespoke experiences with custom logic, reducing duplication and accelerating delivery. It also enables teams to integrate their own code seamlessly with tools they already know and trust, such as Visual Studio Code, Git, and GitHub Copilot, bringing modern development practices into the Power Platform ecosystem. This flexibility fosters innovation, improves maintainability, and ensures alignment with enterprise coding standards.
Business use case
A supplier onboarding program needs a public website where vendors can submit applications. Submissions must be written securely to Dataverse and later reviewed internally by staff in an admin app (covered in a separate module).
App scenario
| Industry / function | Operations |
|---|---|
| Primary user role | Supplier Account Manager |
| Problem statement | How can Contoso Electronics quickly generate code in Power Pages to meet the need for a supplier intake website? |
| Intelligent outcome | Bring your own code allows the enterprise to run their own custom code within the Power Pages host |
Core concepts
| Concept | Why it matters |
|---|---|
| Bring Your Own Code | Publish written or generate custom code to Power Platform |
| Copilot / AI features | Natural language, summarization, and reasoning accelerate build. |
| Grounded AI | Responses and actions are anchored to Dataverse / trusted data. |
| Governance & ALM | Enterprise can use their own ALM against their bespoke code. |
Documentation and learning resources
- Visual Studio Code
- GitHub Copilot in Visual Studio Code
- Power Pages Code Site
- Power Pages Power Platform CLI commands tutorial
- Power Pages Web API
- Power Pages Site Visibility
- Power Pages Column Permissions for Web API
Prerequisites
In the cloud:
- Review the shared workshop prerequisites.
- Each student must have their own Power Pages Environment.
- Ask a Power Platform administrator to confirm that the environment’s data policies permit Dataverse, which Power Pages requires.
- Ask the workshop facilitator or a Power Platform administrator to import and seed the latest Northwind Traders solution before the lab. If you import and seed it yourself, your account needs the System Administrator or System Customizer security role, or equivalent custom privileges. Follow the Northwind Traders solution import and sample data instructions.
- Confirm that your attendee account has the Environment Maker role and the Basic User role, or equivalent custom privileges, in the workshop environment.
- Confirm with a Power Platform administrator that your account has rights to create Power Pages sites in your environment. If your account does not have these rights, ask the administrator to complete this before the lab starts: sign in to Power Pages Studio in your environment, create and activate the site on your behalf, and grant your account the Environment Maker role. Resume at Step 1 once the administrator confirms the site is activated, and skip the provisioning prompt in step 8.
- Note the environment type you are assigned. A Developer environment completes every step of this lab, but its sites cannot be made public, so you sign in before viewing the site. Use a Sandbox or Production environment only if you also want to demonstrate public, unauthenticated site access.
Your developer machine:
- Install Visual Studio Code.
- Install GitHub Copilot in Visual Studio Code, with access to Copilot Chat and Agent mode.
- Install the Node.js Long-term support (LTS) version, which includes npm and npx.
- Install Azure CLI.
- Install Power Pages skill CLI.
Learning outcomes
- Understand the inner dev loop: prompt → build → upload → test → iterate.
- Understand the skills map for building a code site in Power Pages using Power Pages Skills.
- Observe Power Pages Web API used securely to interact with Microsoft Dataverse.
- Verify Power Pages Data Security checking the table permissions and site settings setup by the skill.
Step 1: Use Copilot to create the site
| Step value | Scaffolding to get your site started |
|---|---|
| Estimated effort | 20 minutes |
| Scenario | Create and connect a code site project to the workshop environment. |
| Objective | Set up the site project, initialize it for your environment, and publish it to Power Pages. |
Tasks covered
- Scaffold a new site project into a local folder using the Power Pages skill.
- Engage with Power Pages skills clarifying prompts.
- Build and deploy the site to Power Pages.
Step-by-step instructions

Figure: Open the Copilot chat sidebar in VS Code.
/power-pag
As you start to type, if autocomplete does not work, enter this prompt first:
install power pages skill from https://github.com/microsoft/power-platform-skills/tree/main/plugins/power-pages
Wait for this to finish and try again. The Copilot prompt should resolve to a known command like this:
/power-pages create-site
/power-pages create-site
# Description of the website
Create a simple portal that welcomes suppliers to the Northwind Traders Supplier Portal. We want a button on the home page, "Supplier Onboarding Form", that navigates to the form. Users do not need to log in to submit an application. Make sure that the site is mobile responsive for smartphone layouts.
We are developing this as Power Pages code site (SPA) and we want to use the latest Power Pages skills and CLIs to accomplish all of our tasks.
# Supplier Onboarding Form
Supplier Onboarding page will be very simple. In the Form show following fields - Company name, First name, Last name, Email, Note.
Form Validation: All fields required. Email in valid format. Note field has 100 characters limit.
Make sure to have a Submit button and UI confirmation of success post.
# Data
We will use Dataverse in the same environment. Use the existing `nwind_suppliers` table, which internal users already use to review submissions.
For data interactions we will use Power Pages Web API technology.
# Data Permissions
Allow Anonymous users to Create-only rights for the Supplier Table.
Use this information to setup Table Permissions and appropriate Web Role mapping.
For Web API field configuration we only want the fields our Form needs to post data.
Webapi/nwind_suppliers/fields = nwind_company, nwind_firstname, nwind_lastname, nwind_emailaddress, nwind_notes
Note: In Web API configuration Site Setting we use "nwind_suppliers" which is a Logical Name - when calling this table from Web API we must use "nwind_supplierses" which is a Set Name - beware of this difference when calling the Web API from the code!

Figure: Accept required setup dialogs to proceed.
Expected result (checkpoint)
Let’s make sure your site was uploaded and activated.
Important: Before you even see your website, you’ll see an Entra ID login screen or be auto-logged in. You will then be paused on a Permission requested dialog. Select Accept to continue. If you are blocked at this stage, you won’t be able to see your site. Contact your Azure administrator to grant consent, then reload the site URL.

Figure: Prompt to grant permission to log in to an Entra App protecting your website while it’s in “project mode”.
Note: Power Pages start with Site Visibility set to Private Mode. All users including the site owner need to authenticate to view the site no matter the intended audience. This protects your project from early exposure on the internet, which is why you may see a login screen. When creating a site in a Developer environment, sites cannot be set to Public visibility even if you try to share URLs of the site with internal or external users.
Site Visibility is separate from the anonymous Create permission you configure for the nwind_suppliers table. Once you are past the site sign-in, the form still posts as an anonymous Web API caller, so the least-privilege configuration you verify in Step 3 is the outcome this lab validates. In a Developer environment you cannot demonstrate genuinely public access. To show a public site, run this lab in a Sandbox or Production environment where an administrator permits public visibility, then set the site to Public in Set up > Site visibility.
Your website should now load and you should see a clear Supplier Onboarding Form button that navigates to a form you can submit.

Figure: Your website will look different but should follow this general direction.
Submit a test application
Tip: If a submission returns an error instead of the success message, continue to Step 3 and verify the table permissions and Web API site settings, then retry the submission.
Reflection
You’ve completed the first part of the lab with a published code site that you can view in a web browser, and you can submit data on a Supplier onboarding form.
Check form data in Dataverse

Figure: Power Pages home page with the environment picker.

Figure: Suppliers table in the Data workspace showing the submitted record.

Figure: BYOC-App Supplier Management app showing your record as Submitted.
Expected result (checkpoint)
The Suppliers table contains a row with the values you submitted, and its status is Submitted.
Tip: If no row appears, return to your site, submit the form again, and watch for the on-screen success confirmation. If the submission fails, continue to Step 3 and verify the table permissions and Web API site settings, which are the most common causes.
Step 3: Verify data access configuration
Table permissions

Figure: You should see a permission for the Suppliers table.
- Table Permission Name:
Supplier Createor similar. - Table:
Supplier(Northwind sample table). - Permission: Create only.
- Roles: Anonymous
Web API configuration

Figure: Open Power Pages Management from Power Pages Studio navigation menu overflow.

Figure: Web API is enabled and the allowed fields are listed.
You should see:
Webapi/nwind_suppliers/enabled=TrueWebapi/nwind_suppliers/fields=nwind_company, nwind_firstname, nwind_lastname, nwind_emailaddress, nwind_notes
Tip: While you are in Site Settings, you can create a new site setting named
Site/ShowPrivateSiteBannerwith a value ofFalse. This hides the Site Visibility Private banner so that it doesn’t interfere with your app’s styling.
Expected result (checkpoint)
Anonymous visitors can create Supplier records, and only the allow-listed fields are exposed by the Web API for data entry.
Tip: If a table permission or site setting is missing, return to Copilot chat and ask the Power Pages skill to create it, then reload Power Pages Management to confirm the value.
Lab completion
Congratulations! You built an intelligent, BYOC-based Power Pages site and connected it securely to Dataverse.
Key takeaways
- Design AI-first experiences and ground them in Dataverse.
- Combine deterministic controls (Table permissions, column allow-lists) with generative productivity.
- Use Site Visibility to keep the site governed and scoped to the project team.
Above and beyond challenges
- Ask Copilot to generate light/dark mode and style the site to your own brand by pointing AI to your corporate website. How well did it do?
- Add Column Permissions to tighten control across various CRUD scopes.
- Ask Power Pages skills to set up a login page and configure Entra External ID.
- Identify governance controls for Power Pages.
Summary and best practices
- Ground every response and keep least-privilege field exposure.
- Test, monitor, and iterate; capture telemetry.
- Use explicit, deterministic automation instructions for reliability.
Document owner: Nikita Polyakov
Review cadence: Quarterly / Per release
What is likely to go wrong
| Symptom | Likely cause | What to try |
|---|---|---|
| You cannot find the sample app, tables or orders. | The Northwind Traders solution is missing, or you are in the wrong environment. | Check the environment picker, then import and seed the sample using the official solutions README. |
| A feature or preview button is missing. | The environment region, early release setting, or a required role is not in place. | Compare your environment with the official prerequisites for this lab, including early release and Copilot Studio Authors where the source lab requires them. |
| A connector or flow asks for a licence. | The account is missing a required licence, such as Outlook for the supervised-agents lab, or a premium connector. | Use a licensed test account in the sandbox, or follow the official trial steps if the source lab includes them. Do not run this in production to work around a licence gap. |
| A flow, workflow or agent run fails on the first test. | A connection is not signed in, or sample data does not match the filter in the step. | Open connections and sign in, then check the record values against the official filter or test data. |
| Generated wording or a chart looks different from a screenshot. | Generative AI results vary, as the official workshop says. | Judge the result against the intended outcome and continue if the task is complete. |
Open the original Power CAT lab if a UI name has changed, and use what you see on screen rather than inventing a missing click.
Join the free monthly webinar. A 40-minute live taster on Microsoft Teams.
See where your organisation stands
Complete the short AI and automation scorecard. Your answers stay in your browser. Nothing is sent or stored, and there is no email sign-up.