Forum Discussion
NilsJJ
Aug 14, 2023Copper Contributor
Azure Functions permissions and costs
Hello guys,
I am new to azure functions. There are a few questions that I cannot find answers to in the docs.
Costs
Do I have to pay when I create a new Azure Function? (Not the app) Do I pay for test runs?
Permissions
I have a licence from my company but I do get errors when creating a new function:
"The function is unavailable for editing in the portal. Click to download app content and use a local development environment to fix the function."
I do have a local environment with VS Code but do not have permissions to edit the files.
What permissions do I need to create a function? What permissions do I need to edit files locally (and where can they be adjusted) ?
- Creating a new Azure Function itself does not incur costs. However, there are costs associated with the execution and consumption of resources when your function is triggered. Azure Functions pricing is based on the consumption plan, where you pay only for the compute resources used during the execution of your functions. You are billed based on the number of executions, execution time, and memory consumed by your functions.
Regarding test runs, if you are testing your functions locally using tools like Azure Functions Core Tools or Visual Studio Code, you won't be charged by Azure for those local tests. The consumption costs apply when the functions are executed in the Azure cloud.
The error message you're encountering when creating a new function in the Azure portal might be related to permissions in your Azure subscription.
- Iain_U_BCopper Contributor
For the permissions question, did you check if you are running from a package?
You'll see this under Code+Test
"Your app is currently in read only mode because you are running from a package file. To make any changes update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting." In a very common way, Azure charge in a pay-as-you-go way, which is reosurce based such as HDD, CPU, RAM, network, etc.
In other words, your new function and local test will NOT incur charges
- RobinaIron ContributorCreating a new Azure Function itself does not incur costs. However, there are costs associated with the execution and consumption of resources when your function is triggered. Azure Functions pricing is based on the consumption plan, where you pay only for the compute resources used during the execution of your functions. You are billed based on the number of executions, execution time, and memory consumed by your functions.
Regarding test runs, if you are testing your functions locally using tools like Azure Functions Core Tools or Visual Studio Code, you won't be charged by Azure for those local tests. The consumption costs apply when the functions are executed in the Azure cloud.
The error message you're encountering when creating a new function in the Azure portal might be related to permissions in your Azure subscription.