რედაქტირება

გაზიარება არხიდან:


Azure CLI Samples

These end-to-end Azure CLI scripts are provided to help you learn how to provision and manage the Azure resources required by Azure Functions. You must use the Azure Functions Core Tools to create actual Azure Functions code projects from the command line on your local computer and deploy code to these Azure resources. For a complete end-to-end example of developing and deploying from the command line using both Core Tools and the Azure CLI, see one of these language-specific command line quickstarts:

The following table includes links to bash scripts that you can use to create and manage the Azure resources required by Azure Functions using the Azure CLI. These scripts are maintained in the Azure-Samples/azure-cli-samples GitHub repository.

Create app Description
create-function-app-flex-consumption.sh Creates a function app in a Flex Consumption plan with a user-assigned managed identity. This is the recommended serverless hosting plan.
create-function-app-consumption.sh Creates a function app in a Consumption plan.
create-function-app-premium-plan.sh Creates a function app in a Premium (Elastic Premium) plan.
create-function-app-app-service-plan.sh Creates a function app in a dedicated App Service plan.
Connect to services Description
create-function-app-connect-to-storage-account.sh Creates a function app in a Flex Consumption plan and connects it to a storage account using managed identity.
create-function-app-connect-to-cosmos-db.sh Creates a function app in a Flex Consumption plan and connects it to Azure Cosmos DB using managed identity and RBAC.
connect-azure-openai-resources.sh Creates a function app in a Flex Consumption plan and connects it to Azure OpenAI using managed identity.
functions-cli-mount-files-storage-linux.sh Creates a Linux function app and mounts an Azure Files share, which lets you leverage existing data or machine learning models in your functions.
Deploy code Description
deploy-function-app-with-function-github-continuous.sh Creates a function app in a Consumption plan and deploys code from a public GitHub repository.