[Introduction]
We are introducing code previews on Copilot Pages, a Microsoft 365 Copilot capability that allows Copilot to generate and render interactive previews of AI‑generated code within Copilot Pages.
Because this feature enables execution and rendering of AI‑generated code, it is admin‑controlled and dependent on Copilot Pages. If Copilot Pages are disabled, Code Previews are not available. If Copilot Pages are enabled (default or forced on), admins can independently enable or disable Code Previews using a new Cloud Policy setting.
[When this will happen:]
General Availability (Worldwide): We will begin rolling out mid-March 2026 and expect to complete by mid-April 2026.
[How this will affect your organization:]
When enabled, users may see AI‑generated code rendered as interactive previews within Copilot Pages, when Copilot determines a code preview is appropriate.
Key details:
- Code Previews are available only in Copilot Pages.
- If Copilot Pages are disabled, code previews are unavailable.
- If Copilot Pages are enabled, admins can still independently control code previews.
- When disabled, Copilot will still generate code but not have a “preview” option to run code previews.
There is no impact to tenants that have Copilot Pages disabled.
[What you need to do to prepare:]
No action is required if you are comfortable with the default behavior.
Admins who want to control availability should review and configure the following Cloud Policy setting:
Policy name:
Enable code previews for AI-generated content in Microsoft 365 Copilot Chat and Copilot Pages
Policy behavior:
- Enabled: Users can view and interact with code previews in Copilot Pages.
- Disabled: Copilot will not allow generated code to run in a preview experience in chat or Pages.
- Not configured: Code previews are enabled by default.
[Compliance considerations:]
- New data stored: No, lives in existing .page files with existing management capabilities
- Changes to data processing or access: No
- New AI/ML capabilities accessing customer data: No
- New communication channels: No
- New generative AI interaction: Yes (AI‑generated code previews, admin‑controlled)
- Impact to Purview (DLP, labels, eDiscovery, audit, retention, encryption): No, lives in existing .page files with existing workflows, no code previews run in eDiscovery output
- Changes to admin compliance monitoring or reporting: No, lives in existing .page files with existing monitoring and reporting capabilities
- Changes to GDPR data subject rights: No
Source: Microsoft
Latest Posts
- Simplified permissions for Amazon S3 Tables and Iceberg materialized views

- New admin control for AI‑generated code previews in Microsoft 365 Copilot Pages [MC1254560]
![New admin control for AI‑generated code previews in Microsoft 365 Copilot Pages [MC1254560] 3 pexels ashamplifies 3663024](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Purview DSPM’s Data Risk Assessments now support item-level investigation and remediation of SharePoint [MC1254556]
![Purview DSPM’s Data Risk Assessments now support item-level investigation and remediation of SharePoint [MC1254556] 4 pexels cottonbro 5054213](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Copilot Notebooks: New features coming to Frontier Public [MC1254552]
![Copilot Notebooks: New features coming to Frontier Public [MC1254552] 5 pexels anniroenkae 2457284](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
![New admin control for AI‑generated code previews in Microsoft 365 Copilot Pages [MC1254560] 1 New admin control for AI‑generated code previews in Microsoft 365 Copilot Pages [MC1254560]](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-ashamplifies-3663024-1024x683.webp)

![New admin control for AI‑generated code previews in Microsoft 365 Copilot Pages [MC1254560] 3 pexels ashamplifies 3663024](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-ashamplifies-3663024-150x150.webp)
![Purview DSPM’s Data Risk Assessments now support item-level investigation and remediation of SharePoint [MC1254556] 4 pexels cottonbro 5054213](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-cottonbro-5054213-150x150.webp)
![Copilot Notebooks: New features coming to Frontier Public [MC1254552] 5 pexels anniroenkae 2457284](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-anniroenkae-2457284-150x150.webp)