Hi Brian Lemaster,
There are a couple of issues with your script.
- ‘volume’ is misspelled or not recognized by the system:
- The command az containerapp volume create is incorrect. The correct command should be az containerapp update with the appropriate volume mount configuration.
- Unrecognized arguments: --volume-mounts:
- The --volume-mounts argument is not valid for the az containerapp update command. Instead, you need to use the --yaml option to specify the volume mounts in a YAML configuration file.
- Create the Container App: This part of your script remains the same.
- Create a YAML Configuration File: This file specifies the volume mount configuration.
- Update the Container App: Use the az containerapp update command with the --yaml option to apply the volume mount configuration.
By using the YAML configuration file, you can correctly specify the volume mount details and avoid the errors,
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members