I'm using Power Platform CLI to try to duplicate a copilot. To do this, I first retrieve the template of my initial copilot with the following command :
pac copilot extract-template --bot BOT_NAME --environment ENV_ID --templateFileName FILE_NAME
Once the template has been successfully retrieved, I try to create a new copilot with the following command:
pac copilot create --displayName BOT_NAME --schemaName SCHEMA_NAME -s Default --templateFileName TEMPLATE_FILE_NAME -env ENV_ID
The response is :

And in the logs it says :
bolt.cli.CommandProcessor :: EndExecutingVerb (Success: False, Execution Time(ms): 984)
bolt.Session :: HTTP Status:BadRequest, ServiceRequestId: SERVICE_REQUEST_ID [0x80048408:InvalidStateCodeStatusCode] 2 is not a valid status code for state code botcomponentState.Active on botcomponent with Id ID.|EXCEPTION: Microsoft.Bot.Platform.Content.Exceptions.DataverseBadRequestException: HTTP Status:BadRequest, ServiceRequestId: SERVICE_REQUEST_ID [0x80048408:InvalidStateCodeStatusCode] 2 is not a valid status code for state code botcomponentState.Active on botcomponent with Id ID.
On the other hand, if I try this technique again, but this time with a blank copilot (created using copilot studio), then the technique works and my new copilot is well created.
Any advice or guidance would be greatly appreciated.
Thank you.