[GH-ISSUE #2903] Add Choco App not working when using Powershell 7.4 #1435

Closed
opened 2026-03-02 13:44:10 +03:00 by kerem · 4 comments
Owner

Originally created by @jdr8 on GitHub (Sep 24, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2903

Description

When attempting to add a Choco app to a tenant, the app is added but shows as "may be still uploading" in the M365 admin portal and not published.

Reproducing steps:

  1. Applications -> Add Choco App
  2. Follow promps and add an application to the queue
  3. Go to Applications -> Application Queue and click "Deploy Now" at the top right
  4. Wait - nothing appers to say whether anything has occurred. Check logs to see below info:

Started uploading applications to tenants
Failed adding Application XXXXXXX. Error: The given key 'Content-Type' was not present in the dictionary.

Similar issue with Store App - however error shown was
Could not assign application to XXXXXXX. Error: { "_version": 3, "Message": "Invalid operation: app's PublishingState is not 'Published'.

This still showed the same in the tenant, where the application didn't appear to have uploaded.

What I'm doing as a workaround:
Changed settings in Azure Function App from 7.4 to 7.2

UPDATE: Store App not working on 7.2 either - and Choco app that did upload fails to deploy, even on 7.2. Will need to investigate further.

Environment data

Non-sponsored
Front end version number: 6.4.0
Back end version number: 6.4.0
Tried Tenant Cache Clear: false
Tried Token Cache Clear: false
Originally created by @jdr8 on GitHub (Sep 24, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2903 ### Description When attempting to add a Choco app to a tenant, the app is added but shows as "may be still uploading" in the M365 admin portal and not published. Reproducing steps: 1) Applications -> Add Choco App 2) Follow promps and add an application to the queue 3) Go to Applications -> Application Queue and click "Deploy Now" at the top right 4) Wait - nothing appers to say whether anything has occurred. Check logs to see below info: Started uploading applications to tenants Failed adding Application XXXXXXX. Error: The given key 'Content-Type' was not present in the dictionary. Similar issue with Store App - however error shown was Could not assign application to XXXXXXX. Error: { "_version": 3, "Message": "Invalid operation: app's PublishingState is not 'Published'. This still showed the same in the tenant, where the application didn't appear to have uploaded. What I'm doing as a workaround: Changed settings in Azure Function App from 7.4 to 7.2 UPDATE: Store App not working on 7.2 either - and Choco app that did upload fails to deploy, even on 7.2. Will need to investigate further. ### Environment data ```PowerShell Non-sponsored Front end version number: 6.4.0 Back end version number: 6.4.0 Tried Tenant Cache Clear: false Tried Token Cache Clear: false ```
Author
Owner

@github-actions[bot] commented on GitHub (Sep 24, 2024):

Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug."

Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".

<!-- gh-comment-id:2370283667 --> @github-actions[bot] commented on GitHub (Sep 24, 2024): Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/ If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug." Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@jdr8 commented on GitHub (Sep 24, 2024):

I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.

<!-- gh-comment-id:2370297802 --> @jdr8 commented on GitHub (Sep 24, 2024): I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 4, 2024):

This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.

<!-- gh-comment-id:2392648296 --> @github-actions[bot] commented on GitHub (Oct 4, 2024): This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2024):

This issue was closed because it has been stalled for 14 days with no activity.

<!-- gh-comment-id:2421082004 --> @github-actions[bot] commented on GitHub (Oct 18, 2024): This issue was closed because it has been stalled for 14 days with no activity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1435
No description provided.