Set up Microsoft Copilot Managed Runtime for Lovable

Before makers can publish Lovable projects to Microsoft Copilot Managed Runtime, configure access to Lovable in Microsoft Entra. In each approved environment, you must allow app creation through the Copilot Managed Runtime command-line interface (CLI) setting and allow externally built artifacts. You should also decide where apps are created and validate network access.

This setup enables a third-party authoring and build service to deploy apps into your Microsoft tenant.

This article is for Microsoft tenant and Power Platform administrators. Makers should see Publish a Lovable app to Microsoft Copilot Managed Runtime.

Important

The Microsoft Copilot Managed Runtime integration is a third-party feature provided by Lovable. According to Lovable, the integration requires a Lovable Business or Enterprise plan and is being released gradually. A Lovable workspace administrator must also enable access to the connector.

How the integration works

The integration uses a Microsoft Entra enterprise application and delegated permissions to create and deploy apps on behalf of a signed-in maker. The integration doesn't grant Lovable an administrator role in your tenant. Actions are limited by the signed-in user's permissions and by the policies applied to the target environment.

Lovable builds the application artifact outside the Microsoft-managed build system. Copilot Managed Runtime then hosts the deployed app and applies Microsoft Entra authentication and your environment's governance policies.

The following content remains outside your Microsoft tenant:

  • The Lovable project source
  • Project chat history
  • Lovable workspace and connection metadata

The published application, its Microsoft runtime identity, and its runtime connector activity are managed in your Microsoft tenant. Review Lovable's tenant setup documentation for Lovable's current data handling and connection architecture.

Prerequisites

To complete the Microsoft configuration, you need:

Before you grant consent, review the requested permissions, publisher information, terms of use, privacy statement, and your organization's third-party application requirements.

1. Add the Lovable enterprise application

Lovable documents its enterprise application with the display name Lovable managed apps and application (client) ID 2679639a-43b1-48b5-add7-85cedd49f1fc.

Use Lovable's tenant setup instructions to initiate the consent request. On the Microsoft consent screen:

  1. Confirm that the tenant is the tenant you intend to configure.
  2. Confirm the application identity and publisher.
  3. Review every requested permission.
  4. Grant consent only if the permissions meet your organization's requirements.

After consent, verify the enterprise application:

  1. Sign in to the Microsoft Entra admin center.
  2. Go to Entra ID > Enterprise apps > All applications.
  3. Open Lovable managed apps.
  4. Under Security, select Permissions and confirm the granted permissions.
  5. Review sign-in logs and configure any assignment or Conditional Access requirements that your organization needs.

2. Allow app creation with the Copilot Managed Runtime CLI

To create Lovable apps, you need the Allow app creation with the Copilot Managed Runtime command line interface (CLI) setting. Enable this setting for every environment or environment group where makers publish lovable apps.

  1. Sign in to the Power Platform admin center.
  2. Go to Copilot > Settings > Managed apps.
  3. Select Allow app creation with the Copilot Managed Runtime command line interface (CLI).
  4. Select Environment groups or Environments.
  5. Select the group or environment where approved makers publish Lovable apps.
  6. Enable the setting, and then save your changes.

For an environment group, you can instead go to Manage > Environment groups, select the group, open Rules, and enable Allow app creation with the Copilot Managed Runtime command line interface (CLI).

For more information, see Control whether apps can be created using the CLI.

3. Allow external artifact deployment

External artifact deployment is disabled by default. Enable it only for environments where your organization allows artifacts built outside the Microsoft-managed build system.

  1. Sign in to the Power Platform admin center.
  2. Go to Copilot > Settings > Managed apps.
  3. Select External artifacts in managed apps.
  4. Select Environment groups or Environments.
  5. Select the group or environment where approved makers publish Lovable apps.
  6. Enable the setting, and then save your changes.

For an environment group, you can instead go to Manage > Environment groups, select the group, open Rules, and enable External artifacts in managed apps.

