Azure-docs: Cannot publish to Azure

Created on 13 Jan 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

I keep getting 'Failed with code 403' when I try to publish to Azure

Any idea where to look for more details on what the problem is? I'm able to create a Function App directly in Azure with the subscription that I'm trying to use here.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 azure-functionsvc cxp product-question triaged

Most helpful comment

Yes, the steps are slightly different on my machine.

Here are the steps:
Select the azureFunction file to Deploy. - I select the folder that has my Azure Functions
Select subscription - I select one that I was able to create an Azure Function directly with in the portal
Select Function App in Azure. - I select Create new Function app in Azure…
Enter a globally uniques name…. - I enter one
Select a runtime - I select Node.js 10.x
Select a location for new resources - I select Central US
Then it fails with the 403.

All 3 comments

@jwill20 Thank you for your feedback. Are you getting that error after following the steps on this documentation?

Yes, the steps are slightly different on my machine.

Here are the steps:
Select the azureFunction file to Deploy. - I select the folder that has my Azure Functions
Select subscription - I select one that I was able to create an Azure Function directly with in the portal
Select Function App in Azure. - I select Create new Function app in Azure…
Enter a globally uniques name…. - I enter one
Select a runtime - I select Node.js 10.x
Select a location for new resources - I select Central US
Then it fails with the 403.

Thanks for providing additional info, @jwill20! With VS Code open, instead of attempting to directly open the "*.azureFunctions" artifact file (or the project folder that has your Functions app, which I'm not sure how you're able to do), you'll want to make sure your project is already open by going to File-> Open Folder to select your Functions project folder. With your project open in VS Code, please proceed to initiate the deployment process from the command palette.

Since this channel is more for driving improvements towards MS Docs and we didn't find any faulty steps at this time, we will now proceed to close this thread. If there are further questions regarding this matter, please consider opening a new issue on vscode-azurefunctions repo.

Was this page helpful?
0 / 5 - 0 ratings