@microsoft/teamsfx-core 2.0.1-alpha.c8eab1a43.0 → 2.0.1-alpha.d4f96cccc.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/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.js.map +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +2 -2
- package/build/common/samples.js.map +1 -1
- package/build/common/telemetry.d.ts +0 -13
- package/build/common/telemetry.d.ts.map +1 -1
- package/build/common/telemetry.js +0 -13
- package/build/common/telemetry.js.map +1 -1
- package/build/common/templates-config.json +2 -1
- package/build/common/tools.d.ts +1 -15
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +53 -138
- package/build/common/tools.js.map +1 -1
- package/build/component/code/appSettingUtils.d.ts +1 -2
- package/build/component/code/appSettingUtils.d.ts.map +1 -1
- package/build/component/code/appSettingUtils.js +1 -46
- package/build/component/code/appSettingUtils.js.map +1 -1
- package/build/component/constant/deployConstant.d.ts.map +1 -1
- package/build/component/constant/deployConstant.js.map +1 -1
- package/build/component/constants.d.ts +3 -210
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +7 -404
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +1 -0
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +21 -10
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deployUtils.d.ts +1 -8
- package/build/component/deployUtils.d.ts.map +1 -1
- package/build/component/deployUtils.js +2 -98
- package/build/component/deployUtils.js.map +1 -1
- package/build/component/driver/add/addWebPart.js +3 -3
- package/build/component/driver/add/addWebPart.js.map +1 -1
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +9 -9
- package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
- package/build/component/driver/interface/buildAndDeployArgs.d.ts +11 -11
- package/build/component/driver/interface/buildAndDeployArgs.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +6 -6
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/error.d.ts +0 -3
- package/build/component/error.d.ts.map +1 -1
- package/build/component/error.js +1 -11
- package/build/component/error.js.map +1 -1
- package/build/component/feature/cicd/cicd.d.ts +1 -2
- package/build/component/feature/cicd/cicd.d.ts.map +1 -1
- package/build/component/feature/cicd/cicd.js +2 -87
- package/build/component/feature/cicd/cicd.js.map +1 -1
- package/build/component/feature/sso.d.ts +0 -1
- package/build/component/feature/sso.d.ts.map +1 -1
- package/build/component/feature/sso.js +0 -1
- package/build/component/feature/sso.js.map +1 -1
- package/build/component/generator/generatorAction.d.ts.map +1 -1
- package/build/component/generator/generatorAction.js +1 -1
- package/build/component/generator/generatorAction.js.map +1 -1
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts +8 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.d.ts.map +1 -0
- package/build/component/generator/spfx/depsChecker/dependencyChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/generatorChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/generatorChecker.js +0 -39
- package/build/component/generator/spfx/depsChecker/generatorChecker.js.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.d.ts +1 -4
- package/build/component/generator/spfx/depsChecker/yoChecker.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/depsChecker/yoChecker.js +0 -33
- package/build/component/generator/spfx/depsChecker/yoChecker.js.map +1 -0
- package/build/component/generator/spfx/error.d.ts +8 -0
- package/build/component/generator/spfx/error.d.ts.map +1 -0
- package/build/component/generator/spfx/error.js +55 -0
- package/build/component/generator/spfx/error.js.map +1 -0
- package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -0
- package/build/component/generator/{spfxGenerator.js → spfx/spfxGenerator.js} +16 -16
- package/build/component/generator/spfx/spfxGenerator.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.d.ts +0 -33
- package/build/component/generator/spfx/utils/constants.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/constants.js +1 -39
- package/build/component/generator/spfx/utils/constants.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/progress-helper.d.ts +0 -5
- package/build/component/generator/spfx/utils/progress-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/progress-helper.js +21 -0
- package/build/component/generator/spfx/utils/progress-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/question-helper.js.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.d.ts +0 -1
- package/build/component/generator/spfx/utils/questions.d.ts.map +1 -0
- package/build/component/{resource → generator}/spfx/utils/questions.js +1 -23
- package/build/component/generator/spfx/utils/questions.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetry-helper.js.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/telemetryEvents.js.map +1 -0
- package/build/component/generator/spfx/utils/utils.d.ts.map +1 -0
- package/build/component/generator/spfx/utils/utils.js.map +1 -0
- package/build/component/generator/utils.js +2 -2
- package/build/component/generator/utils.js.map +1 -1
- package/build/component/middleware/envMW.js.map +1 -1
- package/build/component/provisionUtils.d.ts +2 -23
- package/build/component/provisionUtils.d.ts.map +1 -1
- package/build/component/provisionUtils.js +5 -523
- package/build/component/provisionUtils.js.map +1 -1
- package/build/component/question.js +1 -1
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -3
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -3
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js +2 -1
- package/build/component/resource/aadApp/utils/aadManifestHelper.js.map +1 -1
- package/build/component/resource/appManifest/appManifest.d.ts +0 -6
- package/build/component/resource/appManifest/appManifest.d.ts.map +1 -1
- package/build/component/resource/appManifest/appManifest.js +24 -247
- package/build/component/resource/appManifest/appManifest.js.map +1 -1
- package/build/component/resource/appManifest/appStudio.d.ts +1 -21
- package/build/component/resource/appManifest/appStudio.d.ts.map +1 -1
- package/build/component/resource/appManifest/appStudio.js +15 -257
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/botService/errors.d.ts +0 -2
- package/build/component/resource/botService/errors.d.ts.map +1 -1
- package/build/component/resource/botService/errors.js +1 -43
- package/build/component/resource/botService/errors.js.map +1 -1
- package/build/component/utils/ResourceGroupHelper.d.ts +1 -5
- package/build/component/utils/ResourceGroupHelper.d.ts.map +1 -1
- package/build/component/utils/ResourceGroupHelper.js +0 -6
- package/build/component/utils/ResourceGroupHelper.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +2 -2
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils.d.ts +1 -18
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +23 -277
- package/build/component/utils.js.map +1 -1
- package/build/component/workflow.d.ts +0 -1
- package/build/component/workflow.d.ts.map +1 -1
- package/build/component/workflow.js +1 -6
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +0 -8
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +0 -12
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +7 -20
- package/build/core/FxCoreImplementV3.js.map +1 -1
- package/build/core/collaborator.d.ts +2 -0
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +2 -0
- package/build/core/collaborator.js.map +1 -1
- package/build/core/environment.d.ts +2 -4
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +44 -108
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +1 -34
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +1 -112
- package/build/core/error.js.map +1 -1
- package/build/core/globalVars.d.ts +0 -1
- package/build/core/globalVars.d.ts.map +1 -1
- package/build/core/globalVars.js +1 -15
- package/build/core/globalVars.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +2 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +40 -46
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +9 -20
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectVersionChecker.d.ts.map +1 -1
- package/build/core/middleware/projectVersionChecker.js +6 -18
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/utils/migrationContext.d.ts.map +1 -1
- package/build/core/middleware/utils/migrationContext.js +0 -4
- package/build/core/middleware/utils/migrationContext.js.map +1 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +4 -4
- package/build/core/question.js.map +1 -1
- package/build/core/types.d.ts +0 -10
- package/build/core/types.d.ts.map +1 -1
- package/build/index.d.ts +0 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/package.json +7 -11
- package/resource/package.nls.json +3 -177
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/build/common/azure-hosting/azureAppServiceHosting.d.ts +0 -16
- package/build/common/azure-hosting/azureAppServiceHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureAppServiceHosting.js +0 -33
- package/build/common/azure-hosting/azureAppServiceHosting.js.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.d.ts +0 -14
- package/build/common/azure-hosting/azureFunctionHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureFunctionHosting.js +0 -34
- package/build/common/azure-hosting/azureFunctionHosting.js.map +0 -1
- package/build/common/azure-hosting/azureHosting.d.ts +0 -23
- package/build/common/azure-hosting/azureHosting.d.ts.map +0 -1
- package/build/common/azure-hosting/azureHosting.js +0 -95
- package/build/common/azure-hosting/azureHosting.js.map +0 -1
- package/build/common/azure-hosting/azureOps.d.ts +0 -17
- package/build/common/azure-hosting/azureOps.d.ts.map +0 -1
- package/build/common/azure-hosting/azureOps.js +0 -94
- package/build/common/azure-hosting/azureOps.js.map +0 -1
- package/build/common/azure-hosting/hostingConstant.d.ts +0 -46
- package/build/common/azure-hosting/hostingConstant.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingConstant.js +0 -86
- package/build/common/azure-hosting/hostingConstant.js.map +0 -1
- package/build/common/azure-hosting/hostingError.d.ts +0 -47
- package/build/common/azure-hosting/hostingError.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingError.js +0 -83
- package/build/common/azure-hosting/hostingError.js.map +0 -1
- package/build/common/azure-hosting/hostingFactory.d.ts +0 -6
- package/build/common/azure-hosting/hostingFactory.d.ts.map +0 -1
- package/build/common/azure-hosting/hostingFactory.js +0 -22
- package/build/common/azure-hosting/hostingFactory.js.map +0 -1
- package/build/common/azure-hosting/interfaces.d.ts +0 -58
- package/build/common/azure-hosting/interfaces.d.ts.map +0 -1
- package/build/common/azure-hosting/interfaces.js +0 -12
- package/build/common/azure-hosting/interfaces.js.map +0 -1
- package/build/common/azure-hosting/messages.d.ts +0 -10
- package/build/common/azure-hosting/messages.d.ts.map +0 -1
- package/build/common/azure-hosting/messages.js +0 -16
- package/build/common/azure-hosting/messages.js.map +0 -1
- package/build/common/azure-hosting/utils.d.ts +0 -10
- package/build/common/azure-hosting/utils.d.ts.map +0 -1
- package/build/common/azure-hosting/utils.js +0 -107
- package/build/common/azure-hosting/utils.js.map +0 -1
- package/build/common/samples-config.json +0 -201
- package/build/component/code/spfxTabCode.d.ts +0 -11
- package/build/component/code/spfxTabCode.d.ts.map +0 -1
- package/build/component/code/spfxTabCode.js +0 -237
- package/build/component/code/spfxTabCode.js.map +0 -1
- package/build/component/envManager.d.ts +0 -4
- package/build/component/envManager.d.ts.map +0 -1
- package/build/component/envManager.js +0 -25
- package/build/component/envManager.js.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts +0 -23
- package/build/component/feature/apiconnector/ApiConnectorImpl.d.ts.map +0 -1
- package/build/component/feature/apiconnector/ApiConnectorImpl.js +0 -288
- package/build/component/feature/apiconnector/ApiConnectorImpl.js.map +0 -1
- package/build/component/feature/apiconnector/checker.d.ts +0 -7
- package/build/component/feature/apiconnector/checker.d.ts.map +0 -1
- package/build/component/feature/apiconnector/checker.js +0 -74
- package/build/component/feature/apiconnector/checker.js.map +0 -1
- package/build/component/feature/apiconnector/config.d.ts +0 -23
- package/build/component/feature/apiconnector/config.d.ts.map +0 -1
- package/build/component/feature/apiconnector/config.js +0 -5
- package/build/component/feature/apiconnector/config.js.map +0 -1
- package/build/component/feature/apiconnector/constants.d.ts +0 -50
- package/build/component/feature/apiconnector/constants.d.ts.map +0 -1
- package/build/component/feature/apiconnector/constants.js +0 -61
- package/build/component/feature/apiconnector/constants.js.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.d.ts +0 -14
- package/build/component/feature/apiconnector/depsHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/depsHandler.js +0 -109
- package/build/component/feature/apiconnector/depsHandler.js.map +0 -1
- package/build/component/feature/apiconnector/envHandler.d.ts +0 -21
- package/build/component/feature/apiconnector/envHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/envHandler.js +0 -128
- package/build/component/feature/apiconnector/envHandler.js.map +0 -1
- package/build/component/feature/apiconnector/errors.d.ts +0 -53
- package/build/component/feature/apiconnector/errors.d.ts.map +0 -1
- package/build/component/feature/apiconnector/errors.js +0 -64
- package/build/component/feature/apiconnector/errors.js.map +0 -1
- package/build/component/feature/apiconnector/questions.d.ts +0 -41
- package/build/component/feature/apiconnector/questions.d.ts.map +0 -1
- package/build/component/feature/apiconnector/questions.js +0 -262
- package/build/component/feature/apiconnector/questions.js.map +0 -1
- package/build/component/feature/apiconnector/result.d.ts +0 -23
- package/build/component/feature/apiconnector/result.d.ts.map +0 -1
- package/build/component/feature/apiconnector/result.js +0 -40
- package/build/component/feature/apiconnector/result.js.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.d.ts +0 -10
- package/build/component/feature/apiconnector/sampleHandler.d.ts.map +0 -1
- package/build/component/feature/apiconnector/sampleHandler.js +0 -62
- package/build/component/feature/apiconnector/sampleHandler.js.map +0 -1
- package/build/component/feature/apiconnector/telemetry.d.ts +0 -42
- package/build/component/feature/apiconnector/telemetry.d.ts.map +0 -1
- package/build/component/feature/apiconnector/telemetry.js +0 -70
- package/build/component/feature/apiconnector/telemetry.js.map +0 -1
- package/build/component/feature/apiconnector/utils.d.ts +0 -18
- package/build/component/feature/apiconnector/utils.d.ts.map +0 -1
- package/build/component/feature/apiconnector/utils.js +0 -90
- package/build/component/feature/apiconnector/utils.js.map +0 -1
- package/build/component/generator/spfxGenerator.d.ts.map +0 -1
- package/build/component/generator/spfxGenerator.js.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.d.ts +0 -12
- package/build/component/resource/azureAppService/azureAppService.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureAppService.js +0 -48
- package/build/component/resource/azureAppService/azureAppService.js.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.d.ts +0 -36
- package/build/component/resource/azureAppService/azureFunction.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureFunction.js +0 -155
- package/build/component/resource/azureAppService/azureFunction.js.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.d.ts +0 -6
- package/build/component/resource/azureAppService/azureLibs.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureLibs.js +0 -13
- package/build/component/resource/azureAppService/azureLibs.js.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.d.ts +0 -30
- package/build/component/resource/azureAppService/azureWebApp.d.ts.map +0 -1
- package/build/component/resource/azureAppService/azureWebApp.js +0 -43
- package/build/component/resource/azureAppService/azureWebApp.js.map +0 -1
- package/build/component/resource/azureAppService/common.d.ts +0 -10
- package/build/component/resource/azureAppService/common.d.ts.map +0 -1
- package/build/component/resource/azureAppService/common.js +0 -80
- package/build/component/resource/azureAppService/common.js.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.d.ts +0 -4
- package/build/component/resource/azureAppService/dir-walk.d.ts.map +0 -1
- package/build/component/resource/azureAppService/dir-walk.js +0 -21
- package/build/component/resource/azureAppService/dir-walk.js.map +0 -1
- package/build/component/resource/azureSql/actions/configure.d.ts +0 -15
- package/build/component/resource/azureSql/actions/configure.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/configure.js +0 -92
- package/build/component/resource/azureSql/actions/configure.js.map +0 -1
- package/build/component/resource/azureSql/actions/provision.d.ts +0 -10
- package/build/component/resource/azureSql/actions/provision.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/provision.js +0 -63
- package/build/component/resource/azureSql/actions/provision.js.map +0 -1
- package/build/component/resource/azureSql/actions/utils.d.ts +0 -12
- package/build/component/resource/azureSql/actions/utils.d.ts.map +0 -1
- package/build/component/resource/azureSql/actions/utils.js +0 -82
- package/build/component/resource/azureSql/actions/utils.js.map +0 -1
- package/build/component/resource/azureSql/azureSql.d.ts +0 -24
- package/build/component/resource/azureSql/azureSql.d.ts.map +0 -1
- package/build/component/resource/azureSql/azureSql.js +0 -75
- package/build/component/resource/azureSql/azureSql.js.map +0 -1
- package/build/component/resource/azureSql/clients/management.d.ts +0 -18
- package/build/component/resource/azureSql/clients/management.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/management.js +0 -124
- package/build/component/resource/azureSql/clients/management.js.map +0 -1
- package/build/component/resource/azureSql/clients/sql.d.ts +0 -13
- package/build/component/resource/azureSql/clients/sql.d.ts.map +0 -1
- package/build/component/resource/azureSql/clients/sql.js +0 -153
- package/build/component/resource/azureSql/clients/sql.js.map +0 -1
- package/build/component/resource/azureSql/config.d.ts +0 -7
- package/build/component/resource/azureSql/config.d.ts.map +0 -1
- package/build/component/resource/azureSql/config.js +0 -77
- package/build/component/resource/azureSql/config.js.map +0 -1
- package/build/component/resource/azureSql/constants.d.ts +0 -85
- package/build/component/resource/azureSql/constants.d.ts.map +0 -1
- package/build/component/resource/azureSql/constants.js +0 -95
- package/build/component/resource/azureSql/constants.js.map +0 -1
- package/build/component/resource/azureSql/errors.d.ts +0 -63
- package/build/component/resource/azureSql/errors.d.ts.map +0 -1
- package/build/component/resource/azureSql/errors.js +0 -107
- package/build/component/resource/azureSql/errors.js.map +0 -1
- package/build/component/resource/azureSql/index.d.ts +0 -2
- package/build/component/resource/azureSql/index.d.ts.map +0 -1
- package/build/component/resource/azureSql/index.js +0 -7
- package/build/component/resource/azureSql/index.js.map +0 -1
- package/build/component/resource/azureSql/questions.d.ts +0 -6
- package/build/component/resource/azureSql/questions.d.ts.map +0 -1
- package/build/component/resource/azureSql/questions.js +0 -59
- package/build/component/resource/azureSql/questions.js.map +0 -1
- package/build/component/resource/azureSql/results.d.ts +0 -10
- package/build/component/resource/azureSql/results.d.ts.map +0 -1
- package/build/component/resource/azureSql/results.js +0 -34
- package/build/component/resource/azureSql/results.js.map +0 -1
- package/build/component/resource/azureSql/types.d.ts +0 -12
- package/build/component/resource/azureSql/types.d.ts.map +0 -1
- package/build/component/resource/azureSql/types.js +0 -5
- package/build/component/resource/azureSql/types.js.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.d.ts +0 -10
- package/build/component/resource/azureSql/utils/checkInput.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/checkInput.js +0 -89
- package/build/component/resource/azureSql/utils/checkInput.js.map +0 -1
- package/build/component/resource/azureSql/utils/common.d.ts +0 -12
- package/build/component/resource/azureSql/utils/common.d.ts.map +0 -1
- package/build/component/resource/azureSql/utils/common.js +0 -51
- package/build/component/resource/azureSql/utils/common.js.map +0 -1
- package/build/component/resource/azureStorage/azureStorage.d.ts +0 -31
- package/build/component/resource/azureStorage/azureStorage.d.ts.map +0 -1
- package/build/component/resource/azureStorage/azureStorage.js +0 -111
- package/build/component/resource/azureStorage/azureStorage.js.map +0 -1
- package/build/component/resource/azureStorage/clients.d.ts +0 -23
- package/build/component/resource/azureStorage/clients.d.ts.map +0 -1
- package/build/component/resource/azureStorage/clients.js +0 -133
- package/build/component/resource/azureStorage/clients.js.map +0 -1
- package/build/component/resource/azureStorage/configs.d.ts +0 -12
- package/build/component/resource/azureStorage/configs.d.ts.map +0 -1
- package/build/component/resource/azureStorage/configs.js +0 -30
- package/build/component/resource/azureStorage/configs.js.map +0 -1
- package/build/component/resource/azureStorage/constants.d.ts +0 -11
- package/build/component/resource/azureStorage/constants.d.ts.map +0 -1
- package/build/component/resource/azureStorage/constants.js +0 -17
- package/build/component/resource/azureStorage/constants.js.map +0 -1
- package/build/component/resource/azureStorage/messages.d.ts +0 -14
- package/build/component/resource/azureStorage/messages.d.ts.map +0 -1
- package/build/component/resource/azureStorage/messages.js +0 -28
- package/build/component/resource/azureStorage/messages.js.map +0 -1
- package/build/component/resource/botService/botService.d.ts +0 -24
- package/build/component/resource/botService/botService.d.ts.map +0 -1
- package/build/component/resource/botService/botService.js +0 -146
- package/build/component/resource/botService/botService.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts +0 -11
- package/build/component/resource/spfx/depsChecker/dependencyChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/dependencyChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/generatorChecker.js.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.d.ts.map +0 -1
- package/build/component/resource/spfx/depsChecker/yoChecker.js.map +0 -1
- package/build/component/resource/spfx/error.d.ts +0 -21
- package/build/component/resource/spfx/error.d.ts.map +0 -1
- package/build/component/resource/spfx/error.js +0 -138
- package/build/component/resource/spfx/error.js.map +0 -1
- package/build/component/resource/spfx/index.d.ts +0 -15
- package/build/component/resource/spfx/index.d.ts.map +0 -1
- package/build/component/resource/spfx/index.js +0 -248
- package/build/component/resource/spfx/index.js.map +0 -1
- package/build/component/resource/spfx/spoClient.d.ts +0 -25
- package/build/component/resource/spfx/spoClient.d.ts.map +0 -1
- package/build/component/resource/spfx/spoClient.js +0 -79
- package/build/component/resource/spfx/spoClient.js.map +0 -1
- package/build/component/resource/spfx/utils/constants.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/constants.js.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/progress-helper.js +0 -46
- package/build/component/resource/spfx/utils/progress-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/question-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/questions.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/questions.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetry-helper.js.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/telemetryEvents.js.map +0 -1
- package/build/component/resource/spfx/utils/utils.d.ts.map +0 -1
- package/build/component/resource/spfx/utils/utils.js.map +0 -1
- package/build/component/utils/backupFiles.d.ts +0 -4
- package/build/component/utils/backupFiles.d.ts.map +0 -1
- package/build/component/utils/backupFiles.js +0 -162
- package/build/component/utils/backupFiles.js.map +0 -1
- package/build/component/utils/executor.d.ts +0 -12
- package/build/component/utils/executor.d.ts.map +0 -1
- package/build/component/utils/executor.js +0 -87
- package/build/component/utils/executor.js.map +0 -1
- package/build/core/downloadSample.d.ts +0 -9
- package/build/core/downloadSample.d.ts.map +0 -1
- package/build/core/downloadSample.js +0 -161
- package/build/core/downloadSample.js.map +0 -1
- package/resource/backup-config-change-logs.md +0 -24
- package/templates/bicep/azureSql.parameters.json +0 -4
- package/templates/bicep/azureSql.provisionDatabase.module.bicep +0 -15
- package/templates/bicep/azureSql.provisionDatabase.orchestration.bicep +0 -5
- package/templates/bicep/azureSql.provisionServer.module.bicep +0 -44
- package/templates/bicep/azureSql.provisionServer.orchestration.bicep +0 -14
- package/templates/bicep/identity.provision.module.bicep +0 -15
- package/templates/bicep/identity.provision.orchestration.bicep +0 -14
- package/templates/bicep/keyVault.provision.module.bicep +0 -57
- package/templates/bicep/keyVault.provision.orchestration.bicep +0 -15
- package/templates/plugins/resource/apiconnector/package.json +0 -5
- package/templates/plugins/resource/apiconnector/sample/footerComment.template +0 -20
- package/templates/plugins/resource/apiconnector/sample/headerComment.template +0 -52
- package/templates/plugins/resource/apiconnector/sample/js/aad.template +0 -31
- package/templates/plugins/resource/apiconnector/sample/js/apikey.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/js/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/js/cert.template +0 -17
- package/templates/plugins/resource/apiconnector/sample/js/custom.template +0 -39
- package/templates/plugins/resource/apiconnector/sample/ts/aad.template +0 -36
- package/templates/plugins/resource/apiconnector/sample/ts/apikey.template +0 -16
- package/templates/plugins/resource/apiconnector/sample/ts/basic.template +0 -14
- package/templates/plugins/resource/apiconnector/sample/ts/cert.template +0 -19
- package/templates/plugins/resource/apiconnector/sample/ts/custom.template +0 -42
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +0 -15
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/identity/parameters.json +0 -12
- package/templates/plugins/resource/identity/template.json +0 -28
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +0 -57
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +0 -15
- package/templates/plugins/resource/simpleauth/SimpleAuth.zip +0 -0
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -12
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +0 -62
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +0 -51
- package/templates/plugins/resource/simpleauth/version.txt +0 -2
- package/templates/plugins/resource/spfx/solution/README.md +0 -82
- package/templates/plugins/resource/spfx/solution/manifest.local.template.json +0 -62
- package/templates/plugins/resource/spfx/solution/manifest_multi_env.json +0 -63
- package/templates/plugins/resource/spfx/solution/rootREADME.md +0 -13
- package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +0 -5
- package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +0 -15
- package/templates/plugins/resource/sql/bicep/parameters.json +0 -4
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +0 -14
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +0 -44
- /package/build/component/{resource → generator}/spfx/depsChecker/dependencyChecker.js +0 -0
- /package/build/component/generator/{spfxGenerator.d.ts → spfx/spfxGenerator.d.ts} +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/question-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetry-helper.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/telemetryEvents.js +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.d.ts +0 -0
- /package/build/component/{resource → generator}/spfx/utils/utils.js +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var sqlServerName = contains(provisionParameters, 'sqlServerName') ? provisionParameters['sqlServerName'] : '${resourceBaseName}' // Try to read name for SQL Server from parameters
|
|
5
|
-
var sqlDatabaseName = contains(provisionParameters, 'sqlDatabaseName') ? provisionParameters['sqlDatabaseName'] : '${resourceBaseName}' // Try to read name for SQL Database from parameters
|
|
6
|
-
var sqlDatabaseSku = contains(provisionParameters, 'sqlDatabaseSku') ? provisionParameters['sqlDatabaseSku'] : 'Basic' // Try to read SKU for SQL Database from parameters
|
|
7
|
-
var administratorLogin = contains(provisionParameters, 'azureSqlAdmin') ? provisionParameters['azureSqlAdmin'] : '' // Try to read admin name for SQL Server from parameters, the value must be empty or same with the admin name used to create SQL Server
|
|
8
|
-
var administratorLoginPassword = contains(provisionParameters, 'azureSqlAdminPassword') ? provisionParameters['azureSqlAdminPassword'] : '' // Try to read admin password for SQL Server from parameters, empty means do not update admin password
|
|
9
|
-
|
|
10
|
-
// SQL Server that hosts the databases
|
|
11
|
-
// The symbolic name of SQL Server will be referenced as parent when adding nmultiple databases
|
|
12
|
-
resource sqlServer 'Microsoft.Sql/servers@2021-05-01-preview' = {
|
|
13
|
-
location: resourceGroup().location
|
|
14
|
-
name: sqlServerName
|
|
15
|
-
properties: {
|
|
16
|
-
minimalTlsVersion:'1.2'
|
|
17
|
-
administratorLogin: empty(administratorLogin) ? null : administratorLogin
|
|
18
|
-
administratorLoginPassword: administratorLoginPassword
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// SQL Database
|
|
23
|
-
resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-05-01-preview' = {
|
|
24
|
-
parent: sqlServer
|
|
25
|
-
location: resourceGroup().location
|
|
26
|
-
name: sqlDatabaseName
|
|
27
|
-
sku: {
|
|
28
|
-
name: sqlDatabaseSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add sqlDatabaseSku property to provisionParameters to override the default value "Basic".
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Allow Azure services connect to the SQL Server
|
|
33
|
-
resource sqlFirewallRules 'Microsoft.Sql/servers/firewallRules@2021-05-01-preview' = {
|
|
34
|
-
parent: sqlServer
|
|
35
|
-
name: 'AllowAzure'
|
|
36
|
-
properties: {
|
|
37
|
-
endIpAddress: '0.0.0.0'
|
|
38
|
-
startIpAddress: '0.0.0.0'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
output sqlResourceId string = sqlServer.id
|
|
43
|
-
output sqlEndpoint string = sqlServer.properties.fullyQualifiedDomainName
|
|
44
|
-
output sqlDatabaseName string = sqlDatabaseName
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Resources for Azure SQL
|
|
2
|
-
module azureSqlProvision './provision/azureSql.bicep' = {
|
|
3
|
-
name: 'azureSqlProvision'
|
|
4
|
-
params: {
|
|
5
|
-
provisionParameters: provisionParameters
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
output azureSqlOutput object = {
|
|
10
|
-
teamsFxPluginId: 'azure-sql'
|
|
11
|
-
sqlResourceId: azureSqlProvision.outputs.sqlResourceId
|
|
12
|
-
sqlEndpoint: azureSqlProvision.outputs.sqlEndpoint
|
|
13
|
-
databaseName: azureSqlProvision.outputs.sqlDatabaseName
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}' // Try to read name for user assigned identity from parameters
|
|
5
|
-
|
|
6
|
-
// user assigned identity will be used to access other Azure resources
|
|
7
|
-
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
|
|
8
|
-
name: identityName
|
|
9
|
-
location: resourceGroup().location
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
output identityName string = identityName
|
|
13
|
-
output identityClientId string = managedIdentity.properties.clientId
|
|
14
|
-
output identityResourceId string = managedIdentity.id
|
|
15
|
-
output identityPrincipalId string = managedIdentity.properties.principalId
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Resources for identity
|
|
2
|
-
module userAssignedIdentityProvision './provision/identity.bicep' = {
|
|
3
|
-
name: 'userAssignedIdentityProvision'
|
|
4
|
-
params: {
|
|
5
|
-
provisionParameters: provisionParameters
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
output identityOutput object = {
|
|
10
|
-
teamsFxPluginId: 'identity'
|
|
11
|
-
identityName: userAssignedIdentityProvision.outputs.identityName
|
|
12
|
-
identityResourceId: userAssignedIdentityProvision.outputs.identityResourceId
|
|
13
|
-
identityClientId: userAssignedIdentityProvision.outputs.identityClientId
|
|
14
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
param userAssignedIdentityObjectId string // User assigned identity that will be grant Key Vault access permission
|
|
4
|
-
|
|
5
|
-
var resourceBaseName = provisionParameters.resourceBaseName
|
|
6
|
-
var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}' // Try to read name for Key Vault from parameters
|
|
7
|
-
var tenantId = subscription().tenantId
|
|
8
|
-
var m365ClientSecretName = 'm365ClientSecret' // Secret name of AAD app client secret
|
|
9
|
-
var m365ClientSecret = contains(provisionParameters, 'm365ClientSecret') ? provisionParameters['m365ClientSecret'] : '' // Try to read AAD app client secret from parameters
|
|
10
|
-
var botClientSecretName = 'botClientSecret' // Secret name of bot's AAD app client secret
|
|
11
|
-
var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : '' // Try to read bot's AAD app client secret from parameters
|
|
12
|
-
var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard' // Try to read SKU for Key Vault from parameters
|
|
13
|
-
|
|
14
|
-
resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
|
|
15
|
-
name: keyVaultName
|
|
16
|
-
location: resourceGroup().location
|
|
17
|
-
properties: {
|
|
18
|
-
tenantId: tenantId
|
|
19
|
-
accessPolicies: [
|
|
20
|
-
{
|
|
21
|
-
tenantId: tenantId
|
|
22
|
-
objectId: userAssignedIdentityObjectId
|
|
23
|
-
permissions: {
|
|
24
|
-
secrets: [
|
|
25
|
-
'get'
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
sku: {
|
|
31
|
-
name: keyVaultSkuName // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add "keyVaultSkuName" property to provisionParameters to override the default value "standard".
|
|
32
|
-
family: 'A'
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Set or update AAD app client secret if it's not empty in parameters
|
|
38
|
-
resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(m365ClientSecret) != 0) {
|
|
39
|
-
parent: keyVault
|
|
40
|
-
name: m365ClientSecretName
|
|
41
|
-
properties: {
|
|
42
|
-
value: m365ClientSecret
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Set or update bot's AAD app client secret if it's not empty in parameters
|
|
47
|
-
resource botClientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(botClientSecret) != 0) {
|
|
48
|
-
parent: keyVault
|
|
49
|
-
name: botClientSecretName
|
|
50
|
-
properties: {
|
|
51
|
-
value: botClientSecret
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
output keyVaultResourceId string = keyVault.id
|
|
56
|
-
output m365ClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${m365ClientSecretName})'
|
|
57
|
-
output botClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${botClientSecretName})'
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Resources for Azure Key Vault
|
|
2
|
-
module keyVaultProvision './provision/keyVault.bicep' = {
|
|
3
|
-
name: 'keyVaultProvision'
|
|
4
|
-
params: {
|
|
5
|
-
provisionParameters: provisionParameters
|
|
6
|
-
userAssignedIdentityObjectId: {{identity.principalId}}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
output keyVaultOutput object = {
|
|
11
|
-
teamsFxPluginId: 'key-vault'
|
|
12
|
-
keyVaultResourceId: keyVaultProvision.outputs.keyVaultResourceId
|
|
13
|
-
m365ClientSecretReference: keyVaultProvision.outputs.m365ClientSecretReference
|
|
14
|
-
botClientSecretReference: keyVaultProvision.outputs.botClientSecretReference
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Setting API configuration for cloud environment:
|
|
3
|
-
We have set configuration in `.env.teamsfx.local` based on your answers.
|
|
4
|
-
Before you deploy your code to Azure using TeamsFx, follow https://aka.ms/teamsfx-add-appsettings to add the following configuration (with their appropriate values) to your Azure environment:
|
|
5
|
-
TEAMSFX_API_{{capitalName}}_ENDPOINT
|
|
6
|
-
{{#if (equals config.AuthConfig.AuthType "basic")}}
|
|
7
|
-
TEAMSFX_API_{{capitalName}}_USERNAME
|
|
8
|
-
TEAMSFX_API_{{capitalName}}_PASSWORD
|
|
9
|
-
{{else if (equals config.AuthConfig.AuthType "aad")}}
|
|
10
|
-
{{#if (equals config.AuthConfig.ReuseTeamsApp false)}}
|
|
11
|
-
TEAMSFX_API_{{capitalName}}_TENANT_ID
|
|
12
|
-
TEAMSFX_API_{{capitalName}}_CLIENT_ID
|
|
13
|
-
TEAMSFX_API_{{capitalName}}_CLIENT_SECRET
|
|
14
|
-
{{/if}}
|
|
15
|
-
{{else if (equals config.AuthConfig.AuthType "apikey")}}
|
|
16
|
-
TEAMSFX_API_{{capitalName}}_API_KEY
|
|
17
|
-
{{/if}}
|
|
18
|
-
|
|
19
|
-
Refer to https://aka.ms/teamsfx-connect-api to learn more.
|
|
20
|
-
*/
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// This file is auto generated by Teams Toolkit to provide you instructions and reference code to call your API.
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
Next steps:
|
|
5
|
-
1. Run npm install. We added the @microsoft/teamsfx to your package.json.
|
|
6
|
-
You need to run the command under the "{{component}}" folder (instead of your project root folder).
|
|
7
|
-
{{#if (equals config.AuthConfig.AuthType "basic")}}
|
|
8
|
-
2. Add your user password to TEAMSFX_API_{{capitalName}}_PASSWORD in `{{component}}/.env.teamsfx.local`.
|
|
9
|
-
{{else if (equals config.AuthConfig.AuthType "aad")}}
|
|
10
|
-
{{#if (equals config.AuthConfig.ReuseTeamsApp false)}}
|
|
11
|
-
2. Replace "<your-api-scope>" in this file with actual scope required by the API.
|
|
12
|
-
3. Set `TEAMSFX_API_{{capitalName}}_CLIENT_SECRET` to your client secret in the file `{{component}}/.env.teamsfx.local`.
|
|
13
|
-
{{else}}
|
|
14
|
-
2. Replace "<your-api-scope>" in this file with actual scope required by the API.
|
|
15
|
-
3. Refer https://aka.ms/teamsfx-connect-api-with-aad for configuring AAD app and consent scopes.
|
|
16
|
-
{{/if}}
|
|
17
|
-
{{else if (equals config.AuthConfig.AuthType "apikey")}}
|
|
18
|
-
2. Set `TEAMSFX_API_{{capitalName}}_API_KEY` to your API key in the file `{{component}}/.env.teamsfx.local`.
|
|
19
|
-
{{else if (equals config.AuthConfig.AuthType "cert")}}
|
|
20
|
-
2. Add code to read your certificate content and replace "<your-cert>" and "<your-private-key>" with the actual values.
|
|
21
|
-
{{else if (equals config.AuthConfig.AuthType "custom")}}
|
|
22
|
-
2. Refer to the sample code and comments in this file to implement your custom auth provider.
|
|
23
|
-
{{/if}}
|
|
24
|
-
|
|
25
|
-
{{#if (equals languageExt "js")}}
|
|
26
|
-
It is also recommended to put all the configurations into config.js file.
|
|
27
|
-
{{else}}
|
|
28
|
-
It is also recommended to put all the configurations into config.ts file.
|
|
29
|
-
{{/if}}
|
|
30
|
-
|
|
31
|
-
You can import the API client (an Axios instance) in another file and call {{config.APIName}} APIs and authentication is now handled for you automatically.
|
|
32
|
-
|
|
33
|
-
Here is an example for a GET request to "relative_path_of_target_api":
|
|
34
|
-
```
|
|
35
|
-
{{#if (equals languageExt "js")}}
|
|
36
|
-
const { {{config.APIName}}Client } = require("relative_path_to_this_file");
|
|
37
|
-
{{else}}
|
|
38
|
-
import { {{config.APIName}}Client } from "relative_path_to_this_file";
|
|
39
|
-
{{/if}}
|
|
40
|
-
|
|
41
|
-
const response = await {{config.APIName}}Client.get("relative_path_of_target_api");
|
|
42
|
-
// You only need to enter the relative path for your API.
|
|
43
|
-
// For example, if you want to call api https://my-api-endpoint/test and you configured https://my-api-endpoint as the API endpoint,
|
|
44
|
-
// your code will be: const response = await {{config.APIName}}Client.get("test");
|
|
45
|
-
|
|
46
|
-
const responseBody = response.data;
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
If you added this API while local debugging, stop local debugging and start again because local debugging will not hot reload changes to `.env.teamsfx.local`.
|
|
50
|
-
|
|
51
|
-
Refer to https://aka.ms/teamsfx-connect-api to learn more.
|
|
52
|
-
*/
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
const teamsfxSdk = require("@microsoft/teamsfx");
|
|
2
|
-
|
|
3
|
-
// Load application configuration. This sample uses the client credential flow to acquire a token for your API.
|
|
4
|
-
{{#if (equals config.AuthConfig.ReuseTeamsApp true)}}
|
|
5
|
-
const teamsFx = new teamsfxSdk.TeamsFx(teamsfxSdk.IdentityType.App, {
|
|
6
|
-
authorityHost: process.env.M365_AUTHORITY_HOST,
|
|
7
|
-
tenantId: process.env.M365_TENANT_ID,
|
|
8
|
-
clientId: process.env.M365_CLIENT_ID,
|
|
9
|
-
clientSecret: process.env.M365_CLIENT_SECRET,
|
|
10
|
-
});
|
|
11
|
-
{{else}}
|
|
12
|
-
const teamsFx = new teamsfxSdk.TeamsFx(teamsfxSdk.IdentityType.App, {
|
|
13
|
-
// You can replace the default authorityHost URL
|
|
14
|
-
authorityHost: "https://login.microsoftonline.com",
|
|
15
|
-
tenantId: process.env.TEAMSFX_API_{{capitalName}}_TENANT_ID,
|
|
16
|
-
clientId: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_ID,
|
|
17
|
-
// This references the client secret that you must add in the file `.env.teamsfx.local`.
|
|
18
|
-
clientSecret: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_SECRET,
|
|
19
|
-
});
|
|
20
|
-
{{/if}}
|
|
21
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
22
|
-
const appCredential = teamsFx.getCredential();
|
|
23
|
-
const authProvider = new teamsfxSdk.BearerTokenAuthProvider(
|
|
24
|
-
// TODO: Replace '<your-api-scope>' with your required API scope
|
|
25
|
-
async () => (await appCredential.getToken("<your-api-scope>")).token
|
|
26
|
-
);
|
|
27
|
-
const {{config.APIName}}Client = teamsfxSdk.createApiClient(
|
|
28
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
29
|
-
authProvider
|
|
30
|
-
);
|
|
31
|
-
module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const teamsfxSdk = require("@microsoft/teamsfx");
|
|
2
|
-
|
|
3
|
-
// Load application configuration
|
|
4
|
-
const teamsFx = new teamsfxSdk.TeamsFx();
|
|
5
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
6
|
-
const authProvider = new teamsfxSdk.ApiKeyProvider(
|
|
7
|
-
"{{config.AuthConfig.Name}}",
|
|
8
|
-
process.env.TEAMSFX_API_{{capitalName}}_API_KEY,
|
|
9
|
-
{{#if (equals config.AuthConfig.Location "request header")}}
|
|
10
|
-
teamsfxSdk.ApiKeyLocation.Header
|
|
11
|
-
{{else}}
|
|
12
|
-
teamsfxSdk.ApiKeyLocation.QueryParams
|
|
13
|
-
{{/if}}
|
|
14
|
-
);
|
|
15
|
-
const {{config.APIName}}Client = teamsfxSdk.createApiClient(
|
|
16
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
17
|
-
authProvider
|
|
18
|
-
);
|
|
19
|
-
module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const teamsfxSdk = require("@microsoft/teamsfx");
|
|
2
|
-
|
|
3
|
-
// Load application configuration
|
|
4
|
-
const teamsFx = new teamsfxSdk.TeamsFx();
|
|
5
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
6
|
-
const authProvider = new teamsfxSdk.BasicAuthProvider(
|
|
7
|
-
process.env.TEAMSFX_API_{{capitalName}}_USERNAME,
|
|
8
|
-
process.env.TEAMSFX_API_{{capitalName}}_PASSWORD
|
|
9
|
-
);
|
|
10
|
-
const {{config.APIName}}Client = teamsfxSdk.createApiClient(
|
|
11
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
12
|
-
authProvider
|
|
13
|
-
);
|
|
14
|
-
module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const teamsfxSdk = require("@microsoft/teamsfx");
|
|
2
|
-
|
|
3
|
-
// Load application configuration
|
|
4
|
-
const teamsFx = new teamsfxSdk.TeamsFx();
|
|
5
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
6
|
-
const authProvider = new teamsfxSdk.CertificateAuthProvider(
|
|
7
|
-
// TODO:
|
|
8
|
-
// 1. Add code to read your certificate and private key.
|
|
9
|
-
// 2. Replace "<your-cert>" and "<your-private-key>" with your actual certificate and private key values
|
|
10
|
-
// If you have a .pfx certificate, you can use the `createPfxCertOption` function to initialize your certificate
|
|
11
|
-
teamsfxSdk.createPemCertOption("<your-cert>", "<your-private-key>")
|
|
12
|
-
);
|
|
13
|
-
const {{config.APIName}}Client = teamsfxSdk.createApiClient(
|
|
14
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
15
|
-
authProvider
|
|
16
|
-
);
|
|
17
|
-
module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const teamsfxSdk = require("@microsoft/teamsfx");
|
|
2
|
-
|
|
3
|
-
// A custom authProvider implements the `AuthProvider` interface.
|
|
4
|
-
// This sample authProvider implementation will set a custom property in the request header
|
|
5
|
-
class CustomAuthProvider {
|
|
6
|
-
customProperty;
|
|
7
|
-
customValue;
|
|
8
|
-
|
|
9
|
-
constructor(customProperty, customValue) {
|
|
10
|
-
this.customProperty = customProperty;
|
|
11
|
-
this.customValue = customValue;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Replace the sample code with your own logic.
|
|
15
|
-
AddAuthenticationInfo = async (config) => {
|
|
16
|
-
if (!config.headers) {
|
|
17
|
-
config.headers = {};
|
|
18
|
-
}
|
|
19
|
-
config.headers[this.customProperty] = this.customValue;
|
|
20
|
-
return config;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Load application configuration
|
|
25
|
-
const teamsFx = new teamsfxSdk.TeamsFx();
|
|
26
|
-
|
|
27
|
-
const authProvider = new CustomAuthProvider(
|
|
28
|
-
// You can also add configuration to the file `.env.teamsfx.local` and use `process.env.{setting_name}` to read the configuration. For example:
|
|
29
|
-
// process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_PROPERTY,
|
|
30
|
-
// process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_VALUE
|
|
31
|
-
"customPropery",
|
|
32
|
-
"customValue"
|
|
33
|
-
);
|
|
34
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
35
|
-
const {{config.APIName}}Client = teamsfxSdk.createApiClient(
|
|
36
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
37
|
-
authProvider
|
|
38
|
-
);
|
|
39
|
-
module.exports.{{config.APIName}}Client = {{config.APIName}}Client;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TeamsFx,
|
|
3
|
-
createApiClient,
|
|
4
|
-
BearerTokenAuthProvider,
|
|
5
|
-
IdentityType,
|
|
6
|
-
} from "@microsoft/teamsfx";
|
|
7
|
-
|
|
8
|
-
// Load application configuration. This sample uses the client credential flow to acquire a token for your API.
|
|
9
|
-
{{#if (equals config.AuthConfig.ReuseTeamsApp true)}}
|
|
10
|
-
const teamsFx = new TeamsFx(IdentityType.App, {
|
|
11
|
-
authorityHost: process.env.M365_AUTHORITY_HOST!,
|
|
12
|
-
tenantId: process.env.M365_TENANT_ID!,
|
|
13
|
-
clientId: process.env.M365_CLIENT_ID!,
|
|
14
|
-
clientSecret: process.env.M365_CLIENT_SECRET!,
|
|
15
|
-
});
|
|
16
|
-
{{else}}
|
|
17
|
-
const teamsFx = new TeamsFx(IdentityType.App, {
|
|
18
|
-
// You can replace the default authorityHost URL
|
|
19
|
-
authorityHost: "https://login.microsoftonline.com",
|
|
20
|
-
tenantId: process.env.TEAMSFX_API_{{capitalName}}_TENANT_ID!,
|
|
21
|
-
clientId: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_ID!,
|
|
22
|
-
// This references the client secret that you must add in the file `.env.teamsfx.local`.
|
|
23
|
-
clientSecret: process.env.TEAMSFX_API_{{capitalName}}_CLIENT_SECRET!,
|
|
24
|
-
});
|
|
25
|
-
{{/if}}
|
|
26
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
27
|
-
const appCredential = teamsFx.getCredential();
|
|
28
|
-
const authProvider = new BearerTokenAuthProvider(
|
|
29
|
-
// TODO: Replace '<your-api-scope>' with your required API scope
|
|
30
|
-
async () => (await appCredential.getToken("<your-api-scope>"))!.token
|
|
31
|
-
);
|
|
32
|
-
const {{config.APIName}}Client = createApiClient(
|
|
33
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
34
|
-
authProvider
|
|
35
|
-
);
|
|
36
|
-
export { {{config.APIName}}Client };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { TeamsFx, createApiClient, ApiKeyProvider, ApiKeyLocation } from "@microsoft/teamsfx";
|
|
2
|
-
|
|
3
|
-
// Load application configuration
|
|
4
|
-
const teamsFx = new TeamsFx();
|
|
5
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
6
|
-
const authProvider = new ApiKeyProvider(
|
|
7
|
-
"{{config.AuthConfig.Name}}",
|
|
8
|
-
process.env.TEAMSFX_API_{{capitalName}}_API_KEY,
|
|
9
|
-
{{#if (equals config.AuthConfig.Location "request header")}}
|
|
10
|
-
ApiKeyLocation.Header
|
|
11
|
-
{{else}}
|
|
12
|
-
ApiKeyLocation.QueryParams
|
|
13
|
-
{{/if}}
|
|
14
|
-
);
|
|
15
|
-
const {{config.APIName}}Client = createApiClient(process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT, authProvider);
|
|
16
|
-
export { {{config.APIName}}Client };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TeamsFx, createApiClient, BasicAuthProvider } from "@microsoft/teamsfx";
|
|
2
|
-
|
|
3
|
-
// Load application configuration
|
|
4
|
-
const teamsFx = new TeamsFx();
|
|
5
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
6
|
-
const authProvider = new BasicAuthProvider(
|
|
7
|
-
process.env.TEAMSFX_API_{{capitalName}}_USERNAME,
|
|
8
|
-
process.env.TEAMSFX_API_{{capitalName}}_PASSWORD
|
|
9
|
-
);
|
|
10
|
-
const {{config.APIName}}Client = createApiClient(
|
|
11
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
12
|
-
authProvider
|
|
13
|
-
);
|
|
14
|
-
export { {{config.APIName}}Client };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TeamsFx,
|
|
3
|
-
createApiClient,
|
|
4
|
-
CertificateAuthProvider,
|
|
5
|
-
createPemCertOption,
|
|
6
|
-
} from "@microsoft/teamsfx";
|
|
7
|
-
|
|
8
|
-
// Load application configuration
|
|
9
|
-
const teamsFx = new TeamsFx();
|
|
10
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
11
|
-
const authProvider = new CertificateAuthProvider(
|
|
12
|
-
// TODO:
|
|
13
|
-
// 1. Add code to read your certificate and private key.
|
|
14
|
-
// 2. Replace "<your-cert>" and "<your-private-key>" with your actual certificate and private key values
|
|
15
|
-
// If you have a .pfx certificate, you can use the `createPfxCertOption` function to initialize your certificate
|
|
16
|
-
createPemCertOption("<your-cert>", "<your-private-key>")
|
|
17
|
-
);
|
|
18
|
-
const {{config.APIName}}Client = createApiClient(process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT, authProvider);
|
|
19
|
-
export { {{config.APIName}}Client };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { TeamsFx, createApiClient, AuthProvider } from "@microsoft/teamsfx";
|
|
2
|
-
import { AxiosRequestConfig } from "axios";
|
|
3
|
-
|
|
4
|
-
// A custom authProvider implements the `AuthProvider` interface.
|
|
5
|
-
// This sample authProvider implementation will set a custom property in the request header
|
|
6
|
-
class CustomAuthProvider implements AuthProvider {
|
|
7
|
-
customProperty: string;
|
|
8
|
-
customValue: string;
|
|
9
|
-
|
|
10
|
-
constructor(customProperty: string, customValue: string) {
|
|
11
|
-
this.customProperty = customProperty;
|
|
12
|
-
this.customValue = customValue;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Replace the sample code with your own logic.
|
|
16
|
-
AddAuthenticationInfo: (config: AxiosRequestConfig) => Promise<AxiosRequestConfig> = async (
|
|
17
|
-
config
|
|
18
|
-
) => {
|
|
19
|
-
if (!config.headers) {
|
|
20
|
-
config.headers = {};
|
|
21
|
-
}
|
|
22
|
-
config.headers[this.customProperty] = this.customValue;
|
|
23
|
-
return config;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Load application configuration
|
|
28
|
-
const teamsFx = new TeamsFx();
|
|
29
|
-
|
|
30
|
-
const authProvider = new CustomAuthProvider(
|
|
31
|
-
// You can also add configuration to the file `.env.teamsfx.local` and use `process.env.{setting_name}` to read the configuration. For example:
|
|
32
|
-
// process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_PROPERTY,
|
|
33
|
-
// process.env.TEAMSFX_API_{{capitalName}}_CUSTOM_VALUE
|
|
34
|
-
"customPropery",
|
|
35
|
-
"customValue"
|
|
36
|
-
);
|
|
37
|
-
// Initialize a new axios instance to call {{config.APIName}}
|
|
38
|
-
const {{config.APIName}}Client = createApiClient(
|
|
39
|
-
process.env.TEAMSFX_API_{{capitalName}}_ENDPOINT,
|
|
40
|
-
authProvider
|
|
41
|
-
);
|
|
42
|
-
export { {{config.APIName}}Client };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
var resourceBaseName = provisionParameters.resourceBaseName
|
|
4
|
-
var identityName = contains(provisionParameters, 'userAssignedIdentityName') ? provisionParameters['userAssignedIdentityName'] : '${resourceBaseName}' // Try to read name for user assigned identity from parameters
|
|
5
|
-
|
|
6
|
-
// user assigned identity will be used to access other Azure resources
|
|
7
|
-
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = {
|
|
8
|
-
name: identityName
|
|
9
|
-
location: resourceGroup().location
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
output identityName string = identityName
|
|
13
|
-
output identityClientId string = managedIdentity.properties.clientId
|
|
14
|
-
output identityResourceId string = managedIdentity.id
|
|
15
|
-
output identityPrincipalId string = managedIdentity.properties.principalId
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Resources for identity
|
|
2
|
-
module userAssignedIdentityProvision '\{{fx-resource-identity.Provision.identity.path}}' = {
|
|
3
|
-
name: 'userAssignedIdentityProvision'
|
|
4
|
-
params: {
|
|
5
|
-
provisionParameters: provisionParameters
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
output identityOutput object = {
|
|
10
|
-
teamsFxPluginId: 'fx-resource-identity'
|
|
11
|
-
identityName: userAssignedIdentityProvision.outputs.identityName
|
|
12
|
-
identityResourceId: userAssignedIdentityProvision.outputs.identityResourceId
|
|
13
|
-
identityClientId: userAssignedIdentityProvision.outputs.identityClientId
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
|
3
|
-
"contentVersion": "1.0.0.0",
|
|
4
|
-
"parameters": {
|
|
5
|
-
"location": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"defaultValue": "[resourceGroup().location]",
|
|
8
|
-
"metadata": {
|
|
9
|
-
"description": "Location for all resources."
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"identityName": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"metadata": {
|
|
15
|
-
"description": "name for identity"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"variables": {},
|
|
20
|
-
"resources": [
|
|
21
|
-
{
|
|
22
|
-
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
|
|
23
|
-
"name": "[parameters('identityName')]",
|
|
24
|
-
"apiVersion": "2018-11-30",
|
|
25
|
-
"location": "[parameters('location')]"
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
@secure()
|
|
2
|
-
param provisionParameters object
|
|
3
|
-
param userAssignedIdentityObjectId string // User assigned identity that will be grant Key Vault access permission
|
|
4
|
-
|
|
5
|
-
var resourceBaseName = provisionParameters.resourceBaseName
|
|
6
|
-
var keyVaultName = contains(provisionParameters, 'keyVaultName') ? provisionParameters['keyVaultName'] : '${resourceBaseName}' // Try to read name for Key Vault from parameters
|
|
7
|
-
var tenantId = subscription().tenantId
|
|
8
|
-
var m365ClientSecretName = 'm365ClientSecret' // Secret name of AAD app client secret
|
|
9
|
-
var m365ClientSecret = contains(provisionParameters, 'm365ClientSecret') ? provisionParameters['m365ClientSecret'] : '' // Try to read AAD app client secret from parameters
|
|
10
|
-
var botClientSecretName = 'botClientSecret' // Secret name of bot's AAD app client secret
|
|
11
|
-
var botClientSecret = contains(provisionParameters, 'botAadAppClientSecret') ? provisionParameters['botAadAppClientSecret'] : '' // Try to read bot's AAD app client secret from parameters
|
|
12
|
-
var keyVaultSkuName = contains(provisionParameters, 'keyVaultSkuName') ? provisionParameters['keyVaultSkuName'] : 'standard' // Try to read SKU for Key Vault from parameters
|
|
13
|
-
|
|
14
|
-
resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' = {
|
|
15
|
-
name: keyVaultName
|
|
16
|
-
location: resourceGroup().location
|
|
17
|
-
properties: {
|
|
18
|
-
tenantId: tenantId
|
|
19
|
-
accessPolicies: [
|
|
20
|
-
{
|
|
21
|
-
tenantId: tenantId
|
|
22
|
-
objectId: userAssignedIdentityObjectId
|
|
23
|
-
permissions: {
|
|
24
|
-
secrets: [
|
|
25
|
-
'get'
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
sku: {
|
|
31
|
-
name: keyVaultSkuName // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add "keyVaultSkuName" property to provisionParameters to override the default value "standard".
|
|
32
|
-
family: 'A'
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Set or update AAD app client secret if it's not empty in parameters
|
|
38
|
-
resource clientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(m365ClientSecret) != 0) {
|
|
39
|
-
parent: keyVault
|
|
40
|
-
name: m365ClientSecretName
|
|
41
|
-
properties: {
|
|
42
|
-
value: m365ClientSecret
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Set or update bot's AAD app client secret if it's not empty in parameters
|
|
47
|
-
resource botClientSecretKv 'Microsoft.KeyVault/vaults/secrets@2019-09-01' = if (length(botClientSecret) != 0) {
|
|
48
|
-
parent: keyVault
|
|
49
|
-
name: botClientSecretName
|
|
50
|
-
properties: {
|
|
51
|
-
value: botClientSecret
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
output keyVaultResourceId string = keyVault.id
|
|
56
|
-
output m365ClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${m365ClientSecretName})'
|
|
57
|
-
output botClientSecretReference string = '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${botClientSecretName})'
|