When you publish a rule at the environment-group level, it locks the corresponding setting for every environment in the group. Per-environment exceptions aren't supported. For more information, see External artifact deployment.

Important

Your organization is responsible for validating externally built artifacts, securing the build and authoring process, and confirming that artifacts meet your security, compliance, privacy, and software supply-chain requirements.

4. Choose the target environments

Decide whether makers can use automatically provisioned environments or must publish to environments that you designate.

Use the default environment group

When a maker doesn't specify an environment ID, Lovable requests an environment under that maker's identity. Microsoft reuses that environment for the maker's later Lovable projects.

Automatically provisioned environments are placed in the Default environment group, where they inherit Microsoft-recommended governance settings that administrators can configure. To let makers create and publish Lovable-built apps in these environments, enable both Allow app creation with the Copilot Managed Runtime command line interface (CLI) and External artifacts in managed apps for the Default environment group.

Use designated environments

For more control over where apps are created, select approved environments and give each maker the applicable environment ID. The maker enters the ID when creating the Copilot Managed Runtime connection in Lovable.

Use separate environments or environment groups when teams, regions, or lifecycle stages require different policies. Confirm that each maker has permission to create and update apps in the assigned environment. For that environment or its environment group, enable both Allow app creation with the Copilot Managed Runtime command line interface (CLI) and External artifacts in managed apps.

For environment-group design guidance, see Environment groups.

5. Configure network access

According to Lovable, builders and app users might need access to the following domains:

  • lovable.dev and its subdomains
  • login.microsoftonline.com
  • *.powerapps.com
  • *.managedapps.cloud.microsoft
  • *.lovable.app
  • *.lovableproject.com

Review the current network requirements in Lovable's tenant setup documentation before you change a firewall, proxy, or browser policy.

The Lovable editor embeds the Copilot Managed Runtime preview. TLS inspection or policies that block embedded third-party content can prevent the preview from loading. Test with a pilot maker on your standard corporate network.

6. Configure the Lovable workspace

A Lovable workspace administrator controls who can create and use the Microsoft Copilot Managed Runtime connection. In Lovable, configure the connector for only the administrators and makers approved by your organization.

Lovable documents these workspace controls under Set up your Lovable workspace. Lovable controls and terminology can change independently of Microsoft, so use its documentation for the current procedure.

Connection sharing in Lovable controls who can use a connection in Lovable projects. It doesn't change the Microsoft identity that owns the connection or the permissions of that identity in your tenant.

Revoke Lovable access

Revoking the Lovable integration prevents future access, but it doesn't automatically remove apps that were already deployed.

  1. In the Microsoft Entra admin center, open Entra ID > Enterprise apps > Lovable managed apps.
  2. Revoke consent or delete the enterprise application according to your incident-response and change-management process.
  3. Have Lovable workspace administrators delete the corresponding Microsoft connections in Lovable.
  4. In the Microsoft 365 admin center, go to Apps > All apps and block or delete deployed apps as needed.
  5. In the Power Platform admin center, review and remove environments or connections that are no longer required.
  6. Disable CLI app creation and external artifact deployment if no approved workflow still requires them.

Troubleshoot setup

Issue Resolution
Makers can't sign in from Lovable Verify that the correct Lovable enterprise application exists in the tenant and has the required consent. Review the enterprise application's sign-in logs and Conditional Access results.
Makers can't find the connector Ask the Lovable workspace administrator to verify plan availability and the workspace setting that controls who can create the connector.
App creation is rejected Verify that Allow app creation with the Copilot Managed Runtime command line interface (CLI) is enabled for the target environment or its environment group.
Publishing is rejected Verify that External artifacts in managed apps is enabled for the target environment or its environment group.
Runtime data requests fail Review the app's connections, advanced connector policies, user permissions, and Conditional Access results.
The embedded preview is blank Verify the required domains, proxy and TLS inspection behavior, and browser policies for embedded third-party content.
A revoked integration still has deployed apps Revocation stops future Lovable access; block or delete existing apps separately from Apps > All apps in the Microsoft 365 admin center.