@microsoft/teamsfx-core 1.1.3-alpha.cef16e3d.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/deps-checker/depsChecker.d.ts +0 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +1 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +4 -1
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +0 -1
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +0 -1
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +1 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +4 -2
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +0 -8
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -41
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +4 -6
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/core/index.d.ts +0 -1
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +1 -5
- package/build/core/index.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +4 -3
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +0 -4
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +5 -15
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +0 -2
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +0 -10
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +0 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +0 -7
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +0 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -2
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +8 -13
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/bot/plugin.js +13 -10
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.d.ts +24 -7
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/blazor/constants.js +98 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/blazor/enum.js +39 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.js +2 -2
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +8 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.js +42 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +35 -0
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/plugin.js +190 -0
- package/build/plugins/resource/frontend/blazor/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +41 -0
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/errors.js +22 -10
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/messages.d.ts +4 -0
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/messages.js +4 -0
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +21 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +47 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +9 -3
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +8 -0
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +11 -1
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/index.d.ts +2 -2
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +20 -8
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -0
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +44 -7
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +18 -0
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +39 -1
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +12 -0
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/utils/azure-client.js +29 -0
- package/build/plugins/resource/frontend/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +8 -0
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +19 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +12 -8
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +9 -14
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +4 -5
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +4 -5
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +2 -11
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +8 -26
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +0 -1
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +0 -1
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +4 -2
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +5 -5
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +122 -194
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +14 -9
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +95 -75
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +0 -6
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +2 -5
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/package.json +4 -4
- package/resource/strings.json +7 -17
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +0 -1
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +5 -7
- package/templates/plugins/resource/apim/bicep/config.template.bicep +0 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +11 -15
- package/templates/plugins/resource/bot/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +2 -3
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +14 -17
- package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +1 -2
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +7 -9
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +6 -9
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +5 -8
- package/build/common/deps-checker/util/extensionInstaller.d.ts +0 -3
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +0 -1
- package/build/common/deps-checker/util/extensionInstaller.js +0 -47
- package/build/common/deps-checker/util/extensionInstaller.js.map +0 -1
- package/build/common/deps-checker/util/index.d.ts +0 -5
- package/build/common/deps-checker/util/index.d.ts.map +0 -1
- package/build/common/deps-checker/util/index.js +0 -10
- package/build/common/deps-checker/util/index.js.map +0 -1
- package/build/common/local/depsAdapter.d.ts +0 -27
- package/build/common/local/depsAdapter.d.ts.map +0 -1
- package/build/common/local/depsAdapter.js +0 -86
- package/build/common/local/depsAdapter.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +0 -81
- package/build/plugins/resource/frontend/dotnet/enum.js +0 -39
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +0 -26
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +0 -69
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +0 -35
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +0 -6
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +0 -11
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +0 -1
|
@@ -3,15 +3,14 @@ param provisionParameters object
|
|
|
3
3
|
param userAssignedIdentityId string
|
|
4
4
|
|
|
5
5
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
6
|
-
var botAadAppClientId = provisionParameters['botAadAppClientId']
|
|
7
|
-
var botServiceName = contains(provisionParameters, 'botServiceName') ? provisionParameters['botServiceName'] : '${resourceBaseName}'
|
|
8
|
-
var botServiceSku = contains(provisionParameters, 'botServiceSku') ? provisionParameters['botServiceSku'] : 'F0'
|
|
9
|
-
var botDisplayName = contains(provisionParameters, 'botDisplayName') ? provisionParameters['botDisplayName'] : '${resourceBaseName}'
|
|
10
|
-
var serverfarmsName = contains(provisionParameters, 'botServerfarmsName') ? provisionParameters['botServerfarmsName'] : '${resourceBaseName}bot'
|
|
11
|
-
var webAppSKU = contains(provisionParameters, 'botWebAppSKU') ? provisionParameters['botWebAppSKU'] : 'F1'
|
|
12
|
-
var webAppName = contains(provisionParameters, 'botSitesName') ? provisionParameters['botSitesName'] : '${resourceBaseName}bot'
|
|
6
|
+
var botAadAppClientId = provisionParameters['botAadAppClientId']
|
|
7
|
+
var botServiceName = contains(provisionParameters, 'botServiceName') ? provisionParameters['botServiceName'] : '${resourceBaseName}'
|
|
8
|
+
var botServiceSku = contains(provisionParameters, 'botServiceSku') ? provisionParameters['botServiceSku'] : 'F0'
|
|
9
|
+
var botDisplayName = contains(provisionParameters, 'botDisplayName') ? provisionParameters['botDisplayName'] : '${resourceBaseName}'
|
|
10
|
+
var serverfarmsName = contains(provisionParameters, 'botServerfarmsName') ? provisionParameters['botServerfarmsName'] : '${resourceBaseName}bot'
|
|
11
|
+
var webAppSKU = contains(provisionParameters, 'botWebAppSKU') ? provisionParameters['botWebAppSKU'] : 'F1'
|
|
12
|
+
var webAppName = contains(provisionParameters, 'botSitesName') ? provisionParameters['botSitesName'] : '${resourceBaseName}bot'
|
|
13
13
|
|
|
14
|
-
// Register your web service as a bot with the Bot Framework
|
|
15
14
|
resource botService 'Microsoft.BotService/botServices@2021-03-01' = {
|
|
16
15
|
kind: 'azurebot'
|
|
17
16
|
location: 'global'
|
|
@@ -26,7 +25,6 @@ resource botService 'Microsoft.BotService/botServices@2021-03-01' = {
|
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
// Connect the bot service to Microsoft Teams
|
|
30
28
|
resource botServiceMsTeamsChannel 'Microsoft.BotService/botServices/channels@2021-03-01' = {
|
|
31
29
|
parent: botService
|
|
32
30
|
location: 'global'
|
|
@@ -36,7 +34,6 @@ resource botServiceMsTeamsChannel 'Microsoft.BotService/botServices/channels@202
|
|
|
36
34
|
}
|
|
37
35
|
}
|
|
38
36
|
|
|
39
|
-
// Compute resources for your Web App
|
|
40
37
|
resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
41
38
|
kind: 'app'
|
|
42
39
|
location: resourceGroup().location
|
|
@@ -46,23 +43,22 @@ resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
|
|
49
|
-
// Web App that hosts your bot
|
|
50
46
|
resource webApp 'Microsoft.Web/sites@2021-02-01' = {
|
|
51
47
|
kind: 'app'
|
|
52
48
|
location: resourceGroup().location
|
|
53
49
|
name: webAppName
|
|
54
50
|
properties: {
|
|
55
51
|
serverFarmId: serverfarm.id
|
|
56
|
-
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
52
|
+
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
57
53
|
siteConfig: {
|
|
58
54
|
appSettings: [
|
|
59
55
|
{
|
|
60
56
|
name: 'SCM_DO_BUILD_DURING_DEPLOYMENT'
|
|
61
|
-
value: 'true'
|
|
57
|
+
value: 'true'
|
|
62
58
|
}
|
|
63
59
|
{
|
|
64
60
|
name: 'WEBSITE_NODE_DEFAULT_VERSION'
|
|
65
|
-
value: '~14'
|
|
61
|
+
value: '~14'
|
|
66
62
|
}
|
|
67
63
|
]
|
|
68
64
|
}
|
|
@@ -70,7 +66,7 @@ resource webApp 'Microsoft.Web/sites@2021-02-01' = {
|
|
|
70
66
|
identity: {
|
|
71
67
|
type: 'UserAssigned'
|
|
72
68
|
userAssignedIdentities: {
|
|
73
|
-
'${userAssignedIdentityId}': {}
|
|
69
|
+
'${userAssignedIdentityId}': {}
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
72
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
// Get existing app settings for merge
|
|
2
1
|
var botCurrentAppSettings = list('${provisionOutputs.botOutput.value.botWebAppResourceId}/config/appsettings', '2021-02-01').properties
|
|
3
2
|
|
|
4
|
-
// Merge TeamsFx configurations to Bot resources
|
|
5
3
|
module teamsFxBotConfig '\{{fx-resource-bot.Configuration.bot.path}}' = {
|
|
6
4
|
name: 'addTeamsFxBotConfiguration'
|
|
7
5
|
params: {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@secure()
|
|
2
2
|
param provisionParameters object
|
|
3
3
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var storageName = contains(provisionParameters, 'frontendHostingStorageName') ? provisionParameters['frontendHostingStorageName'] : '${resourceBaseName}tab'
|
|
5
|
-
var storageSku = contains(provisionParameters, 'frontendHostingStorageSku') ? provisionParameters['frontendHostingStorageSku'] : 'Standard_LRS'
|
|
4
|
+
var storageName = contains(provisionParameters, 'frontendHostingStorageName') ? provisionParameters['frontendHostingStorageName'] : '${resourceBaseName}tab'
|
|
5
|
+
var storageSku = contains(provisionParameters, 'frontendHostingStorageSku') ? provisionParameters['frontendHostingStorageSku'] : 'Standard_LRS'
|
|
6
6
|
|
|
7
|
-
// Azure Storage that hosts your static web site
|
|
8
7
|
resource storage 'Microsoft.Storage/storageAccounts@2021-06-01' = {
|
|
9
8
|
kind: 'StorageV2'
|
|
10
9
|
location: resourceGroup().location
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
// Get existing app settings and site config for merge
|
|
2
1
|
var functionCurrentConfigs = reference('${provisionOutputs.functionOutput.value.functionAppResourceId}/config/web', '2021-02-01')
|
|
3
2
|
var functionCurrentAppSettings = list('${provisionOutputs.functionOutput.value.functionAppResourceId}/config/appsettings', '2021-02-01').properties
|
|
4
3
|
|
|
5
|
-
// Merge TeamsFx configurations to Azure Functions resources
|
|
6
4
|
module teamsFxFunctionConfig '\{{fx-resource-function.Configuration.function.path}}' = {
|
|
7
5
|
name: 'addTeamsFxFunctionConfiguration'
|
|
8
6
|
params: {
|
|
@@ -60,7 +60,7 @@ resource appConfig 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
|
60
60
|
properties: {
|
|
61
61
|
cors: {
|
|
62
62
|
allowedOrigins: union(currentAllowedOrigins, [
|
|
63
|
-
tabAppEndpoint
|
|
63
|
+
tabAppEndpoint
|
|
64
64
|
])
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -69,29 +69,29 @@ resource appConfig 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
|
69
69
|
resource appSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
70
70
|
name: '${functionAppName}/appsettings'
|
|
71
71
|
properties: union({
|
|
72
|
-
API_ENDPOINT: \{{fx-resource-function.References.functionEndpoint}}
|
|
73
|
-
ALLOWED_APP_IDS: authorizedClientApplicationIds
|
|
74
|
-
M365_CLIENT_ID: m365ClientId
|
|
75
|
-
M365_CLIENT_SECRET: m365ClientSecret
|
|
76
|
-
M365_TENANT_ID: m365TenantId
|
|
77
|
-
M365_AUTHORITY_HOST: m365OauthAuthorityHost
|
|
78
|
-
M365_APPLICATION_ID_URI: m365ApplicationIdUri
|
|
79
|
-
IDENTITY_ID: \{{fx-resource-identity.References.identityClientId}}
|
|
72
|
+
API_ENDPOINT: \{{fx-resource-function.References.functionEndpoint}}
|
|
73
|
+
ALLOWED_APP_IDS: authorizedClientApplicationIds
|
|
74
|
+
M365_CLIENT_ID: m365ClientId
|
|
75
|
+
M365_CLIENT_SECRET: m365ClientSecret
|
|
76
|
+
M365_TENANT_ID: m365TenantId
|
|
77
|
+
M365_AUTHORITY_HOST: m365OauthAuthorityHost
|
|
78
|
+
M365_APPLICATION_ID_URI: m365ApplicationIdUri
|
|
79
|
+
IDENTITY_ID: \{{fx-resource-identity.References.identityClientId}}
|
|
80
80
|
{{#if (contains "fx-resource-azure-sql" plugins) }}
|
|
81
|
-
SQL_DATABASE_NAME: \{{fx-resource-azure-sql.References.databaseName}}
|
|
82
|
-
SQL_ENDPOINT: \{{fx-resource-azure-sql.References.sqlEndpoint}}
|
|
81
|
+
SQL_DATABASE_NAME: \{{fx-resource-azure-sql.References.databaseName}}
|
|
82
|
+
SQL_ENDPOINT: \{{fx-resource-azure-sql.References.sqlEndpoint}}
|
|
83
83
|
{{/if}}
|
|
84
|
-
}, currentAppSettings)
|
|
84
|
+
}, currentAppSettings)
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
resource authSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
88
88
|
name: '${functionAppName}/authsettings'
|
|
89
89
|
properties: {
|
|
90
|
-
enabled: true
|
|
90
|
+
enabled: true
|
|
91
91
|
defaultProvider: 'AzureActiveDirectory'
|
|
92
92
|
clientId: m365ClientId
|
|
93
|
-
issuer: '${oauthAuthority}/v2.0'
|
|
94
|
-
allowedAudiences: [
|
|
93
|
+
issuer: '${oauthAuthority}/v2.0'
|
|
94
|
+
allowedAudiences: [
|
|
95
95
|
m365ClientId
|
|
96
96
|
m365ApplicationIdUri
|
|
97
97
|
]
|
|
@@ -3,13 +3,12 @@ param provisionParameters object
|
|
|
3
3
|
param userAssignedIdentityId string
|
|
4
4
|
|
|
5
5
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
6
|
-
var serverfarmsName = contains(provisionParameters, 'functionServerfarmsName') ? provisionParameters['functionServerfarmsName'] : '${resourceBaseName}api'
|
|
7
|
-
var serverfarmsSku = contains(provisionParameters, 'functionServerfarmsSku') ? provisionParameters['functionServerfarmsSku'] : 'Y1'
|
|
8
|
-
var functionAppName = contains(provisionParameters, 'functionWebappName') ? provisionParameters['functionWebappName'] : '${resourceBaseName}api'
|
|
9
|
-
var storageName = contains(provisionParameters, 'functionStorageName') ? provisionParameters['functionStorageName'] : '${resourceBaseName}api'
|
|
10
|
-
var storageSku = contains(provisionParameters, 'functionStorageSku') ? provisionParameters['functionStorageSku'] : 'Standard_LRS'
|
|
6
|
+
var serverfarmsName = contains(provisionParameters, 'functionServerfarmsName') ? provisionParameters['functionServerfarmsName'] : '${resourceBaseName}api'
|
|
7
|
+
var serverfarmsSku = contains(provisionParameters, 'functionServerfarmsSku') ? provisionParameters['functionServerfarmsSku'] : 'Y1'
|
|
8
|
+
var functionAppName = contains(provisionParameters, 'functionWebappName') ? provisionParameters['functionWebappName'] : '${resourceBaseName}api'
|
|
9
|
+
var storageName = contains(provisionParameters, 'functionStorageName') ? provisionParameters['functionStorageName'] : '${resourceBaseName}api'
|
|
10
|
+
var storageSku = contains(provisionParameters, 'functionStorageSku') ? provisionParameters['functionStorageSku'] : 'Standard_LRS'
|
|
11
11
|
|
|
12
|
-
// Compute resources for Azure Functions
|
|
13
12
|
resource serverfarms 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
14
13
|
name: serverfarmsName
|
|
15
14
|
kind: 'functionapp'
|
|
@@ -19,43 +18,42 @@ resource serverfarms 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
// Azure Functions that hosts your function code
|
|
23
21
|
resource functionApp 'Microsoft.Web/sites@2021-02-01' = {
|
|
24
22
|
name: functionAppName
|
|
25
23
|
kind: 'functionapp'
|
|
26
24
|
location: resourceGroup().location
|
|
27
25
|
properties: {
|
|
28
26
|
serverFarmId: serverfarms.id
|
|
29
|
-
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
27
|
+
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
30
28
|
siteConfig: {
|
|
31
29
|
appSettings: [
|
|
32
30
|
{
|
|
33
31
|
name: 'AzureWebJobsDashboard'
|
|
34
|
-
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
32
|
+
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
35
33
|
}
|
|
36
34
|
{
|
|
37
35
|
name: 'AzureWebJobsStorage'
|
|
38
|
-
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
36
|
+
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
39
37
|
}
|
|
40
38
|
{
|
|
41
39
|
name: 'FUNCTIONS_EXTENSION_VERSION'
|
|
42
|
-
value: '~3'
|
|
40
|
+
value: '~3'
|
|
43
41
|
}
|
|
44
42
|
{
|
|
45
43
|
name: 'FUNCTIONS_WORKER_RUNTIME'
|
|
46
|
-
value: 'node'
|
|
44
|
+
value: 'node'
|
|
47
45
|
}
|
|
48
46
|
{
|
|
49
47
|
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
|
|
50
|
-
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
48
|
+
value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
|
|
51
49
|
}
|
|
52
50
|
{
|
|
53
51
|
name: 'WEBSITE_RUN_FROM_PACKAGE'
|
|
54
|
-
value: '1'
|
|
52
|
+
value: '1'
|
|
55
53
|
}
|
|
56
54
|
{
|
|
57
55
|
name: 'WEBSITE_NODE_DEFAULT_VERSION'
|
|
58
|
-
value: '~14'
|
|
56
|
+
value: '~14'
|
|
59
57
|
}
|
|
60
58
|
]
|
|
61
59
|
}
|
|
@@ -63,12 +61,11 @@ resource functionApp 'Microsoft.Web/sites@2021-02-01' = {
|
|
|
63
61
|
identity: {
|
|
64
62
|
type: 'UserAssigned'
|
|
65
63
|
userAssignedIdentities: {
|
|
66
|
-
'${userAssignedIdentityId}': {}
|
|
64
|
+
'${userAssignedIdentityId}': {}
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
// Azure Storage is required when creating Azure Functions instance
|
|
72
69
|
resource storage 'Microsoft.Storage/storageAccounts@2021-06-01' = {
|
|
73
70
|
name: storageName
|
|
74
71
|
kind: 'StorageV2'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
@secure()
|
|
2
2
|
param provisionParameters object
|
|
3
3
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}'
|
|
4
|
+
var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}'
|
|
5
5
|
|
|
6
|
-
// user assigned identity will be used to access other Azure resources
|
|
7
6
|
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
|
|
8
7
|
name: identityName
|
|
9
8
|
location: resourceGroup().location
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
@secure()
|
|
2
2
|
param provisionParameters object
|
|
3
|
-
param userAssignedIdentityObjectId string
|
|
3
|
+
param userAssignedIdentityObjectId string
|
|
4
4
|
|
|
5
5
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
6
|
-
var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}'
|
|
6
|
+
var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}'
|
|
7
7
|
var tenantId = subscription().tenantId
|
|
8
|
-
var m365ClientSecretName = 'm365ClientSecret'
|
|
9
|
-
var m365ClientSecret = provisionParameters['m365ClientSecret']
|
|
10
|
-
var botClientSecretName = 'botClientSecret'
|
|
11
|
-
var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : ''
|
|
12
|
-
var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard'
|
|
8
|
+
var m365ClientSecretName = 'm365ClientSecret'
|
|
9
|
+
var m365ClientSecret = provisionParameters['m365ClientSecret']
|
|
10
|
+
var botClientSecretName = 'botClientSecret'
|
|
11
|
+
var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : ''
|
|
12
|
+
var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard'
|
|
13
13
|
|
|
14
14
|
resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
|
|
15
15
|
name: keyVaultName
|
|
@@ -34,7 +34,6 @@ resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// Set or update AAD app client secret if it's not empty in parameters
|
|
38
37
|
resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(m365ClientSecret) != 0) {
|
|
39
38
|
parent: keyVault
|
|
40
39
|
name: m365ClientSecretName
|
|
@@ -43,7 +42,6 @@ resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (len
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
// Set or update bot's AAD app client secret if it's not empty in parameters
|
|
47
45
|
resource botClientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(botClientSecret) != 0) {
|
|
48
46
|
parent: keyVault
|
|
49
47
|
name: botClientSecretName
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
// Get existing app settings and site config for merge
|
|
2
1
|
var simpleAuthCurrentAppSettings = list('${provisionOutputs.simpleAuthOutput.value.webAppResourceId}/config/appsettings', '2021-02-01').properties
|
|
3
2
|
|
|
4
|
-
// Merge TeamsFx configurations to Simple Auth resources
|
|
5
3
|
module teamsFxSimpleAuthConfig '\{{fx-resource-simple-auth.Configuration.simpleAuth.path}}' = {
|
|
6
4
|
name: 'addTeamsFxSimpleAuthConfiguration'
|
|
7
5
|
params: {
|
|
@@ -47,14 +47,14 @@ var authorizedClientApplicationIds = '${teamsMobileOrDesktopAppClientId};${teams
|
|
|
47
47
|
resource simpleAuthWebAppSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
48
48
|
name: '${webAppName}/appsettings'
|
|
49
49
|
properties: {
|
|
50
|
-
AAD_METADATA_ADDRESS: aadMetadataAddress
|
|
51
|
-
ALLOWED_APP_IDS: authorizedClientApplicationIds
|
|
52
|
-
IDENTIFIER_URI: m365ApplicationIdUri
|
|
53
|
-
CLIENT_ID: m365ClientId
|
|
54
|
-
CLIENT_SECRET: m365ClientSecret
|
|
55
|
-
OAUTH_AUTHORITY: oauthAuthority
|
|
50
|
+
AAD_METADATA_ADDRESS: aadMetadataAddress
|
|
51
|
+
ALLOWED_APP_IDS: authorizedClientApplicationIds
|
|
52
|
+
IDENTIFIER_URI: m365ApplicationIdUri
|
|
53
|
+
CLIENT_ID: m365ClientId
|
|
54
|
+
CLIENT_SECRET: m365ClientSecret
|
|
55
|
+
OAUTH_AUTHORITY: oauthAuthority
|
|
56
56
|
{{#if (contains "fx-resource-frontend-hosting" plugins)}}
|
|
57
|
-
TAB_APP_ENDPOINT: tabAppEndpoint
|
|
57
|
+
TAB_APP_ENDPOINT: tabAppEndpoint
|
|
58
58
|
{{/if}}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
param provisionParameters object
|
|
3
3
|
param userAssignedIdentityId string
|
|
4
4
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
5
|
-
var sku = contains(provisionParameters, 'simpleAuthSku') ? provisionParameters['simpleAuthSku'] : 'F1'
|
|
6
|
-
var serverFarmsName = contains(provisionParameters, 'simpleAuthServerFarmsName') ? provisionParameters['simpleAuthServerFarmsName'] : '${resourceBaseName}simpleAuth'
|
|
7
|
-
var webAppName = contains(provisionParameters, 'simpleAuthWebAppName') ? provisionParameters['simpleAuthWebAppName'] : '${resourceBaseName}simpleAuth'
|
|
8
|
-
var simpleAuthPackageUri = contains(provisionParameters, 'simpleAuthPackageUri') ? provisionParameters['simpleAuthPackageUri'] : 'https://github.com/OfficeDev/TeamsFx/releases/download/simpleauth@0.1.0/Microsoft.TeamsFx.SimpleAuth_0.1.0.zip'
|
|
5
|
+
var sku = contains(provisionParameters, 'simpleAuthSku') ? provisionParameters['simpleAuthSku'] : 'F1'
|
|
6
|
+
var serverFarmsName = contains(provisionParameters, 'simpleAuthServerFarmsName') ? provisionParameters['simpleAuthServerFarmsName'] : '${resourceBaseName}simpleAuth'
|
|
7
|
+
var webAppName = contains(provisionParameters, 'simpleAuthWebAppName') ? provisionParameters['simpleAuthWebAppName'] : '${resourceBaseName}simpleAuth'
|
|
8
|
+
var simpleAuthPackageUri = contains(provisionParameters, 'simpleAuthPackageUri') ? provisionParameters['simpleAuthPackageUri'] : 'https://github.com/OfficeDev/TeamsFx/releases/download/simpleauth@0.1.0/Microsoft.TeamsFx.SimpleAuth_0.1.0.zip'
|
|
9
9
|
|
|
10
|
-
// Compute resources for Web App
|
|
11
10
|
resource serverFarms 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
12
11
|
name: serverFarmsName
|
|
13
12
|
location: resourceGroup().location
|
|
@@ -17,24 +16,22 @@ resource serverFarms 'Microsoft.Web/serverfarms@2021-02-01' = {
|
|
|
17
16
|
kind: 'app'
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
// Web App that hosts Simple Auth
|
|
21
19
|
resource webApp 'Microsoft.Web/sites@2021-02-01' = {
|
|
22
20
|
kind: 'app'
|
|
23
21
|
name: webAppName
|
|
24
22
|
location: resourceGroup().location
|
|
25
23
|
properties: {
|
|
26
24
|
serverFarmId: serverFarms.id
|
|
27
|
-
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
25
|
+
keyVaultReferenceIdentity: userAssignedIdentityId
|
|
28
26
|
}
|
|
29
27
|
identity: {
|
|
30
28
|
type: 'UserAssigned'
|
|
31
29
|
userAssignedIdentities: {
|
|
32
|
-
'${userAssignedIdentityId}': {}
|
|
30
|
+
'${userAssignedIdentityId}': {}
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
// Deploy Simple Auth bits to Web App
|
|
38
35
|
resource simpleAuthDeploy 'Microsoft.Web/sites/extensions@2021-02-01' = {
|
|
39
36
|
parent: webApp
|
|
40
37
|
name: 'MSDeploy'
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
@secure()
|
|
2
2
|
param provisionParameters object
|
|
3
3
|
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var sqlServerName = contains(provisionParameters, 'sqlServerName') ? provisionParameters['sqlServerName'] : '${resourceBaseName}'
|
|
5
|
-
var sqlDatabaseName = contains(provisionParameters, 'sqlDatabaseName') ? provisionParameters['sqlDatabaseName'] : '${resourceBaseName}'
|
|
6
|
-
var sqlDatabaseSku = contains(provisionParameters, 'sqlDatabaseSku') ? provisionParameters['sqlDatabaseSku'] : 'Basic'
|
|
7
|
-
var administratorLogin = contains(provisionParameters, 'azureSqlAdmin') ? provisionParameters['azureSqlAdmin'] : ''
|
|
8
|
-
var administratorLoginPassword = contains(provisionParameters, 'azureSqlAdminPassword') ? provisionParameters['azureSqlAdminPassword'] : ''
|
|
4
|
+
var sqlServerName = contains(provisionParameters, 'sqlServerName') ? provisionParameters['sqlServerName'] : '${resourceBaseName}'
|
|
5
|
+
var sqlDatabaseName = contains(provisionParameters, 'sqlDatabaseName') ? provisionParameters['sqlDatabaseName'] : '${resourceBaseName}'
|
|
6
|
+
var sqlDatabaseSku = contains(provisionParameters, 'sqlDatabaseSku') ? provisionParameters['sqlDatabaseSku'] : 'Basic'
|
|
7
|
+
var administratorLogin = contains(provisionParameters, 'azureSqlAdmin') ? provisionParameters['azureSqlAdmin'] : ''
|
|
8
|
+
var administratorLoginPassword = contains(provisionParameters, 'azureSqlAdminPassword') ? provisionParameters['azureSqlAdminPassword'] : ''
|
|
9
9
|
|
|
10
|
-
// SQL Server that hosts the databases
|
|
11
10
|
resource sqlServer 'Microsoft.Sql/servers@2021-05-01-preview' = {
|
|
12
11
|
location: resourceGroup().location
|
|
13
12
|
name: sqlServerName
|
|
@@ -17,7 +16,6 @@ resource sqlServer 'Microsoft.Sql/servers@2021-05-01-preview' = {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
// SQL Database
|
|
21
19
|
resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-05-01-preview' = {
|
|
22
20
|
parent: sqlServer
|
|
23
21
|
location: resourceGroup().location
|
|
@@ -27,7 +25,6 @@ resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-05-01-preview' = {
|
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
// Allow Azure services connect to the SQL Server
|
|
31
28
|
resource sqlFirewallRules 'Microsoft.Sql/servers/firewallRules@2021-05-01-preview' = {
|
|
32
29
|
parent: sqlServer
|
|
33
30
|
name: 'AllowAzure'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionInstaller.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/extensionInstaller.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,UAAU,EAClB,UAAU,GAAE,MAA0B,EACtC,UAAU,GAAE,MAA0B,GACrC,OAAO,CAAC,IAAI,CAAC,CA+Cf"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.installExtension = void 0;
|
|
6
|
-
const depsError_1 = require("../depsError");
|
|
7
|
-
const constant_1 = require("../constant");
|
|
8
|
-
const cpUtils_1 = require("./cpUtils");
|
|
9
|
-
const defaultOutputPath = "bin";
|
|
10
|
-
const defaultCsprojPath = "extensions.csproj";
|
|
11
|
-
async function installExtension(backendRoot, dotnetCommand, logger, csprojPath = defaultCsprojPath, outputPath = defaultOutputPath) {
|
|
12
|
-
try {
|
|
13
|
-
if (!outputPath) {
|
|
14
|
-
outputPath = defaultOutputPath;
|
|
15
|
-
}
|
|
16
|
-
await checkCommand(dotnetCommand, logger);
|
|
17
|
-
const result = await cpUtils_1.cpUtils.tryExecuteCommand(backendRoot, logger, { shell: false }, dotnetCommand, "build", csprojPath, "-o", outputPath, "--ignore-failed-sources");
|
|
18
|
-
if (result.code !== 0) {
|
|
19
|
-
throw new Error(`Failed to run "${dotnetCommand} build" command. output = ${result.cmdOutput}, err = ${result.cmdOutputIncludingStderr}`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
await logger.printDetailLog();
|
|
24
|
-
await logger.error(`Failed to run backend extension install: error = '${error}'`);
|
|
25
|
-
if (error.message.includes("NETSDK1045")) {
|
|
26
|
-
// refer to https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1045
|
|
27
|
-
throw new depsError_1.BackendExtensionsInstallError(`NETSDK1045: The current .NET SDK does not support 'newer version' as a target`, constant_1.dotnetNotSupportTargetVersionHelpLink);
|
|
28
|
-
}
|
|
29
|
-
if (error instanceof depsError_1.BackendExtensionsInstallError) {
|
|
30
|
-
throw error;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
throw new depsError_1.BackendExtensionsInstallError(`Failed to run backend extension install: error = '${error}'`, constant_1.defaultHelpLink);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
finally {
|
|
37
|
-
logger.cleanup();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.installExtension = installExtension;
|
|
41
|
-
async function checkCommand(command, logger) {
|
|
42
|
-
if (command === "") {
|
|
43
|
-
await logger.error(`Failed to run backend extension install, .NET SDK executable not found`);
|
|
44
|
-
throw new depsError_1.BackendExtensionsInstallError("Failed to run backend extension install, .NET SDK executable not found", constant_1.defaultHelpLink);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=extensionInstaller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensionInstaller.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/extensionInstaller.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,4CAA6D;AAC7D,0CAAqF;AACrF,uCAAoC;AAEpC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAEvC,KAAK,UAAU,gBAAgB,CACpC,WAAmB,EACnB,aAAqB,EACrB,MAAkB,EAClB,aAAqB,iBAAiB,EACtC,aAAqB,iBAAiB;IAEtC,IAAI;QACF,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,iBAAiB,CAAC;SAChC;QACD,MAAM,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAE1C,MAAM,MAAM,GAA2B,MAAM,iBAAO,CAAC,iBAAiB,CACpE,WAAW,EACX,MAAM,EACN,EAAE,KAAK,EAAE,KAAK,EAAE,EAChB,aAAa,EACb,OAAO,EACP,UAAU,EACV,IAAI,EACJ,UAAU,EACV,yBAAyB,CAC1B,CAAC;QAEF,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE;YACrB,MAAM,IAAI,KAAK,CACb,kBAAkB,aAAa,6BAA6B,MAAM,CAAC,SAAS,WAAW,MAAM,CAAC,wBAAwB,EAAE,CACzH,CAAC;SACH;KACF;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,MAAM,CAAC,cAAc,EAAE,CAAC;QAC9B,MAAM,MAAM,CAAC,KAAK,CAAC,qDAAqD,KAAK,GAAG,CAAC,CAAC;QAElF,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;YACxC,oFAAoF;YACpF,MAAM,IAAI,yCAA6B,CACrC,+EAA+E,EAC/E,gDAAqC,CACtC,CAAC;SACH;QAED,IAAI,KAAK,YAAY,yCAA6B,EAAE;YAClD,MAAM,KAAK,CAAC;SACb;aAAM;YACL,MAAM,IAAI,yCAA6B,CACrC,qDAAqD,KAAK,GAAG,EAC7D,0BAAe,CAChB,CAAC;SACH;KACF;YAAS;QACR,MAAM,CAAC,OAAO,EAAE,CAAC;KAClB;AACH,CAAC;AArDD,4CAqDC;AAED,KAAK,UAAU,YAAY,CAAC,OAAe,EAAE,MAAkB;IAC7D,IAAI,OAAO,KAAK,EAAE,EAAE;QAClB,MAAM,MAAM,CAAC,KAAK,CAAC,wEAAwE,CAAC,CAAC;QAC7F,MAAM,IAAI,yCAA6B,CACrC,wEAAwE,EACxE,0BAAe,CAChB,CAAC;KACH;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
"use strict";
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
tslib_1.__exportStar(require("./cpUtils"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./system"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./progressIndicator"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./extensionInstaller"), exports);
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,oDAA0B;AAC1B,mDAAyB;AACzB,8DAAoC;AACpC,+DAAqC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { LogProvider, TelemetryReporter } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { DepsCheckerEvent } from "../deps-checker/constant/telemetry";
|
|
3
|
-
import { DepsLogger } from "../deps-checker/depsLogger";
|
|
4
|
-
import { DepsTelemetry } from "../deps-checker/depsTelemetry";
|
|
5
|
-
export declare class DepsTelemetryAdapter implements DepsTelemetry {
|
|
6
|
-
private telemetryReporter;
|
|
7
|
-
constructor(telemetryReporter: TelemetryReporter | undefined);
|
|
8
|
-
sendEvent(eventName: DepsCheckerEvent, properties?: {
|
|
9
|
-
[p: string]: string;
|
|
10
|
-
}, timecost?: number): void;
|
|
11
|
-
sendEventWithDuration(eventName: DepsCheckerEvent, action: () => Promise<void>): Promise<void>;
|
|
12
|
-
sendUserErrorEvent(eventName: DepsCheckerEvent, errorMessage: string): void;
|
|
13
|
-
sendSystemErrorEvent(eventName: DepsCheckerEvent, errorMessage: string, errorStack: string): void;
|
|
14
|
-
}
|
|
15
|
-
export declare class DepsLoggerAdapter implements DepsLogger {
|
|
16
|
-
private logger;
|
|
17
|
-
constructor(logger: LogProvider | undefined);
|
|
18
|
-
debug(message: string): Promise<boolean>;
|
|
19
|
-
info(message: string): Promise<boolean>;
|
|
20
|
-
warning(message: string): Promise<boolean>;
|
|
21
|
-
error(message: string): Promise<boolean>;
|
|
22
|
-
append(message: string): Promise<boolean>;
|
|
23
|
-
appendLine(message: string): Promise<boolean>;
|
|
24
|
-
printDetailLog(): Promise<void>;
|
|
25
|
-
cleanup(): void;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=depsAdapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"depsAdapter.d.ts","sourceRoot":"","sources":["../../../src/common/local/depsAdapter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,qBAAa,oBAAqB,YAAW,aAAa;IACxD,OAAO,CAAC,iBAAiB,CAAgC;gBAEtC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS;IAG5D,SAAS,CACd,SAAS,EAAE,gBAAgB,EAC3B,UAAU,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACpC,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI;IAKM,qBAAqB,CAChC,SAAS,EAAE,gBAAgB,EAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAC1B,OAAO,CAAC,IAAI,CAAC;IAMT,kBAAkB,CAAC,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI;IAM3E,oBAAoB,CACzB,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GACjB,IAAI;CAKR;AAGD,qBAAa,iBAAkB,YAAW,UAAU;IAClD,OAAO,CAAC,MAAM,CAA0B;gBAErB,MAAM,EAAE,WAAW,GAAG,SAAS;IAGrC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMxC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMvC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAM1C,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMxC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMzC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAM7C,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5C,OAAO,IAAI,IAAI;CAKhB"}
|