web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot copy environmen...
Power Apps
Unanswered

Cannot copy environment using Microsoft.PowerApps.CLI (v1.16.6)

(0) ShareShare
ReportReport
Posted on by 39

Hi!

 

In version 1.16.6 of Microsoft.PowerApps.CLII can no longer copy a Dataverse environment (Dynamics 365 CE/CRM).

I get the following error message:

 

Error: There is an error parsing the data. Property 'linkedEnvironmentMetadata' is missing.

 

But, switching back to version 1.15.3, the exact same commands still works.

 

I use a service principal and connect using the argument "-k ADMIN", which I know is deprecated (but still required at this point, from what I can tell).

 

Does anyone of you know what may be the cause of this, and whether there is a work-around (besides explicitly using an older version), perhaps if there is a way to specify a value for the linkedEnvironmentMetadata property in some way? Or whether it is possible to copy an environment without using the -k switch (if that has something to do with this error)?

 

I would prefer to always install the latest version in our nightly build pipelines (which is where I mainly use this package), and not having to keep track of versions in those scripts, if avoidable.

 

Best regards,

Henrik Svensson

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard