Skip to content

Fix Azure activity log message when deploying to slot #4522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 20, 2025

When deploying a function app project to a deployment slot, the Azure activity log was incorrectly showing "Deploy to App..." instead of the expected "Deploy to slot...". This PR fixes the issue by customizing the activity title specifically for slot deployments.

Changes

  • Modified the deploy.ts file to detect when we're deploying to a slot by:
    1. Checking if the deployment is initiated via the deploySlot function by examining the _expectedContextValue parameter
    2. Directly checking if the deployment target is a slot via node.site.isSlot
  • When a slot deployment is detected, we override the default activity title with "Deploy to slot" instead of "Deploy to app"

Before

Before: Activity log showing "Deploy to app"

After

The activity log now correctly shows "Deploy to slot..." when deploying to a slot.

Fixes #4510.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@motm32 motm32 closed this May 20, 2025
@Copilot Copilot AI changed the title [WIP] The Azure activity log is "Deploy to App..." instead of "Deploy to slot..." when deploying project to a slot Fix Azure activity log message when deploying to slot May 20, 2025
@Copilot Copilot AI requested a review from motm32 May 20, 2025 20:54
Copilot finished work on behalf of motm32 May 20, 2025 20:54
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.

The Azure activity log is "Deploy to App..." instead of "Deploy to slot..." when deploying project to a slot
2 participants