Skip to content

[Containerapp] az containerapp function: Add function key management commands#9163

Closed
khushishah513 wants to merge 2 commits intoAzure:mainfrom
khushishah513:functionaca-keys
Closed

[Containerapp] az containerapp function: Add function key management commands#9163
khushishah513 wants to merge 2 commits intoAzure:mainfrom
khushishah513:functionaca-keys

Conversation

@khushishah513
Copy link
Copy Markdown
Contributor


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

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? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

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
Copy link
Copy Markdown

Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @khushishah513,
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.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Sep 13, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown
Contributor

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

Comment on lines +7 to +10
* 'az containerapp function list-keys': List function keys for a specific function in a container app
* 'az containerapp function update-keys': Update specific function key for a specific function in a container app
* 'az containerapp function list-hostkeys': List host keys for a container app
* 'az containerapp function update-hostkeys': Update specific host key for a container app
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

please review these commands from Nitesh/Deep as well.

Comment on lines +7 to +10
* 'az containerapp function list-keys': List function keys for a specific function in a container app
* 'az containerapp function update-keys': Update specific function key for a specific function in a container app
* 'az containerapp function list-hostkeys': List host keys for a container app
* 'az containerapp function update-hostkeys': Update specific host key for a container app
Copy link
Copy Markdown

@krishnajaju krishnajaju Sep 16, 2025

Choose a reason for hiding this comment

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

we also have master key and system keys. Instead of adding separate commands for each type of keys, can we follow the same approach as that of az functionapp keys and az functionapp function keys

My suggestion is to have only one command that handles all kinds of function keys, following the az functionapp conventions.

az containerapp function keys list/delete/set --key-type {functionKeys, hostKey, masterKey, systemKeys} [--function-name] {} [--key-name] {} [--key-value] {}

  • if keyType is functionKeys, --function-name becomes mandatory parameter, else it is optional.
  • keyType is mandatory parameter
  • list --> to view all keys with given keyType
  • delete --> delete a key with given keyType and keyName (keyName required only when keyType is functionKeys. Is it possible to delete master key, host key in case of other Functions SKUs using az functionapp keys command?
  • set --> add new key or update existing key. (Only update operation supported in host and master key. Add or update supported in functionKeys)
  • function-name, key-name and key-value parameters will be applicable only in certain combination of commands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@khushishah513 khushishah513 deleted the functionaca-keys branch September 22, 2025 07:34
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 ContainerApp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants