我正在部署一个ARM模板,其中包括:azure函数+逻辑应用程序.
以下链接我创建了一个简单的流程:来自azure函数的方法之一调用逻辑应用程序.我们将方法命名为"A".逻辑应用程序为"B":
一个电话B.
逻辑应用程序(B)包含"回调URL".方法(A)需要有一个回调URL到逻辑应用程序(B).我需要通过"复制"这个值来设置这个变量:
在我的azure app功能中,我需要将此值设置为应用程序设置.
现在,我的ARM看起来(越来越少)像这样:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
//(...)
},
"variables": {
//(...)
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
//(...)
},
{
"type": "Microsoft.Web/serverfarms",
//(...)
},
{
"apiVersion": "2015-08-01",
"type": "Microsoft.Web/sites",
"name": "[variables('functionAppName')]",
"location": "[resourceGroup().location]",
"kind": "functionapp",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
],
"resources": [
{
"apiVersion": "2015-08-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('functionAppName'))]"
],
"properties": {
"RepoUrl": "[parameters('repoURL')]",
"branch": "[variables('branch')]",
"IsManualIntegration": true
}
}
],
"properties": {
"serverFarmId": …Run Code Online (Sandbox Code Playgroud) azure azure-resource-manager azure-logic-apps azure-functions
我在ASP.NET-Core中创建了一个项目.已配置项目,文件夹wwwroot仅包含本地文件等*.html, *.css, *.js.带扩展名的文件*.ts位于其他文件夹名称中scripts.一切看起来像:
tsconfig.json的设置:
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"noEmitOnError": true,
"noImplicitAny": false,
"outDir": "../wwwroot/appScripts/",
"removeComments": false,
"sourceMap": true,
"target": "es5"
},
"exclude": [
"node_modules"
]
}
Run Code Online (Sandbox Code Playgroud)
一切都很好编译.如您所见:属性sourceMap(在tsconfig.json中)的值为true,并且在每个末尾*.js(由**.ts*创建)添加了sourceMapping:

app.js.map:
{
"version": 3,
"file": "app.js",
"sourceRoot": "",
"sources": [
"../../scripts/app.ts"
],
"names": [
"AppComponent",
"AppComponent.constructor"
],
"mappings": "(...)"
}
Run Code Online (Sandbox Code Playgroud)
sources好文件ts 的点数列表:
我盯着Chrome/Chrome Canary中的项目(有/没有调试 - 效果相同).然后去源(F12 - > Sources).我看到文件 …