Skip to content

Azure Function - Unclear error on deployment if invalid resource group name specified. #11893

@mcollier

Description

@mcollier

Describe the bug
When executing the command below, if the specified resource group does not exist, an error is returned. The error message is very unclear as to what the problem is (invalid resource group).
az functionapp deployment source config-zip -g "this-rg-does-not-exist" -n CSEFeedbackFunctionApp123 --src "C:\src\msft\csefeedback-function-wrong-rg-name\bin\Debug\netcoreapp2.1\MyFunction.zip"

To Reproduce

  • Create an Azure Function app
  • Create an Azure Function (e.g. HTTP-triggered function)
  • Zip the function content
  • Deploy using Azure CLI

Expected behavior
If an invalid resource group is specified, the error message should indicate that the resource group is invalid or doesn't exist.

Environment summary
Windows 10 1909
Azure CLI version 2.0.80

Additional context
Similar to #10773 and #10639

Metadata

Metadata

Assignees

No one assigned

    Labels

    Functionsaz functionappService AttentionThis issue is responsible by Azure service team.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions