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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Platform Build T...
Power Apps
Unanswered

Power Platform Build Tools (1.0.13) backup Environment task

(2) ShareShare
ReportReport
Posted on by 4

Hello,

We are using Azure DevOps Power Platform Build Tools (1.0.13) extension.

We are currently trying to use the following step : "Power Platform Backup Environment" and we would like to know when the feature using the service principal name will be available?

We're using at the moment a service account and the MFA is not supported with this authentication type.

We have read this documentation : https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tool-tasks#power-platform-backup-environment.

Do you have a narrower timeline for the availability of this feature ?

Many thanks in advance!

I have the same question (0)
  • sit-md Profile Picture
    26 on at

    Struggeling with the same issue for Dynamics 365. Performing this task with a service principal is not possible at the moment.

  • KimB Profile Picture
    32 on at

    We are having the same issue. Not possible (yet).

    Would be nice to know if this will be supported in the near future.

  • JeffCarma Profile Picture
    53 on at

    I also am having trouble. I'm using version 1.0.23 and was under the impression that SPN auth *was* supported for Backups.

    I'm getting an error in Azure DevOps about permissions and I assume the reason is that SPN auth is actually not supported.

     

    Can anyone confirm?

     

    Message=The service principal with id 'AzureAD ID Redacted' for application does not have permission to access the path 'https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/56a8d75e-20a9-48f2-8ae4-8c04d5e3215d/backups?api-version=2019-05-01' in tenant ***.; Internal=System.Net.HttpWebResponse}

  • Community Power Platform Member Profile Picture
    on at

    I am running in the to same issue. I am using version 0.0.23.

     
    2021-04-29T22:26:15.2045790Z Task         : Power Platform Backup Environment
    2021-04-29T22:26:15.2046092Z Description  : Power Platform Backup Environment
    2021-04-29T22:26:15.2046333Z Version      : 0.0.23
    2021-04-29T22:26:15.2046761Z Author       : Microsoft
    2021-04-29T22:26:15.2047066Z Help         : [More Info](https://aka.ms/buildtoolsdoc)
     
    Message=The service principal with id 'GUID' for application  does not have permission to access the path 'https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/GUID/backups?api-version=2019-05-01' in tenant ***.; Internal=System.Net.HttpWebResponse}
  • JeffCarma Profile Picture
    53 on at

    I just broke down and created another generic service connection in AzureDevOps (Username/password). The unfortunate thing is that MFA can't be used with the U/P service connection and you end up having two for a single environment. Not optimal of course.

  • JeffCarma Profile Picture
    53 on at

    To close the loop on this one. It seems the latest update now allows you to use service principal auth and use the Power platform Backup Environment task to do backups in your own tenant. I have been able to remove all the Generic username/password Service connections from my DevOps instance. 

  • sit-md Profile Picture
    26 on at

    @JeffCarma Did you actually test this successfully? The option to use a service principal has been around for a while but when actually executing the task so far I've always ran into an error. Would be wonderful if that finally works as expected.

  • JeffCarma Profile Picture
    53 on at

    Yes @sit-md , I converted all of my Backup steps last week to Service Principal authentication. Unless there's something going on I can't see, it seems to be working for me. I just ran a backup to show you it worked.

    Is it still not working for you?

     

    JeffCarma_0-1629299186564.png

    Here's a snip from the job step output during the execution.

    JeffCarma_2-1629299335904.png

     

    JeffCarma_1-1629299233903.png

     

  • sit-md Profile Picture
    26 on at

    Unfortunately I still get an error message (probably due to a lack of permissions):

     

    The service principal with id '***' for application *** does not have permission to access the path 'https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/***/backups?api-version=2019-05-01' in tenant ***.; Internal=System.Net.HttpWebResponse"
     
    Any ideas what permission is missing for the service principal?
  • JeffCarma Profile Picture
    53 on at

    I have set the application user as a System Administrator per the docs. Sorry it's not working for you.

    https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tools

     

    Ensure that the added Application User has the system administrator role assigned (available from “Manage Roles” in the security settings for the application user).

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard