There is currently no documented, supported conversion path for replacing a published Custom Engine Agent with a Declarative Agent under the same Marketplace app ID; obtain a Partner Center certification decision before treating this as an in-place update, otherwise publish the Declarative Agent as a new app and retire the existing listing.
Microsoft documents Declarative Agent → Custom Engine Agent conversion, including updating the existing package, retaining its app ID, adding a bot, and changing declarativeAgents to customEngineAgents. It does not document the reverse operation. ^1^
The fact that an updated manifest is schema-valid does not by itself establish that Marketplace certification supports changing the published product’s agent architecture. Declarative agents use Microsoft-managed orchestration, whereas Custom Engine Agents use developer-controlled orchestration and models. ^2^ ^3^
If Partner Center confirms that an in-place conversion is accepted
Submit it as an update to the existing Partner Center product:
- Keep the existing top-level app
id.
- Increase
version using MAJOR.MINOR.PATCH.
- Replace
copilotAgents.customEngineAgents with one declarativeAgents reference.
- Include the referenced Declarative Agent manifest in the ZIP.
- Declare the MCP connector using the top-level
agentConnectors array where that connector model applies.
- Remove the Custom Engine Agent declaration and bot-specific assets that no longer provide any app capability.
- Open the existing app in Partner Center and submit the new package for review—do not select Add a new app.
Marketplace update rules require the updated package to retain the published app ID, increment the version, and undergo validation when capabilities or manifest metadata change. ^4^ Microsoft’s post-publication guidance likewise says to update the existing Partner Center product rather than create another product for a normal app update. ^5^
A minimal app-level reference has this shape:
{
"id": "<existing-marketplace-app-id>",
"version": "2.0.0",
"copilotAgents": {
"declarativeAgents": [{
"id": "declarativeAgent",
"file": "declarativeAgent.json"
}]
},
"agentConnectors": [{
"id": "mcpConnector",
"displayName": "Contoso MCP",
"description": "Access Contoso tools",
"toolSource": {
"remoteMcpServer": {}
}
}]
}
This is only structural illustration; remoteMcpServer must contain the properties required by the applicable schema and authentication design. agentConnectors is a top-level app-manifest object for external systems such as MCP servers, while declarativeAgents points to a separate Declarative Agent manifest. ^6^ ^7^
Do not retain customEngineAgents: the documented manifest model treats declarativeAgents and customEngineAgents as alternative agent declarations. ^8^
A bots node should remain only if the updated app independently continues to expose a bot capability. A Declarative Agent does not need the Custom Engine Agent’s bot merely to register its agent reference. Conversely, a Custom Engine Agent’s identifier must match the botId in bots, which is why that node belongs to the current CEA package. ^9^
Existing installations, consent, and pinning
If certification accepts the package as an update, existing installations can participate in the normal app-update process because the app ID remains unchanged. However, this particular change should not be expected to update silently:
- Removing a bot requires renewed user consent.
- Adding a connector requires renewed user consent.
- Changes to
webApplicationInfo, authorization permissions, or the associated Entra registration can also require consent or administrator approval.
- Whether users may consent depends on tenant consent policy and the permissions requested. ^5^ ^10^
No cited Microsoft documentation confirms re-pin behavior for Custom Engine Agent → Declarative Agent. The documented requirement to pin again applies specifically to the supported opposite conversion, so it should not be assumed to govern this reverse scenario. Plan to verify pin state during Marketplace preview/certification and communicate possible re-pinning to customers.
Recommended fallback
If Partner Center does not explicitly approve the architecture change:
- Publish the Declarative Agent as a new product with a new app ID.
- Stage deployment to test users and validate consent, connector authentication, pinning, and admin-policy behavior.
- Notify current customers of the replacement and migration date.
- In Partner Center, use Product Overview → Stop Selling for the old app when migration is complete. This removes it from discovery and acquisition while previously posted bot content remains in user history. ^5^
This is the lower-risk publication path because it does not depend on an undocumented reverse conversion or preservation of agent-specific lifecycle state.
References
- Convert your declarative agent to a custom engine agent
- Declarative agent architecture
- Custom engine agent architecture
- Teams Store validation guidelines
- Maintain your published Microsoft Teams app
- root.agentConnectors object
- declarativeAgentRef object
- root.copilotAgents object
- root.copilotAgents.customEngineAgents object
- Role of an admin to upgrade Teams apps to a newer version