Skip to content

[functionapp] Fix deletion of Flex Consumption always-ready instances with colon-separated names#10023

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/issue-32148-fix-deletion-problem
Draft

[functionapp] Fix deletion of Flex Consumption always-ready instances with colon-separated names#10023
Copilot wants to merge 2 commits into
mainfrom
copilot/issue-32148-fix-deletion-problem

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

az functionapp scale config always-ready delete silently failed to remove always-ready entries whose names contain a colon (e.g. function:Function1), while http deletion worked. The ARM API may normalize function names to lowercase on storage, causing the original case-sensitive not in filter to miss the entry.

Changes

  • src/functionapp/ — Overrides az functionapp scale config always-ready delete in the functionapp extension with a fixed implementation:
    • Case-insensitive name matching: compares x["name"].lower() against a lowercased set of setting_names, handling any ARM-side normalization
    • Explicit API version 2023-12-01: the original command in older CLI builds used 2023-01-01, which does not reliably return functionAppConfig.scaleAndConcurrency.alwaysReady
    • Safe navigation: uses .get() chaining throughout so missing functionAppConfig/scaleAndConcurrency keys don't raise KeyError
# Previously silently a no-op; now correctly removes the entry
az functionapp scale config always-ready delete \
  --resource-group MyRG --name MyApp \
  --setting-names function:Function1

Related command

az functionapp scale config always-ready delete

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (azdev required; see .azure-pipelines/templates/azdev_setup.yml for the install command until azdev==0.2.11b1 is on PyPI)
  • My extension version conforms to the Extension version schema

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 22, 2026

Copy link
Copy Markdown
⚠️Azure CLI Extensions Breaking Change Test
⚠️functionapp
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd functionapp scale sub group functionapp scale added

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @copilot,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

Copilot AI changed the title [WIP] Fix issue with deleting Azure Functions Flex Consumption instance [functionapp] Fix deletion of Flex Consumption always-ready instances with colon-separated names Jun 22, 2026
Copilot AI requested a review from a0x1ab June 22, 2026 23:08
@yonzhan

yonzhan commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

functionapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants