Cli-microsoft365: Bug report: spo app add does not return App Id only anymore

Created on 14 Jan 2021  路  5Comments  路  Source: pnp/cli-microsoft365

Description

The command spo app add allow to upload .sppkg file into an Apps Catalog.
This command returns some information once done.

Steps to reproduce

Launch the command m365 spo app add ...

Expected result

Return the GUID of the uploaded app only

Actual result

The command return Unique Id: [UID]

Note: replace [GUID] with the GUID of the app

For the case of the custom scripts to deploy app, the current solution is to replace UniqueId: but in the case of the GitHub Action, it is not possible and that does not work anymore

Example to remove UniqueId in bash:

appId=$(m365 spo app add --filePath ./my-app.sppkg --scope sitecollection --appCatalogUrl $siteUrl)
appId="${appId/UniqueId: /}"

Environment

bug work in progress

All 5 comments

Thanks you for letting us know @Laul0 apologies for the trouble we will take a look ASAP.

Has this changed recently?

Approximately 1 week ago

It seems like we've unintentionally changed the command output during a refactoring last November. We should revert our change to prevent breaking changes in minor versions and reconsider the current implementation for v4 later this year.

Hey @Laul0, we've just released a new preview version with this bug fixed. Current version will be released at the end of the month. Once again, thank you for reporting the issue and sorry for the trouble.

Was this page helpful?
0 / 5 - 0 ratings