question

LetciaMiranda-5618 avatar image
0 Votes"
LetciaMiranda-5618 asked ·

How do I publish a function to Azure using Core Tools?


When I try to put in the Azure Cloud Shell an error appears

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Grmacjon-MSFT avatar image
0 Votes"
Grmacjon-MSFT answered ·

Hi @LetciaMiranda-5618,

The Azure Functions Core Tools supports two types of deployment: deploying function project files directly to your function app via Zip Deploy and deploying a custom Docker container. You must have already created a function app in your Azure subscription, to which you'll deploy your code. Projects that require compilation should be built so that the binaries can be deployed. Remember, you must have the Azure CLI installed locally to be able to publish to Azure from Core Tools.

Please follow these steps outlined in this documentation" Work with Azure Functions Core Tools" to learn how to deploy your function project

Hope that helps. Let us know if you have further questions.

Thanks,

Grace


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LetciaMiranda-5618 avatar image
0 Votes"
LetciaMiranda-5618 answered ·

Does Azure Cli need to be installed on my computer to work? @Grmacjon-MSFT

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LetciaMiranda-5618 avatar image
0 Votes"
LetciaMiranda-5618 answered ·

I am taking the course to create serverless applications in Microsoft Learn and there is asking to do so, and the Azure Power Shell appears in the corner of the screen and when I try to follow the instructions of the Azure Cli, an error appears @Grmacjon-MSFT

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The easiest way to get started with the Azure CLI is by running it in an Azure Cloud Shell environment through your browser. To learn about Cloud Shell, see Quickstart for Bash in Azure Cloud Shell.

When you're ready to install the CLI, see the installation instructions.

After installing the CLI for the first time, check that it's installed and you've got the correct version by running az --version.


What errors are you seeing?


0 Votes 0 ·
LetciaMiranda-5618 avatar image
0 Votes"
LetciaMiranda-5618 answered ·

It appears that some functions are null. But the exercise asks to copy what will be placed in CloudShell and when I put it wrong and I can't create it. @Grmacjon-MSFT

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.