-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az containerapp create --bind "my-app"
throws error when service has dashes in the name "-"
#6524
Comments
Thank you for opening this issue, we will look into it. |
@charris-msft Thanks for reaching out to us and reporting this issue. Could you please share the --debug output here ? |
@charris-msft I am pasting the response I received for my above PR.
|
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
My issue is essentially already covered in #6566. |
Describe the bug
Container Apps lets me create a container with dashes ("-") in the name, but then I can't reference that container in the
--bind
parameter.az containerapp create
--name "$PSQL_CLI_APP"
--image mcr.microsoft.com/k8se/services/postgres:14
--bind my-aca-pgaddon"
--environment "$ENVIRONMENT"
--resource-group "$RESOURCE_GROUP"
--min-replicas 1
--max-replicas 1
--command "/bin/sleep" "infinity"
The Binding Name can only contain letters, numbers (0-9), periods ('.'), and underscores ('_'). The length must not be more than 60 characters.
Related command
az containerapp create
Errors
The Binding Name can only contain letters, numbers (0-9), periods ('.'), and underscores ('_'). The length must not be more than 60 characters.
Issue script & Debug output
az containerapp create
--name "$PSQL_CLI_APP"
--image mcr.microsoft.com/k8se/services/postgres:14
--bind my-aca-pgaddon"
--environment "$ENVIRONMENT"
--resource-group "$RESOURCE_GROUP"
--min-replicas 1
--max-replicas 1
--command "/bin/sleep" "infinity"
The Binding Name can only contain letters, numbers (0-9), periods ('.'), and underscores ('_'). The length must not be more than 60 characters
Expected behavior
I expect the command to accept the service with a dash in the name because I was allowed to create it in the first place.
Environment Summary
azure-cli 2.50.0
core 2.50.0
telemetry 1.0.8
Extensions:
acrtransfer 1.1.0
arcdata 1.5.0
azure-dev 0.0.1b456
azure-iot 0.21.2
connectedk8s 1.3.19
connectedmachine 0.5.1
containerapp 0.3.32
containerapp-compose 0.2.2
customlocation 0.1.3
db-up 0.2.7
k8s-configuration 1.7.0
k8s-extension 1.4.1
kusto 0.5.0
portal 0.1.3
rdbms-connect 1.0.3
serviceconnector-passwordless 0.3.2
ssh 1.1.6
webapp 0.4.0
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\charris.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: