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
404 stars 195 forks source link

[Issue] Failure when deploying template todo-nodejs-mongo-swa-func #723

Closed ricardocovo closed 2 years ago

ricardocovo commented 2 years ago

Output from azd version azd version 0.0.1-beta.1651716 (commit 68f62f04440b519ba199ef5181b3722573d72c64)

Output from az version

{
  "azure-cli": "2.40.0",
  "azure-cli-core": "2.40.0",
  "azure-cli-telemetry": "1.0.8",
  "extensions": {
    "azure-dev": "0.0.1b1512746",
    "azure-devops": "0.25.0"
  }
}

Describe the bug The azd deploy command is looking for the wrong resource group.

Here is the error (my env name is 'severless'):

Error: deploying service api: deploying service api package: failed deploying function app: exit code: 3, stdout: , stderr: ERROR: (ResourceGroupNotFound) Resource group 'serverlessrg' could not be found. Code: ResourceGroupNotFound Message: Resource group 'serverlessrg' could not be found.

To Reproduce Try to run the template, either by azd up, or by running the steps individually.

Expected behavior The expected behaviour is for the deployment to complete

rajeshkamal5050 commented 2 years ago

Output from azd version azd version 0.0.1-beta.1651716 (commit https://github.com/Azure/azure-dev/commit/68f62f04440b519ba199ef5181b3722573d72c64)

@ricardocovo looks like you have a very old version of azd. Can you try with the latest bits? https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_0.2.0-beta.1

ricardocovo commented 2 years ago

Thanks @rajeshkamal5050! I retried and the new version fixed the issue.