Azure / Azure/azure-cli-extensions

az containerapp CLI doesn't support adding storage volume mounts

Open
#9,127 2 comments 1 reaction 0 assignees View on GitHub
Auto-Assign bug ContainerApp customer-reported question Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

We want to mount storage file share as volume in our container app so the files can be mounted in the containers. we want to achieve this using CLI. We are aware that it works through YAML config but we don't keep our config in the YAML. Instead we directly want to use CLI to update container app with storage volume mounts.

https://learn.microsoft.com/en-us/cli/azure/containerapp?view=azure-cli-latest#az-containerapp-update(containerapp)

### Related command

az containerapp update
--name my-containerapp
--resource-group my-resourcegroup

### Errors

adding storage volume mounts through azure containerapp command doesn't seem to be supported.

### Issue script & Debug output

Currently the documentation doesn't state the support for storage volume mounts through azure CLI.

### Expected behavior

az containerapp update
--name my-containerapp
--resource-group my-resourcegroup
--storage-volume-mount "share/config.yaml"

### Environment Summary

azure-cli : 2.77.0

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.