Azure Quickstart-malene er for øyeblikket tilgjengelige på engelsk
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.
Denne Azure Resource Manager (ARM)-malen ble opprettet av et medlem av fellesskapet og ikke av Microsoft. Hver ARM-mal er lisensiert til deg i henhold til en lisensavtale med eieren, ikke med Microsoft. Microsoft er ikke ansvarlig for ARM-maler som leveres og lisensieres av medlemmer og siler dem ikke ut med tanke på sikkerhet, kompatibilitet eller ytelse. Fellesskapets ARM-maler støttes ikke av noe Microsoft-støtteprogram eller -tjeneste, og er gjort tilgjengelig SOM DE ER, uten noen form for garanti.
Parametere
Parameternavn | Beskrivelse |
---|---|
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. |
Bruke malen
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 deploymentInstallere og konfigurere Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.logic/logic-app-custom-api/azuredeploy.json
Kommandolinje
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 deploymentInstaller og konfigurer Azures kommandolinjegrensesnitt for alle plattformer
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.logic/logic-app-custom-api/azuredeploy.json