Hi Krishnedu,
How did you resolved the issue? I am also facing the same error while deploying the package to the UAT environment.
In my release pipeline I have given the reference name as (Upload) in output variables section in Upload to asset library pipeline steps. I have passed $(Upload.FileAssetId) value in Lcs file asset id field of Dynamics Lifecycle Services (LCS) Asset Deployment task . Also I am using Task version (1*).
I am able to upload the asset in LCS via pipeline but deployment is not happening due to API bad request.
Please let me know where I am missing the steps.
Error log :
2021-02-06T07:56:36.5799070Z Task : Dynamics Lifecycle Services (LCS) Asset Deployment
2021-02-06T07:56:36.5799442Z Description : Task to deploy assets from the LCS asset library to an environment
2021-02-06T07:56:36.5799769Z Version : 1.1.73
2021-02-06T07:56:36.5800008Z Author : Microsoft Corporation
2021-02-06T07:56:36.5801135Z Help : Review the Dynamics 365 for Finance and Operations [Developer Documentation](go.microsoft.com/.../
2021-02-06T07:56:36.5801692Z ==============================================================================
2021-02-06T07:56:50.6315081Z ##[warning]The names of some imported commands from the module 'AzureRM.Websites' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2021-02-06T07:56:50.6392216Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2021-02-06T07:56:50.6797636Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2021-02-06T07:56:50.6928206Z ##[warning]The names of some imported commands from the module 'AzureRM' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2021-02-06T07:56:50.6939033Z ##[warning]The names of some imported commands from the module 'LifecycleServices' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
2021-02-06T07:56:50.7387922Z Deploying asset '$(Upload.FileAssetId)' to environment '3e265815-4585-4c31-b469-a9f02b0905a1' of project '1598003'
2021-02-06T07:56:50.7428675Z Authenticating with AAD on login.microsoftonline.com/.../oauth2 for API lcsapi.lcs.dynamics.com
2021-02-06T07:56:53.3912312Z Start deployment V2
2021-02-06T07:56:54.1244646Z ##[error]API Call returned BadRequest: Bad Request
2021-02-06T07:56:54.2143400Z ##[section]Finishing: Deploy to environment Sandbox
Thanks in advance.