Skip to content

Power Platform Delete Solution failing after success under DevOps release execution #1255

@liorabel

Description

@liorabel

Describe the bug
We have a one-off DevOps release set up to remove all Microsoft 'Customer Portal' solutions as they are no longer needed. When attempting to run this release, each of the separate solution deletion steps fails with DevOps despite actually succeeding in Power Platform / Power Apps. The solution history shows a successful solution uninstall at the same duration as the DevOps step fails.
It looks like the deletion step tries to query the deleted solution's API URL after it succeeds and fails to do so as it no longer exists.

Example failing step:

steps:
- task: microsoft-IsvExpTools.PowerPlatform-BuildTools.delete-solution.PowerPlatformDeleteSolution@2
  displayName: 'Remove CustomerService'
  inputs:
    authenticationType: PowerPlatformSPN
    PowerPlatformSPN: 'REDACTED'
    SolutionName: CustomerService
Image

Our environments are all Microsoft cloud environments under Power Platform and so is our DevOps and execution agent.

Image

I will attach the execution log as an additional comment on this bug.

To Reproduce
Steps to reproduce the behaviour:

  1. Create new DevOps release and add steps to install the Power Platform tools and configure the right connection.
Image
  1. Add another step to delete a solution from the environment.
Image
  1. It should look like this:
Image
  1. Execute the release and wait. It will succeed in Power Platform / Power Apps but will fail in DevOps.

Expected behaviour
The DevOps solution deletion should succeed and move on to the next step. This currently does not work as the deletion step fails when the Power Apps uninstall succeeds.

Screenshots
Added in-line above.

Desktop (please complete the following information):
Not relevant as this is all running in DevOps cloud. For reference we are using the 'windows-latest' agent type for the job.

Additional context
Nothing comes to mind that I haven't already mentioned above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions