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
Regular 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
Regular Visitor

Thanks, that fixed it for me.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,466)