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.

mlengenfelder1
Frequent Visitor

Thanks, that fixed it for me.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (2,250)