Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
396 stars 190 forks source link

[Issue] Azure Function creation issue with Flex Consumption #4278

Open DilLip-Chowdary-Codes opened 2 weeks ago

DilLip-Chowdary-Codes commented 2 weeks ago

Output from azd version azd version 1.9.4 (commit 60d7a770c73289e303a539babf5965e638843227)

Describe the bug I'm trying to create a function app using flex consumption plan by following this doc, while doing so i got the below error

Command:

az functionapp create --resource-group application-pocs --name application-poc-flex --storage-account applicationpocs --flexconsumption-location southeastasia --runtime python --runtime-version 3.11

Output

Argument '--flexconsumption-location' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Readonly attribute name will be ignored in class <class 'azure.mgmt.web.v2023_01_01.models._models_py3.AppServicePlan'>
Creating deployment storage account container 'app-package-applicationpocflex-9234990' ...
Application Insights "application-poc-flex" was created for this Function App. You can visit https://portal.azure.com/#resource/subscriptions/<subscription_id>/resourceGroups/application-pocs/providers/microsoft.insights/components/application-poc-flex/overview to view your Application Insights component
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.

Gateway Timeout({"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.Web' within the specified time period."}})

To Reproduce I'm not sure if this occurs again, but i've followed the same steps mentioned in the above referenced doc.

Expected behavior Function should be created without any errors

Environment Information on your environment:

### Tasks
rajeshkamal5050 commented 2 weeks ago

@DilLip-Chowdary-Codes the mentioned doc and its commands refer to azure cli(az) and not azure developer cli(azd). Can you clarify?

Also, azd since 1.9.4 supports deploying flex-consumption function apps natively - https://github.com/Azure/azure-dev/pull/4003

cc @weikanglim

microsoft-github-policy-service[bot] commented 1 week ago

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!