cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
janwillemkeizer
Frequent Visitor

Error Power Platform Checker task in pipeline: Tenant '***' not found.

Hi!
 
After unsuccessfull trial and error and hours searching the web I hope maybe the bright minds of this Community can help me.
 
I'm stuck on integrating the Power Platform Checker task of the Power Platform Build Tools in my pipeline which adds a solution from my DEV environment to GIT. 
 
This is the error:
AADSTS90002: Tenant '***' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.
 
This is the YAML:
 
parameters:
nameSolutionName
  displayNameName of the Solution
  typestring
  default'<Name of the Solution>'

triggernone

pool:
  vmImage'windows-latest'

steps:
checkoutself
  persistCredentialstrue
  
taskPowerPlatformToolInstaller@0
  inputs:
    DefaultVersiontrue

taskPowerPlatformExportSolution@0
  inputs:
    authenticationType'PowerPlatformSPN'
    PowerPlatformSPN'ENV-D-INTERN-1'
    SolutionName'${{ parameters.SolutionName}}'
    SolutionOutputFile'$(Build.ArtifactStagingDirectory)\${{ parameters.SolutionName}}.zip'
    AsyncOperationtrue
    MaxAsyncWaitTime'60'

taskPowerPlatformChecker@0
  inputs:
    PowerPlatformSPN'ENV-D-INTERN-1'
    FilesToAnalyze'$(Build.ArtifactStagingDirectory)\${{ parameters.SolutionName}}.zip'
    RuleSet'0ad12346-e108-40b8-a956-9a8f95ea18c9'
 
The connection 'ENV-D-INTERN-1' is valid as the task PowerPlatformExportSolution@0 completes successfully.
 
Does anyone have an idea where I can look for a fix to this error?
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
janwillemkeizer
Frequent Visitor

Yes, I used the wrong Tenant ID in my Service Connection in Azure DevOps. At first I used the Guid of the environment in the Power Platform, but I had to use the Directory (tenant) ID of the App Registration.

View solution in original post

3 REPLIES 3
mlengenfelder1
Frequent Visitor

I'm running into this too, did you find a solution?

janwillemkeizer
Frequent Visitor

Yes, I used the wrong Tenant ID in my Service Connection in Azure DevOps. At first I used the Guid of the environment in the Power Platform, but I had to use the Directory (tenant) ID of the App Registration.

View solution in original post

mlengenfelder1
Frequent Visitor

Thanks, that fixed it for me.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,845)