serverless / serverless/examples

Azure example fails to deploy

Open
#151 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.5k
Forks
4.4k
Avg merge
2h 55m
Merged PRs (30d)
3

Description

Following the instructions with these steps I get an error:

npm i -g azure-cli
azure login
azure account show
azure ad sp create -n NAME -p PASSWORD
azure role assignment create --objectId bad1234dad5678cab -o Contributor

azure account show gives the expected result at this point, and I set up my environment variables.

and then in the examples/azure-node-simple-http-endpoint directory, after editing serverless.yml to include my Azure credentials.

npm install
serverless deploy

But the end result is a failure I can only see in the Azure web console. "Website with given name azfx-node-http already exists"

The serverless debug output only includes this: 'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in examples/azure-node-simple-http-endpoint and inspect serverless.yml alongside the documented npm, Azure CLI, and serverless deploy steps. Reproduce the deployment and use the Azure web console's deployment operations, as suggested by the debug output, to determine why the website name already exists; done means the example deploys successfully or clearly documents the required name change.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, javascript, node.js
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.