Skip to content
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

Misleading message when creating functionapp #8889

Closed
zikalino opened this issue Mar 27, 2019 · 3 comments · Fixed by #24627
Closed

Misleading message when creating functionapp #8889

zikalino opened this issue Mar 27, 2019 · 3 comments · Fixed by #24627
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions az functionapp Functions-cli Service Attention This issue is responsible by Azure service team.

Comments

@zikalino
Copy link

Describe the bug
When creating functionapp you try to specify --deployment-container-image-name httpd without passing --plan that is is_linux, Azure CLI resoponds with following message, which is quite misleading:

usage error: --runtime RUNTIME required for linux functions apps without custom image.

To Reproduce

az group create --name zimsfromclixx --location westeurope

az storage account create --name zimsstoragefromclixx --location westeurope --resource-group zimsfromclixx --sku Standard_LRS

az functionapp create --resource-group zimsfromclixx --os-type Linux --name zimsfromclixx --deployment-container-image-name httpd --storage-account zimsstoragefromclixx

Expected behavior
Argument --deployment-container-image-name should not be just ignored.
The message should be perhaps "Argument --deployment-container-image-name can be only specified with plan that is_linux" or something like this.

Environment summary
CloudShell

Additional context
Add any other context about the problem here.

@adewaleo adewaleo changed the title Misleadning message when creating functionapp Misleading message when creating functionapp Mar 27, 2019
@adewaleo adewaleo added bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions az functionapp labels Mar 27, 2019
@ankitkumarr
Copy link
Contributor

Hi @zikalino, I am unable to reproduce this bug in cloudshell. On running something like- az functionapp create --resource-group zimsfromclixx --os-type Linux --name zimsfromclixx --deployment-container-image-name httpd --storage-account zimsstoragefromclixx,
I get this error-
usage error: --plan NAME_OR_ID | --consumption-plan-location LOCATION

which is expected. Did you have any additional param?

On providing a --plan, it works fine for me.

@zikalino
Copy link
Author

zikalino commented Apr 2, 2019

@ankitkumarr I can recheck that. perhaps something got updated in a meanwhile. or something is different in my subscription. I think if I haven't specified --plan it was either creating a default one or finding one in the subscription. I am not sure now.

@ankitkumarr
Copy link
Contributor

@zikalino, I think you might have specified --consumption-plan-location. If you specify that, you cannot have custom image. So, that's why --consumption-plan-location was ignored and you got that error message.
I agree that the error message should be clear and let people know that you shouldn't use --consumption-plan-location and --deployment-container-image-name at the same time. We should fix that. Thanks for the report!

\cc @ahmedelnably

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Jun 14, 2019
@mozehgir mozehgir added the App Services az appservice label Jul 5, 2019
@ahmedelnably ahmedelnably removed App Services az appservice labels Jul 15, 2019
@haroldrandom haroldrandom added bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions-cli Service Attention This issue is responsible by Azure service team. labels Oct 25, 2019
@ahmedelnably ahmedelnably added the Functions az functionapp label Nov 5, 2019
RakeshMohanMSFT added a commit to RakeshMohanMSFT/azure-cli that referenced this issue Nov 11, 2022
@RakeshMohanMSFT RakeshMohanMSFT self-assigned this Nov 11, 2022
avgale pushed a commit to avgale/azure-cli that referenced this issue Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions az functionapp Functions-cli Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants