how to create azure function with docker image and consumption-plan

chaowen guo 16 Reputation points
2021-06-14T11:14:53.2+00:00

I use the following command to create azure function:

az group create -n azurefun -l westus
az storage account create -n azurefun -g azurefun -l westus
az functionapp create -n azurefunazurefun -s azurefun -g azurefun -c westus -i chaowenguo/azurefun --functions-version 3

But I get Operation returned an invalid status 'Bad Request'

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JayaC-MSFT 5,606 Reputation points
    2021-06-14T14:48:23.947+00:00

    Hello @chaowen guo Welcome to Microsoft QnA. Thank you for the question.

    did you already follow this https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal&pivots=programming-language-csharp ?

    Also could you please confirm if you have any other windows application residing within the same resource group.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.