Skip to content

Disable update checks for Cloud Shell managed tools - #657

Merged
Scott Kool (ComradeCow) merged 1 commit into
masterfrom
comradecow/disable-update-checks
Nov 16, 2026
Merged

Scott Kool (ComradeCow) merged 1 commit into
masterfrom
comradecow/disable-update-checks

Conversation

@ComradeCow

@ComradeCow Scott Kool (ComradeCow) commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Disable Az upgrade checks in the PowerShell launch profile for the current process without changing saved user settings.
  • Set container environment variables to disable update notifications for Terraform, GitHub CLI and extensions, npm, pip, and Microsoft 365 CLI.
  • Disable .NET workload advertising downloads and Azure CLI Bicep version checks for runtime users.
  • Keep the existing PowerShell update-check setting in the Dockerfile and group it with the other settings.
  • Add regression coverage for PowerShell and Az update-check settings.

Terraform's Checkpoint setting also disables Checkpoint alerts. Explicit image-build updates remain enabled.

Validation

  • PowerShell syntax parsing and git diff --check passed.
  • Ran commands as privileged user inside local container and did not see update notifications.

Resolve #510

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Image size with this change is base: 6186MB, tools: 9855MB.

Comment thread linux/tools.Dockerfile
ENV CHECKPOINT_DISABLE=1 \
POWERSHELL_UPDATECHECK=Off \
GH_NO_UPDATE_NOTIFIER=1 \
GH_NO_EXTENSION_UPDATE_NOTIFIER=1 \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are users able to upgrade GitHub extensions on their own? They can for Az CLI extensions. If so, maybe we should keep those notifications.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't block the user from upgrading stuff manually. It just will stop a message from coming up in every CloudShell session until we push an update that happens to have latest.

@ComradeCow
Scott Kool (ComradeCow) merged commit 8145561 into master Nov 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cloud shell is not running the latest version and cannot be upgraded.

3 participants