Skip to content

Commit d059409

Browse files
authored
Add some metadata to the deploy command (#4581)
1 parent 9ab3fec commit d059409

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/commands/deploy/deploy.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,21 @@ async function deploy(actionContext: IActionContext, arg1: vscode.Uri | string |
6767
action: CodeAction.Deploy,
6868
defaultAppSetting: 'defaultFunctionAppToDeploy',
6969
projectPath,
70+
activityAttributes: {
71+
"description": "Deploys application code to an Azure Functions app using deployment methods such as zip deployment, Azure CLI, or GitHub Actions. This action publishes the app to the specified Function App resource, making it live in the target environment.",
72+
"troubleshooting": [
73+
"Deployment succeeds but the app fails to start — check Application Insights or log stream for runtime errors.",
74+
"Deployment fails due to '403 Forbidden' or '401 Unauthorized' — verify the publishing profile, service principal, or deployment credentials have appropriate permissions.",
75+
"Code changes are not reflected — ensure you're not deploying to a staging slot or that deployment caching isn't interfering.",
76+
"Missing or invalid host.json or function.json — validate your app's structure and configuration files.",
77+
"Dependencies not installed — make sure your build step restores packages before deployment (e.g., npm install, pip install).",
78+
"Cold start latency after deployment — this is normal for Consumption Plan apps and usually resolves after the first few executions.",
79+
"Function runtime version mismatch — verify the target runtime version in Azure matches your local dev/runtime settings.",
80+
"Zip deployment fails with 'conflicting changes' — ensure no simultaneous deployments or file locks are interfering.",
81+
"Continuous deployment stuck or outdated — check your deployment center logs for GitHub/DevOps pipeline issues.",
82+
"App Service Plan quota exceeded — check if the Function App’s resource usage has hit limits for memory, CPU, or file system."
83+
]
84+
},
7085
...(await createActivityContext())
7186
});
7287

0 commit comments

Comments
 (0)