Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Error publishing Teams App using teamsfx-cli
Hello,
I'm currently developing a Teams App, and I'm trying to setup a CI pipeline to validate the app and publish it to our organization, I'm trying to achieve this using teamsfx-cli 2.0.1.
I created a separate account, disabled MFA, made this account the owner of the App registered in Azure and in Teams development portal.
All the required environment variables for teamsfx-cli are set:
CI_ENABLED=true
M365_ACCOUNT_NAME=******@email.com
M365_ACCOUNT_PASSWORD=cipassword
M365_TENANT_ID=tenantId
I'm able to validate and package the app correctly, but when I try to publish it using:
teamsfx publish --env test --verbose
I receive the following error:
AppStudioPlugin.DeveloperPortalAPIFailed: API call to Developer Portal failed: Error, Failed to get license information for the user. Ensure user has a valid Office365 license assigned to them., API name: publish-app, X-Correlation-ID: b965633d-442b-4609-9457-xxxxxx. This may come from some intermittent service error. Please wait for a few minutes and retry the current step. data: {"error":{"code":"Forbidden","message":"Failed to get license information for the user. Ensure user has a valid Office365 license assigned to them.","innerError":{"date":"2023-07-03T09:43:45","request-id":"e7164fba-09e9-4923-b280-xxxx","client-request-id":"e7164fba-09e9-4923-b280-xxxx"}}}
The error doesn't make much sense to me, why would this account require an Office 365 license?
I tried to do exactly the same (create a separate account for CI, without any added license) on my Microsoft 365 Dev Center tenant, and it simply worked, I could use the account to publish Apps to my organisation without having to add an Office 365 license to it.
What could be the issue here?
If any information is required, please ask and I'll provide as soon as possible.
Thanks for the help!
Microsoft 365 and Office | Development | Other
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
Additional features, settings, or issues not covered by specific Microsoft Teams categories