## Description When creating a new blob trigger function through the VS Code extension, users input a valid container name during the creation wizard, but the container name token is being replaced with a hardcoded default value instead of the user's input. Specifically, regardless of what container name the user enters, the generated function files always contain "samples-workitems" as the container name. ## Root Cause Analysis After analyzing the codebase, the issue stems from hardcoded default values in the template system rather than proper token replacement: ### Hardcoded Template Values - **Location**: Template JSON definitions (CDN templates or backup templates) - **Issue**: Blob trigger templates appear to have hardcoded "samples-workitems" as the default container name instead of using user input tokens - **Current behavior**: Token replacement occurs, but replaces with hardcoded "samples-workitems" instead of user-provided container name ### Token Replacement Flow - **Location**: `src/commands/createFunction/actionStepsV2/GetTemplateFileContentExecuteStep.ts` (line ~27) - **Process**: The `GetTemplateFileContentExecuteStep.executeAction()` method performs token replacement successfully - **Issue**: The token is being replaced with a hardcoded template default rather than the user's wizard input ### Template System Architecture - **Templates source**: CDN templates from Azure Functions team (primary) or backup templates (fallback) - **Token system**: Templates use placeholder tokens that should be replaced with user input during function creation - **Gap**: Blob trigger templates may have incorrect default values or token mapping that always resolves to "samples-workitems" ## Reproduction Steps 1. Open VS Code with Azure Functions extension 2. Create new Azure Functions project or open existing one 3. Add new function → Choose "Blob trigger" 4. Enter a valid container name when prompted (e.g., "mycontainer", "userdata", "documents") 5. Complete function creation wizard 6. **Result**: Generated function.json contains `"path": "samples-workitems/{name}"` regardless of user input 7. **Expected**: Should contain `"path": "mycontainer/{name}"` (or whatever the user entered) --- **Environment** - **Extension version**: All versions potentially affected - **VS Code version**: All supported versions - **Azure Functions runtime**: All versions (v1, v2, v3, v4) - **Languages affected**: All languages (JavaScript, TypeScript, Python, C#, Java, PowerShell) - **Template source**: Both CDN and backup templates potentially affected