@microsoft/teamsfx-core 1.1.3-alpha.fcc60ca0.0 → 1.2.1
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/armInterface.d.ts +20 -0
- package/build/common/armInterface.d.ts.map +1 -1
- 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 -2
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +7 -12
- 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/index.d.ts +3 -1
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +3 -1
- package/build/common/index.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +0 -2
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -33
- 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/common/telemetry.d.ts +2 -7
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +4 -10
- package/build/common/telemetry.js.map +1 -1
- package/build/common/{template-utils/templates.d.ts → templates.d.ts} +0 -0
- package/build/common/templates.d.ts.map +1 -0
- package/build/common/{template-utils/templates.js → templates.js} +1 -1
- package/build/common/templates.js.map +1 -0
- package/build/common/{template-utils/templatesActions.d.ts → templatesActions.d.ts} +0 -0
- package/build/common/templatesActions.d.ts.map +1 -0
- package/build/common/{template-utils/templatesActions.js → templatesActions.js} +3 -3
- package/build/common/templatesActions.js.map +1 -0
- package/build/common/{template-utils/templatesUtils.d.ts → templatesUtils.d.ts} +0 -0
- package/build/common/templatesUtils.d.ts.map +1 -0
- package/build/common/{template-utils/templatesUtils.js → templatesUtils.js} +1 -1
- package/build/common/templatesUtils.js.map +1 -0
- package/build/common/tools.d.ts +0 -1
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +5 -41
- package/build/common/tools.js.map +1 -1
- package/build/core/index.d.ts +2 -2
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +2 -10
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/index.d.ts +0 -1
- package/build/core/middleware/index.d.ts.map +1 -1
- package/build/core/middleware/index.js +0 -1
- package/build/core/middleware/index.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +2 -5
- package/build/core/question.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/apim/error.d.ts.map +1 -1
- package/build/plugins/resource/apim/error.js +4 -1
- package/build/plugins/resource/apim/error.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +58 -21
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/questionManager.js +7 -0
- package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
- package/build/plugins/resource/apim/questions/vscodeQuestion.js +13 -6
- package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +36 -2
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +32 -2
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +8 -16
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +3 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.js +16 -28
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
- package/build/plugins/resource/bot/configs/provisionConfig.js +10 -0
- package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
- package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
- package/build/plugins/resource/bot/languageStrategy.js +1 -1
- package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +131 -14
- 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 +3 -3
- 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/ops/scaffold.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
- package/build/plugins/resource/frontend/ops/scaffold.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/resources/templateInfo.js +1 -1
- package/build/plugins/resource/frontend/resources/templateInfo.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 +21 -8
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/ops/deploy.js +1 -1
- package/build/plugins/resource/function/ops/deploy.js.map +1 -1
- package/build/plugins/resource/function/ops/scaffold.js +1 -1
- package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +92 -9
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts +1 -0
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +20 -2
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/index.js +6 -1
- package/build/plugins/resource/simpleauth/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +3 -0
- package/build/plugins/resource/simpleauth/plugin.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/resource/sql/index.d.ts.map +1 -1
- package/build/plugins/resource/sql/index.js +7 -1
- package/build/plugins/resource/sql/index.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +58 -26
- package/build/plugins/resource/sql/plugin.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 +5 -3
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +13 -10
- 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/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +3 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.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 -196
- 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 -77
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.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/frontend/bicep/frontendHostingProvision.bicep +2 -3
- 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/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/index.d.ts +0 -4
- package/build/common/local/index.d.ts.map +0 -1
- package/build/common/local/index.js +0 -9
- package/build/common/local/index.js.map +0 -1
- package/build/common/template-utils/templates.d.ts.map +0 -1
- package/build/common/template-utils/templates.js.map +0 -1
- package/build/common/template-utils/templatesActions.d.ts.map +0 -1
- package/build/common/template-utils/templatesActions.js.map +0 -1
- package/build/common/template-utils/templatesUtils.d.ts.map +0 -1
- package/build/common/template-utils/templatesUtils.js.map +0 -1
- package/build/core/middleware/projectUpgrader.d.ts +0 -6
- package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
- package/build/core/middleware/projectUpgrader.js +0 -224
- package/build/core/middleware/projectUpgrader.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
|
@@ -38,21 +38,21 @@ var m365ApplicationIdUri = 'api://botid-${botId}'
|
|
|
38
38
|
resource botWebAppSettings 'Microsoft.Web/sites/config@2021-02-01' = {
|
|
39
39
|
name: '${botWebAppName}/appsettings'
|
|
40
40
|
properties: union({
|
|
41
|
-
INITIATE_LOGIN_ENDPOINT: uri(provisionOutputs.botOutput.value.siteEndpoint, 'auth-start.html')
|
|
42
|
-
M365_AUTHORITY_HOST: m365OauthAuthorityHost
|
|
43
|
-
M365_CLIENT_ID: m365ClientId
|
|
44
|
-
M365_CLIENT_SECRET: m365ClientSecret
|
|
45
|
-
M365_TENANT_ID: m365TenantId
|
|
46
|
-
M365_APPLICATION_ID_URI: m365ApplicationIdUri
|
|
47
|
-
BOT_ID: botAadAppClientId
|
|
48
|
-
BOT_PASSWORD: botAadAppClientSecret
|
|
41
|
+
INITIATE_LOGIN_ENDPOINT: uri(provisionOutputs.botOutput.value.siteEndpoint, 'auth-start.html')
|
|
42
|
+
M365_AUTHORITY_HOST: m365OauthAuthorityHost
|
|
43
|
+
M365_CLIENT_ID: m365ClientId
|
|
44
|
+
M365_CLIENT_SECRET: m365ClientSecret
|
|
45
|
+
M365_TENANT_ID: m365TenantId
|
|
46
|
+
M365_APPLICATION_ID_URI: m365ApplicationIdUri
|
|
47
|
+
BOT_ID: botAadAppClientId
|
|
48
|
+
BOT_PASSWORD: botAadAppClientSecret
|
|
49
49
|
{{#if (contains "fx-resource-function" plugins) }}
|
|
50
|
-
API_ENDPOINT: provisionOutputs.functionOutput.value.functionEndpoint
|
|
50
|
+
API_ENDPOINT: provisionOutputs.functionOutput.value.functionEndpoint
|
|
51
51
|
{{/if}}
|
|
52
52
|
{{#if (contains "fx-resource-azure-sql" plugins)}}
|
|
53
|
-
SQL_DATABASE_NAME: \{{fx-resource-azure-sql.References.databaseName}}
|
|
54
|
-
SQL_ENDPOINT: \{{fx-resource-azure-sql.References.sqlEndpoint}}
|
|
53
|
+
SQL_DATABASE_NAME: \{{fx-resource-azure-sql.References.databaseName}}
|
|
54
|
+
SQL_ENDPOINT: \{{fx-resource-azure-sql.References.sqlEndpoint}}
|
|
55
55
|
{{/if}}
|
|
56
|
-
IDENTITY_ID: \{{fx-resource-identity.References.identityClientId}}
|
|
56
|
+
IDENTITY_ID: \{{fx-resource-identity.References.identityClientId}}
|
|
57
57
|
}, currentAppSettings)
|
|
58
58
|
}
|
|
@@ -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: {
|
|
@@ -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
|
|
@@ -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'
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/local/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,9 +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("./localEnvManager"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./projectSettingsHelper"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./taskDefinition"), exports);
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/local/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,4DAAkC;AAClC,kEAAwC;AACxC,2DAAiC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/common/template-utils/templates.ts"],"names":[],"mappings":"AAMA,eAAO,MAA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Ae,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAClD;AAOD,oBAAY,kBAAkB;IAC5B,8BAA8B,mCAAmC;IACjE,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,KAAK,UAAU;CAChB;AAGD,eAAO,MAAM,8BAA8B,EAAE,cA2C5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cA8B5C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,cAY5C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,cAoC7C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAazB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAM5C,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,UAC9D,MAAM,QAAQ,MAAM,qBACnC;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAEpE;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,eAAe,EACxB,OAAO,GAAE,cAAc,EAAqB,iBAc7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templatesActions.js","sourceRoot":"","sources":["../../../src/common/template-utils/templatesActions.ts"],"names":[],"mappings":";;;;AAAA,8DAA6B;AAC7B,gEAA0B;AAC1B,wDAAwB;AACxB,yCAAkD;AAClD,qDAAmG;AAyCnG,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,kBAAkB,GAAG,KAAK,CAAC;AAEjC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,WAAW,GAAG,sBAAsB,CAAC;AAE/E,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,uFAAiE,CAAA;IACjE,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,6EAAuD,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