Skip to content

[CoE Starter Kit - BUG] Inventoring issue with Microsoft 365 environment #9834

@fim34

Description

@fim34

Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

Hello,

A new Microsoft 365” environment appeared in tenant on 27/03/2025.
It seem with environment was created by design as part of a new Copilot feature called Scheduled Prompts. When a user with a valid Copilot license uses Scheduled Prompts for the first time, the Microsoft 365 environment is automatically created in the background. This ensures that required solutions, such as:

  • M365 Copilot Actions Solution
  • M365CopilotAutomations Solution

These are provisioned and ready to support the Copilot features.

If the environment is deleted and Scheduled Prompts are used again, it will be automatically recreated.

Needed to be global admin to add myself as system admin and add the service account who run the flow inventory.
But still issue for this environment with error

The user with object id 'its service account' in tenant '' does not have access to permission 'ManageAnyCustomApi' in environment 'id of microsoft 365'. Error Code: '<null>'

So what is missing on this environment to remove this error we have , its only on one flow who want to check this environment.

Regards

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.47.1

What app or flow are you having the issue with?

CLEANUP HELPER - Check Deleted v4 (Custom Connectors)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

1.need copilot licence
2.Schedule Prompts in copilot portal
3.check ppac to check the environment is created in backend
4. add yourself as admin system and add service account who run the flow
5. wait for the error

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoe-starter-kitCoE Starter Kit issues

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions