The Azure Quickstart templates are currently available in English

Call custom APIs from Azure Logic Apps

Data ultimo aggiornamento: 26/08/2019

Although Logic Apps provides hundreds of connectors for various services, you might want to call APIs that run your own code. One of the easiest and most scalable ways to host your own web APIs is by using Azure App Service. This template deploys a Web app for your custom API and secures that API by using Azure Active Directory authentication.

Questo modello di Azure Resource Manager è stato creato da un membro della community e non da Microsoft. Ogni modello di Azure Resource Manager viene concesso in licenza ai sensi di un contratto di licenza a cura del proprietario e non di Microsoft. Microsoft non è responsabile dei modelli di Azure Resource Manager forniti e concessi in licenza da membri della community e non ne verifica la sicurezza, la compatibilità o le prestazioni. I modelli di Azure Resource Manager della community non sono supportati nell'ambito di alcun programma o servizio di supporto tecnico Microsoft e vengono resi disponibili COSÌ COME SONO senza garanzie di alcun tipo.

Parametri

Nome parametro Descrizione
tenantId The tenant ID that you Azure subscription is in.
webAppName The name of the Web app.
webAppClientId The client ID of the application identity that is used to secure the Web app.
logicAppName The name of the logic app to create.
logicAppClientID The client ID of the application identity that the Logic app has to call your Web app.
logicAppClientSecret The client secret (key or password) of the application identity that the Logic app has to call your Web app.
svcPlanName The name of the App Service plan to create for hosting the logic app.
sku The pricing tier for the App Service plan.
svcPlanSize The instance size of the app.
location Location for all resources.

Usa il modello

PowerShell

New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deployment
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-logic-app-custom-api/azuredeploy.json
Installare e configurare Azure PowerShell

Riga di comando

az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deployment
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-logic-app-custom-api/azuredeploy.json
Installare e configurare l'interfaccia della riga di comando multipiattaforma di Azure