Skip to main content
Community site session details

Community site session details

Session Id : GEJSs1SGUi1MsGy4n4HTwO
Power Apps - Power Apps Governance and Administ...
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 28 Jun 2022 11:33:47 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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete