sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Code sample in docs and GitHub code samples not up to date with latest implementations (o365 vs m365)

Open MathieuMarchant opened this issue 5 years ago • 4 comments

  • [ ] In the docs the code samples have more recent code, using the m365 CLI, compared to the code which is linked in the GitHub article residing in the master branch using o365 CLI.

  • [ ] The login script already holds the app catalog URL which is not aligned with the latest implementation. This parameter should be removed. Otherwise the deploy fails on this step. - script: m365 login $(m365_app_catalog_site_url) --authType password --userName $(m365_user_login) --password $(m365_user_password) displayName: Login to Microsoft 365

  • [ ] It should also be stated that the first time you want to use the configured m365 user to login, you should do it with an interactive login on a device, so you are able to grant the "PnP Management Shell" app. Otherwise you are never able to login from the pipeline, which will produce this type of error.

Error: AADSTS65001: The user or administrator has not consented to use the application with ID '31359c7f-bd7e-475c-86db-fdb8c937548e' named 'PnP Management Shell'. Send an interactive authorization request for this user and resource.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MathieuMarchant avatar Apr 12 '21 13:04 MathieuMarchant

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Apr 12 '21 13:04 ghost

Good feedback... with the name change, there were bound to be some things that slipped through the cracks. Care to submit PR's to help fix these things?

andrewconnell avatar Apr 13 '21 10:04 andrewconnell

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.

ghost avatar Dec 30 '21 15:12 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 06 '22 18:01 ghost