@microsoft/teamsfx-core 2.0.1 → 2.0.2-alpha.bd1241522.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/armInterface.d.ts +0 -5
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -1
- package/build/common/deps-checker/checkerFactory.js +0 -7
- package/build/common/deps-checker/checkerFactory.js.map +1 -1
- package/build/common/deps-checker/constant/helpLink.d.ts +0 -4
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -1
- package/build/common/deps-checker/constant/helpLink.js +1 -9
- package/build/common/deps-checker/constant/helpLink.js.map +1 -1
- package/build/common/deps-checker/constant/message.d.ts +0 -5
- package/build/common/deps-checker/constant/message.d.ts.map +1 -1
- package/build/common/deps-checker/constant/message.js +0 -6
- package/build/common/deps-checker/constant/message.js.map +1 -1
- package/build/common/deps-checker/constant/telemetry.d.ts +2 -33
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -1
- package/build/common/deps-checker/constant/telemetry.js +0 -31
- package/build/common/deps-checker/constant/telemetry.js.map +1 -1
- package/build/common/deps-checker/depsChecker.d.ts +0 -3
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js +0 -3
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsError.d.ts +0 -12
- package/build/common/deps-checker/depsError.d.ts.map +1 -1
- package/build/common/deps-checker/depsError.js +1 -29
- package/build/common/deps-checker/depsError.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +0 -3
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +2 -2
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +4 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.d.ts +0 -20
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/nodeChecker.js +1 -51
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
- package/build/common/deps-checker/util/index.d.ts +0 -1
- package/build/common/deps-checker/util/index.d.ts.map +1 -1
- package/build/common/deps-checker/util/index.js +0 -1
- package/build/common/deps-checker/util/index.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +0 -9
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -59
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/localStateHelper.d.ts.map +1 -1
- package/build/common/local/localStateHelper.js.map +1 -1
- package/build/common/projectSettingsHelper.d.ts +1 -7
- package/build/common/projectSettingsHelper.d.ts.map +1 -1
- package/build/common/projectSettingsHelper.js +5 -81
- package/build/common/projectSettingsHelper.js.map +1 -1
- package/build/common/projectSettingsHelperV3.d.ts +0 -1
- package/build/common/projectSettingsHelperV3.d.ts.map +1 -1
- package/build/common/projectSettingsHelperV3.js +1 -10
- package/build/common/projectSettingsHelperV3.js.map +1 -1
- package/build/common/samples.d.ts.map +1 -1
- package/build/common/samples.js +20 -42
- 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 +4 -3
- package/build/common/tools.d.ts +1 -16
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +55 -205
- package/build/common/tools.js.map +1 -1
- package/build/component/code/utils.d.ts +0 -10
- package/build/component/code/utils.d.ts.map +1 -1
- package/build/component/code/utils.js +1 -171
- package/build/component/code/utils.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 +5 -216
- package/build/component/constants.d.ts.map +1 -1
- package/build/component/constants.js +17 -408
- package/build/component/constants.js.map +1 -1
- package/build/component/coordinator/index.d.ts +8 -7
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +35 -188
- 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/aad/create.d.ts.map +1 -1
- package/build/component/driver/aad/create.js +2 -2
- package/build/component/driver/aad/create.js.map +1 -1
- package/build/component/driver/aad/update.d.ts.map +1 -1
- package/build/component/driver/aad/update.js +2 -2
- package/build/component/driver/aad/update.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/arm/deployImpl.d.ts +1 -1
- package/build/component/driver/arm/deployImpl.d.ts.map +1 -1
- package/build/component/driver/arm/deployImpl.js +8 -8
- package/build/component/driver/arm/deployImpl.js.map +1 -1
- package/build/component/driver/arm/util/bicepChecker.d.ts +4 -0
- package/build/component/driver/arm/util/bicepChecker.d.ts.map +1 -0
- package/build/component/{utils/depsChecker → driver/arm/util}/bicepChecker.js +19 -132
- package/build/component/driver/arm/util/bicepChecker.js.map +1 -0
- package/build/component/driver/arm/util/handleError.d.ts +18 -0
- package/build/component/driver/arm/util/handleError.d.ts.map +1 -0
- package/build/component/driver/arm/util/handleError.js +169 -0
- package/build/component/driver/arm/util/handleError.js.map +1 -0
- package/build/component/driver/arm/util/innerHandleError.d.ts +4 -0
- package/build/component/driver/arm/util/innerHandleError.d.ts.map +1 -0
- package/build/component/driver/arm/util/innerHandleError.js +33 -0
- package/build/component/driver/arm/util/innerHandleError.js.map +1 -0
- package/build/component/driver/arm/util/util.d.ts.map +1 -1
- package/build/component/driver/arm/util/util.js.map +1 -1
- package/build/component/driver/arm/validator.d.ts.map +1 -1
- package/build/component/driver/arm/validator.js.map +1 -1
- package/build/component/driver/botAadApp/create.d.ts.map +1 -1
- package/build/component/driver/botAadApp/create.js +2 -2
- package/build/component/driver/botAadApp/create.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/devTool/error/dotnetInstallationUserError.d.ts +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.d.ts.map +1 -1
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js +4 -2
- package/build/component/driver/devTool/error/dotnetInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.d.ts.map +1 -1
- package/build/component/driver/devTool/error/funcInstallationUserError.js +4 -2
- package/build/component/driver/devTool/error/funcInstallationUserError.js.map +1 -1
- package/build/component/driver/devTool/installDriver.d.ts +1 -0
- package/build/component/driver/devTool/installDriver.d.ts.map +1 -1
- package/build/component/driver/devTool/installDriver.js +17 -24
- package/build/component/driver/devTool/installDriver.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/baseBuildDriver.d.ts.map +1 -1
- package/build/component/driver/script/baseBuildDriver.js +2 -2
- package/build/component/driver/script/baseBuildDriver.js.map +1 -1
- package/build/component/driver/script/scriptDriver.d.ts +11 -1
- package/build/component/driver/script/scriptDriver.d.ts.map +1 -1
- package/build/component/driver/script/scriptDriver.js +121 -4
- package/build/component/driver/script/scriptDriver.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts +0 -1
- package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -11
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts +0 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +34 -18
- package/build/component/driver/teamsApp/validate.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/bot/question.d.ts.map +1 -1
- package/build/component/feature/bot/question.js +13 -23
- package/build/component/feature/bot/question.js.map +1 -1
- package/build/component/feature/sso.d.ts +0 -4
- package/build/component/feature/sso.d.ts.map +1 -1
- package/build/component/feature/sso.js +10 -144
- 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 +2 -27
- 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/migrate.d.ts +0 -1
- package/build/component/migrate.d.ts.map +1 -1
- package/build/component/migrate.js +1 -9
- package/build/component/migrate.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.d.ts +3 -64
- package/build/component/question.d.ts.map +1 -1
- package/build/component/question.js +61 -663
- package/build/component/question.js.map +1 -1
- package/build/component/registerService.d.ts +0 -16
- package/build/component/registerService.d.ts.map +1 -1
- package/build/component/registerService.js +0 -16
- package/build/component/registerService.js.map +1 -1
- package/build/component/resource/aadApp/aadApp.d.ts.map +1 -1
- package/build/component/resource/aadApp/aadApp.js +6 -24
- package/build/component/resource/aadApp/aadApp.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 +16 -258
- package/build/component/resource/appManifest/appStudio.js.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.d.ts.map +1 -1
- package/build/component/resource/appManifest/utils/ManifestUtils.js +1 -9
- package/build/component/resource/appManifest/utils/ManifestUtils.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/charsetUtils.d.ts +3 -0
- package/build/component/utils/charsetUtils.d.ts.map +1 -0
- package/build/component/utils/charsetUtils.js +241 -0
- package/build/component/utils/charsetUtils.js.map +1 -0
- package/build/component/utils/depsChecker/common.d.ts +0 -1
- package/build/component/utils/depsChecker/common.d.ts.map +1 -1
- package/build/component/utils/depsChecker/common.js +0 -1
- package/build/component/utils/depsChecker/common.js.map +1 -1
- package/build/component/utils/envUtil.d.ts.map +1 -1
- package/build/component/utils/envUtil.js +4 -1
- package/build/component/utils/envUtil.js.map +1 -1
- package/build/component/utils/metadataUtil.d.ts.map +1 -1
- package/build/component/utils/metadataUtil.js +9 -7
- package/build/component/utils/metadataUtil.js.map +1 -1
- package/build/component/utils/pathUtils.d.ts.map +1 -1
- package/build/component/utils/pathUtils.js +10 -9
- package/build/component/utils/pathUtils.js.map +1 -1
- package/build/component/utils/settingsUtil.js +3 -3
- package/build/component/utils/settingsUtil.js.map +1 -1
- package/build/component/utils.d.ts +1 -29
- package/build/component/utils.d.ts.map +1 -1
- package/build/component/utils.js +24 -501
- package/build/component/utils.js.map +1 -1
- package/build/component/workflow.d.ts +0 -2
- package/build/component/workflow.d.ts.map +1 -1
- package/build/component/workflow.js +1 -692
- package/build/component/workflow.js.map +1 -1
- package/build/core/FxCore.d.ts +26 -42
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +84 -664
- package/build/core/FxCore.js.map +1 -1
- package/build/core/FxCoreImplementV3.d.ts +14 -8
- package/build/core/FxCoreImplementV3.d.ts.map +1 -1
- package/build/core/FxCoreImplementV3.js +93 -121
- 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/envInfoLoaderV3.d.ts +1 -10
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.js +1 -207
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -1
- package/build/core/middleware/projectMigratorV3.d.ts +3 -1
- package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
- package/build/core/middleware/projectMigratorV3.js +46 -52
- package/build/core/middleware/projectMigratorV3.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts +1 -4
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +13 -78
- 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 +10 -23
- package/build/core/middleware/projectVersionChecker.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +0 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +8 -54
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.d.ts +0 -5
- package/build/core/middleware/utils/MigrationUtils.d.ts.map +1 -1
- package/build/core/middleware/utils/MigrationUtils.js +1 -77
- package/build/core/middleware/utils/MigrationUtils.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 +2 -12
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +18 -240
- 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/error/common.d.ts +9 -0
- package/build/error/common.d.ts.map +1 -1
- package/build/error/common.js +39 -1
- package/build/error/common.js.map +1 -1
- package/build/error/script.d.ts +1 -1
- package/build/error/script.d.ts.map +1 -1
- package/build/error/script.js +3 -3
- package/build/error/script.js.map +1 -1
- package/build/index.d.ts +0 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -4
- package/build/index.js.map +1 -1
- package/package.json +14 -33
- package/resource/package.nls.json +13 -272
- 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/cpUtils.d.ts +0 -12
- package/build/common/cpUtils.d.ts.map +0 -1
- package/build/common/cpUtils.js +0 -68
- package/build/common/cpUtils.js.map +0 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +0 -27
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +0 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +0 -222
- package/build/common/deps-checker/internal/ngrokChecker.js.map +0 -1
- 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/samples-config.json +0 -201
- package/build/component/arm.d.ts +0 -42
- package/build/component/arm.d.ts.map +0 -1
- package/build/component/arm.js +0 -653
- package/build/component/arm.js.map +0 -1
- package/build/component/bicep.d.ts +0 -8
- package/build/component/bicep.d.ts.map +0 -1
- package/build/component/bicep.js +0 -49
- package/build/component/bicep.js.map +0 -1
- package/build/component/code/api/apiCode.d.ts +0 -13
- package/build/component/code/api/apiCode.d.ts.map +0 -1
- package/build/component/code/api/apiCode.js +0 -154
- package/build/component/code/api/apiCode.js.map +0 -1
- package/build/component/code/api/depsChecker/funcHelper.d.ts +0 -11
- package/build/component/code/api/depsChecker/funcHelper.d.ts.map +0 -1
- package/build/component/code/api/depsChecker/funcHelper.js +0 -55
- package/build/component/code/api/depsChecker/funcHelper.js.map +0 -1
- package/build/component/code/api/depsChecker/funcPluginLogger.d.ts +0 -17
- package/build/component/code/api/depsChecker/funcPluginLogger.d.ts.map +0 -1
- package/build/component/code/api/depsChecker/funcPluginLogger.js +0 -52
- package/build/component/code/api/depsChecker/funcPluginLogger.js.map +0 -1
- package/build/component/code/api/depsChecker/funcPluginTelemetry.d.ts +0 -15
- package/build/component/code/api/depsChecker/funcPluginTelemetry.d.ts.map +0 -1
- package/build/component/code/api/depsChecker/funcPluginTelemetry.js +0 -53
- package/build/component/code/api/depsChecker/funcPluginTelemetry.js.map +0 -1
- package/build/component/code/api/enums.d.ts +0 -11
- package/build/component/code/api/enums.d.ts.map +0 -1
- package/build/component/code/api/enums.js +0 -18
- package/build/component/code/api/enums.js.map +0 -1
- package/build/component/code/api/language-strategy.d.ts +0 -15
- package/build/component/code/api/language-strategy.d.ts.map +0 -1
- package/build/component/code/api/language-strategy.js +0 -51
- package/build/component/code/api/language-strategy.js.map +0 -1
- package/build/component/code/api/scaffold.d.ts +0 -13
- package/build/component/code/api/scaffold.d.ts.map +0 -1
- package/build/component/code/api/scaffold.js +0 -83
- package/build/component/code/api/scaffold.js.map +0 -1
- package/build/component/code/api/telemetry-helper.d.ts +0 -20
- package/build/component/code/api/telemetry-helper.d.ts.map +0 -1
- package/build/component/code/api/telemetry-helper.js +0 -43
- package/build/component/code/api/telemetry-helper.js.map +0 -1
- package/build/component/code/appSettingUtils.d.ts +0 -17
- package/build/component/code/appSettingUtils.d.ts.map +0 -1
- package/build/component/code/appSettingUtils.js +0 -106
- package/build/component/code/appSettingUtils.js.map +0 -1
- package/build/component/code/appSettings/baseAppSettings.json +0 -10
- package/build/component/code/appSettings/botAppSettings.json +0 -4
- package/build/component/code/appSettings/ssoBlazorAppSettings.json +0 -9
- package/build/component/code/appSettings/ssoBotAppSettings.json +0 -13
- package/build/component/code/botCode.d.ts +0 -14
- package/build/component/code/botCode.d.ts.map +0 -1
- package/build/component/code/botCode.js +0 -198
- package/build/component/code/botCode.js.map +0 -1
- package/build/component/code/constants.d.ts +0 -32
- package/build/component/code/constants.d.ts.map +0 -1
- package/build/component/code/constants.js +0 -38
- package/build/component/code/constants.js.map +0 -1
- package/build/component/code/error.d.ts +0 -11
- package/build/component/code/error.d.ts.map +0 -1
- package/build/component/code/error.js +0 -41
- package/build/component/code/error.js.map +0 -1
- 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/code/tab/constants.d.ts +0 -7
- package/build/component/code/tab/constants.d.ts.map +0 -1
- package/build/component/code/tab/constants.js +0 -17
- package/build/component/code/tab/constants.js.map +0 -1
- package/build/component/code/tab/deploy.d.ts +0 -16
- package/build/component/code/tab/deploy.d.ts.map +0 -1
- package/build/component/code/tab/deploy.js +0 -95
- package/build/component/code/tab/deploy.js.map +0 -1
- package/build/component/code/tab/env.d.ts +0 -23
- package/build/component/code/tab/env.d.ts.map +0 -1
- package/build/component/code/tab/env.js +0 -101
- package/build/component/code/tab/env.js.map +0 -1
- package/build/component/code/tab/tabCode.d.ts +0 -17
- package/build/component/code/tab/tabCode.d.ts.map +0 -1
- package/build/component/code/tab/tabCode.js +0 -248
- package/build/component/code/tab/tabCode.js.map +0 -1
- package/build/component/connection/apimConfig.d.ts +0 -11
- package/build/component/connection/apimConfig.d.ts.map +0 -1
- package/build/component/connection/apimConfig.js +0 -44
- package/build/component/connection/apimConfig.js.map +0 -1
- package/build/component/connection/azureFunctionConfig.d.ts +0 -9
- package/build/component/connection/azureFunctionConfig.d.ts.map +0 -1
- package/build/component/connection/azureFunctionConfig.js +0 -25
- package/build/component/connection/azureFunctionConfig.js.map +0 -1
- package/build/component/connection/azureResourceConfig.d.ts +0 -11
- package/build/component/connection/azureResourceConfig.d.ts.map +0 -1
- package/build/component/connection/azureResourceConfig.js +0 -72
- package/build/component/connection/azureResourceConfig.js.map +0 -1
- package/build/component/connection/azureWebAppConfig.d.ts +0 -9
- package/build/component/connection/azureWebAppConfig.d.ts.map +0 -1
- package/build/component/connection/azureWebAppConfig.js +0 -25
- package/build/component/connection/azureWebAppConfig.js.map +0 -1
- package/build/component/coordinator/lifecycleStage.d.ts +0 -2
- package/build/component/coordinator/lifecycleStage.d.ts.map +0 -1
- package/build/component/coordinator/lifecycleStage.js +0 -23
- package/build/component/coordinator/lifecycleStage.js.map +0 -1
- package/build/component/core.d.ts +0 -65
- package/build/component/core.d.ts.map +0 -1
- package/build/component/core.js +0 -653
- package/build/component/core.js.map +0 -1
- package/build/component/debug/error.d.ts +0 -8
- package/build/component/debug/error.d.ts.map +0 -1
- package/build/component/debug/error.js +0 -49
- package/build/component/debug/error.js.map +0 -1
- package/build/component/debug/index.d.ts +0 -30
- package/build/component/debug/index.d.ts.map +0 -1
- package/build/component/debug/index.js +0 -541
- package/build/component/debug/index.js.map +0 -1
- package/build/component/debug/util/ngrok.d.ts +0 -6
- package/build/component/debug/util/ngrok.d.ts.map +0 -1
- package/build/component/debug/util/ngrok.js +0 -65
- package/build/component/debug/util/ngrok.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/api/api.d.ts +0 -8
- package/build/component/feature/api/api.d.ts.map +0 -1
- package/build/component/feature/api/api.js +0 -188
- package/build/component/feature/api/api.js.map +0 -1
- package/build/component/feature/api/constants.d.ts +0 -4
- package/build/component/feature/api/constants.d.ts.map +0 -1
- package/build/component/feature/api/constants.js +0 -9
- package/build/component/feature/api/constants.js.map +0 -1
- package/build/component/feature/api/question.d.ts +0 -3
- package/build/component/feature/api/question.d.ts.map +0 -1
- package/build/component/feature/api/question.js +0 -13
- package/build/component/feature/api/question.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/apiConnector.d.ts +0 -11
- package/build/component/feature/apiconnector/apiConnector.d.ts.map +0 -1
- package/build/component/feature/apiconnector/apiConnector.js +0 -43
- package/build/component/feature/apiconnector/apiConnector.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/feature/apim.d.ts +0 -8
- package/build/component/feature/apim.d.ts.map +0 -1
- package/build/component/feature/apim.js +0 -123
- package/build/component/feature/apim.js.map +0 -1
- package/build/component/feature/bot/bot.d.ts +0 -12
- package/build/component/feature/bot/bot.d.ts.map +0 -1
- package/build/component/feature/bot/bot.js +0 -309
- package/build/component/feature/bot/bot.js.map +0 -1
- package/build/component/feature/cicd/CICDImpl.d.ts +0 -9
- package/build/component/feature/cicd/CICDImpl.d.ts.map +0 -1
- package/build/component/feature/cicd/CICDImpl.js +0 -106
- package/build/component/feature/cicd/CICDImpl.js.map +0 -1
- package/build/component/feature/cicd/cicd.d.ts +0 -8
- package/build/component/feature/cicd/cicd.d.ts.map +0 -1
- package/build/component/feature/cicd/cicd.js +0 -115
- package/build/component/feature/cicd/cicd.js.map +0 -1
- package/build/component/feature/cicd/constants.d.ts +0 -39
- package/build/component/feature/cicd/constants.d.ts.map +0 -1
- package/build/component/feature/cicd/constants.js +0 -53
- package/build/component/feature/cicd/constants.js.map +0 -1
- package/build/component/feature/cicd/errors.d.ts +0 -25
- package/build/component/feature/cicd/errors.d.ts.map +0 -1
- package/build/component/feature/cicd/errors.js +0 -49
- package/build/component/feature/cicd/errors.js.map +0 -1
- package/build/component/feature/cicd/existingTemplatesStat.d.ts +0 -16
- package/build/component/feature/cicd/existingTemplatesStat.d.ts.map +0 -1
- package/build/component/feature/cicd/existingTemplatesStat.js +0 -75
- package/build/component/feature/cicd/existingTemplatesStat.js.map +0 -1
- package/build/component/feature/cicd/logger.d.ts +0 -10
- package/build/component/feature/cicd/logger.d.ts.map +0 -1
- package/build/component/feature/cicd/logger.js +0 -27
- package/build/component/feature/cicd/logger.js.map +0 -1
- package/build/component/feature/cicd/provider/azdoProvider.d.ts +0 -6
- package/build/component/feature/cicd/provider/azdoProvider.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/azdoProvider.js +0 -25
- package/build/component/feature/cicd/provider/azdoProvider.js.map +0 -1
- package/build/component/feature/cicd/provider/enums.d.ts +0 -12
- package/build/component/feature/cicd/provider/enums.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/enums.js +0 -19
- package/build/component/feature/cicd/provider/enums.js.map +0 -1
- package/build/component/feature/cicd/provider/factory.d.ts +0 -6
- package/build/component/feature/cicd/provider/factory.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/factory.js +0 -28
- package/build/component/feature/cicd/provider/factory.js.map +0 -1
- package/build/component/feature/cicd/provider/githubProvider.d.ts +0 -6
- package/build/component/feature/cicd/provider/githubProvider.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/githubProvider.js +0 -25
- package/build/component/feature/cicd/provider/githubProvider.js.map +0 -1
- package/build/component/feature/cicd/provider/jenkinsProvider.d.ts +0 -6
- package/build/component/feature/cicd/provider/jenkinsProvider.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/jenkinsProvider.js +0 -25
- package/build/component/feature/cicd/provider/jenkinsProvider.js.map +0 -1
- package/build/component/feature/cicd/provider/provider.d.ts +0 -11
- package/build/component/feature/cicd/provider/provider.d.ts.map +0 -1
- package/build/component/feature/cicd/provider/provider.js +0 -106
- package/build/component/feature/cicd/provider/provider.js.map +0 -1
- package/build/component/feature/cicd/questions.d.ts +0 -18
- package/build/component/feature/cicd/questions.d.ts.map +0 -1
- package/build/component/feature/cicd/questions.js +0 -82
- package/build/component/feature/cicd/questions.js.map +0 -1
- package/build/component/feature/cicd/result.d.ts +0 -11
- package/build/component/feature/cicd/result.d.ts.map +0 -1
- package/build/component/feature/cicd/result.js +0 -37
- package/build/component/feature/cicd/result.js.map +0 -1
- package/build/component/feature/cicd/utils/buildScripts.d.ts +0 -3
- package/build/component/feature/cicd/utils/buildScripts.d.ts.map +0 -1
- package/build/component/feature/cicd/utils/buildScripts.js +0 -29
- package/build/component/feature/cicd/utils/buildScripts.js.map +0 -1
- package/build/component/feature/cicd/utils/telemetry-helper.d.ts +0 -29
- package/build/component/feature/cicd/utils/telemetry-helper.d.ts.map +0 -1
- package/build/component/feature/cicd/utils/telemetry-helper.js +0 -46
- package/build/component/feature/cicd/utils/telemetry-helper.js.map +0 -1
- package/build/component/feature/keyVault.d.ts +0 -16
- package/build/component/feature/keyVault.d.ts.map +0 -1
- package/build/component/feature/keyVault.js +0 -90
- package/build/component/feature/keyVault.js.map +0 -1
- package/build/component/feature/spfx.d.ts +0 -9
- package/build/component/feature/spfx.d.ts.map +0 -1
- package/build/component/feature/spfx.js +0 -121
- package/build/component/feature/spfx.js.map +0 -1
- package/build/component/feature/sql.d.ts +0 -10
- package/build/component/feature/sql.d.ts.map +0 -1
- package/build/component/feature/sql.js +0 -80
- package/build/component/feature/sql.js.map +0 -1
- package/build/component/feature/tab.d.ts +0 -10
- package/build/component/feature/tab.d.ts.map +0 -1
- package/build/component/feature/tab.js +0 -238
- package/build/component/feature/tab.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/middleware/logger.d.ts +0 -21
- package/build/component/middleware/logger.d.ts.map +0 -1
- package/build/component/middleware/logger.js +0 -53
- package/build/component/middleware/logger.js.map +0 -1
- package/build/component/middleware/progressbar.d.ts +0 -3
- package/build/component/middleware/progressbar.d.ts.map +0 -1
- package/build/component/middleware/progressbar.js +0 -22
- package/build/component/middleware/progressbar.js.map +0 -1
- package/build/component/middleware/runWithCatchError.d.ts +0 -6
- package/build/component/middleware/runWithCatchError.d.ts.map +0 -1
- package/build/component/middleware/runWithCatchError.js +0 -43
- package/build/component/middleware/runWithCatchError.js.map +0 -1
- package/build/component/middleware/telemetry.d.ts +0 -37
- package/build/component/middleware/telemetry.d.ts.map +0 -1
- package/build/component/middleware/telemetry.js +0 -70
- package/build/component/middleware/telemetry.js.map +0 -1
- package/build/component/middleware/types.d.ts +0 -25
- package/build/component/middleware/types.d.ts.map +0 -1
- package/build/component/middleware/types.js +0 -5
- package/build/component/middleware/types.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/identity.d.ts +0 -28
- package/build/component/resource/identity.d.ts.map +0 -1
- package/build/component/resource/identity.js +0 -42
- package/build/component/resource/identity.js.map +0 -1
- package/build/component/resource/keyVault.d.ts +0 -29
- package/build/component/resource/keyVault.d.ts.map +0 -1
- package/build/component/resource/keyVault.js +0 -47
- package/build/component/resource/keyVault.js.map +0 -1
- package/build/component/resource/simpleAuth/constants.d.ts +0 -122
- package/build/component/resource/simpleAuth/constants.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/constants.js +0 -163
- package/build/component/resource/simpleAuth/constants.js.map +0 -1
- package/build/component/resource/simpleAuth/errors.d.ts +0 -17
- package/build/component/resource/simpleAuth/errors.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/errors.js +0 -91
- package/build/component/resource/simpleAuth/errors.js.map +0 -1
- package/build/component/resource/simpleAuth/index.d.ts +0 -12
- package/build/component/resource/simpleAuth/index.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/index.js +0 -115
- package/build/component/resource/simpleAuth/index.js.map +0 -1
- package/build/component/resource/simpleAuth/result.d.ts +0 -9
- package/build/component/resource/simpleAuth/result.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/result.js +0 -35
- package/build/component/resource/simpleAuth/result.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/common.d.ts +0 -23
- package/build/component/resource/simpleAuth/utils/common.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/common.js +0 -150
- package/build/component/resource/simpleAuth/utils/common.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/dialog.d.ts +0 -5
- package/build/component/resource/simpleAuth/utils/dialog.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/dialog.js +0 -7
- package/build/component/resource/simpleAuth/utils/dialog.js.map +0 -1
- package/build/component/resource/simpleAuth/utils/telemetry.d.ts +0 -17
- package/build/component/resource/simpleAuth/utils/telemetry.d.ts.map +0 -1
- package/build/component/resource/simpleAuth/utils/telemetry.js +0 -45
- package/build/component/resource/simpleAuth/utils/telemetry.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 -3
- package/build/component/utils/backupFiles.d.ts.map +0 -1
- package/build/component/utils/backupFiles.js +0 -142
- package/build/component/utils/backupFiles.js.map +0 -1
- package/build/component/utils/depsChecker/bicepChecker.d.ts +0 -11
- package/build/component/utils/depsChecker/bicepChecker.d.ts.map +0 -1
- package/build/component/utils/depsChecker/bicepChecker.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/component/utils/progressHelper.d.ts +0 -7
- package/build/component/utils/progressHelper.d.ts.map +0 -1
- package/build/component/utils/progressHelper.js +0 -20
- package/build/component/utils/progressHelper.js.map +0 -1
- package/build/core/dependencyChecker.d.ts +0 -1
- package/build/core/dependencyChecker.d.ts.map +0 -1
- package/build/core/dependencyChecker.js +0 -2
- package/build/core/dependencyChecker.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/build/core/middleware/CommonErrorHandlerMW.d.ts +0 -14
- package/build/core/middleware/CommonErrorHandlerMW.d.ts.map +0 -1
- package/build/core/middleware/CommonErrorHandlerMW.js +0 -63
- package/build/core/middleware/CommonErrorHandlerMW.js.map +0 -1
- package/build/core/middleware/aadManifestMigration.d.ts +0 -3
- package/build/core/middleware/aadManifestMigration.d.ts.map +0 -1
- package/build/core/middleware/aadManifestMigration.js +0 -119
- package/build/core/middleware/aadManifestMigration.js.map +0 -1
- package/build/core/middleware/consolidateLocalRemote.d.ts +0 -5
- package/build/core/middleware/consolidateLocalRemote.d.ts.map +0 -1
- package/build/core/middleware/consolidateLocalRemote.js +0 -378
- package/build/core/middleware/consolidateLocalRemote.js.map +0 -1
- package/build/core/middleware/envInfoWriter.d.ts +0 -8
- package/build/core/middleware/envInfoWriter.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriter.js +0 -76
- package/build/core/middleware/envInfoWriter.js.map +0 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +0 -6
- package/build/core/middleware/envInfoWriterV3.d.ts.map +0 -1
- package/build/core/middleware/envInfoWriterV3.js +0 -67
- package/build/core/middleware/envInfoWriterV3.js.map +0 -1
- package/build/core/middleware/projectMigrator.d.ts +0 -40
- package/build/core/middleware/projectMigrator.d.ts.map +0 -1
- package/build/core/middleware/projectMigrator.js +0 -1014
- package/build/core/middleware/projectMigrator.js.map +0 -1
- package/build/core/middleware/projectSettingsWriter.d.ts +0 -6
- package/build/core/middleware/projectSettingsWriter.d.ts.map +0 -1
- package/build/core/middleware/projectSettingsWriter.js +0 -52
- package/build/core/middleware/projectSettingsWriter.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/cicd/azdo/README.md +0 -48
- package/templates/plugins/resource/cicd/azdo/cd.yml +0 -56
- package/templates/plugins/resource/cicd/azdo/ci.yml +0 -37
- package/templates/plugins/resource/cicd/azdo/provision.yml +0 -53
- package/templates/plugins/resource/cicd/azdo/publish.yml +0 -45
- package/templates/plugins/resource/cicd/github/README.md +0 -48
- package/templates/plugins/resource/cicd/github/cd.yml +0 -75
- package/templates/plugins/resource/cicd/github/ci.yml +0 -34
- package/templates/plugins/resource/cicd/github/provision.yml +0 -69
- package/templates/plugins/resource/cicd/github/publish.yml +0 -51
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.cd +0 -77
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.ci +0 -34
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.provision +0 -79
- package/templates/plugins/resource/cicd/jenkins/Jenkinsfile.publish +0 -57
- package/templates/plugins/resource/cicd/jenkins/README.md +0 -45
- package/templates/plugins/resource/cicd_v2/azdo/README.md +0 -48
- package/templates/plugins/resource/cicd_v2/azdo/cd.yml +0 -56
- package/templates/plugins/resource/cicd_v2/azdo/ci.yml +0 -37
- package/templates/plugins/resource/cicd_v2/azdo/provision.yml +0 -53
- package/templates/plugins/resource/cicd_v2/azdo/publish.yml +0 -45
- package/templates/plugins/resource/cicd_v2/github/README.md +0 -48
- package/templates/plugins/resource/cicd_v2/github/cd.yml +0 -71
- package/templates/plugins/resource/cicd_v2/github/ci.yml +0 -34
- package/templates/plugins/resource/cicd_v2/github/provision.yml +0 -65
- package/templates/plugins/resource/cicd_v2/github/publish.yml +0 -47
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.cd +0 -77
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.ci +0 -34
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.provision +0 -79
- package/templates/plugins/resource/cicd_v2/jenkins/Jenkinsfile.publish +0 -57
- package/templates/plugins/resource/cicd_v2/jenkins/README.md +0 -45
- 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,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,48 +0,0 @@
|
|
|
1
|
-
# How to use pre-cooked pipelines on Azure DevOps
|
|
2
|
-
|
|
3
|
-
## Prerequisites
|
|
4
|
-
- Teams app projects are version controlled by Azure DevOps.
|
|
5
|
-
- (Optional) An Microsoft 365 account. If you do not have Microsoft 365 account, apply one from [Microsoft 365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program). The Microsoft 365 account credentials are required for steps of provision, publish and deployment for SPFx projects. Any extra interactive verification steps should be disabled for the Microsoft 365 account, and please check details in sections below.
|
|
6
|
-
- (Optional) An Azure service principal with necessary permissions. The Azure service principal credentials are required for steps of provision and deploy for Azure based projects.
|
|
7
|
-
|
|
8
|
-
## Steps
|
|
9
|
-
After the pre-cooked pipelines are scaffolded successfully, the following steps are expected to be performed:
|
|
10
|
-
1. Commit and push your project source code to Azure DevOps remote repository, including the CI/CD yml files.
|
|
11
|
-
1. Create corresponding Azure DevOps pipelines by following [Create your first Azure DevOps Pipeline](https://docs.microsoft.com/en-us/azure/devops/pipelines/create-first-pipeline?view=azure-devops&tabs=java%2Ctfs-2018-2%2Cbrowser).
|
|
12
|
-
1. Configure necessary Azure DevOps Pipeline variables if your pipelines require credentials by checking into the yml files.
|
|
13
|
-
1. Trigger your pipelines automatically, manually or do customization (Check the `trigger:` or `pr:` section in yml files to find the triggers). More about triggers in Azure DevOps, refer to [Triggers in Azure pipelines](https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops).
|
|
14
|
-
|
|
15
|
-
## Azure DevOps Pipeline Variables
|
|
16
|
-
Steps to create Pipeline variables in Azure DevOps:
|
|
17
|
-
1. In the Pipeline editing page, click `Variables` on top right and click `New variable`.
|
|
18
|
-
1. Enter Name/Value pair for your variable.
|
|
19
|
-
1. Toggle the checkbox of `Keep this value secret` if necessary.
|
|
20
|
-
1. Click `OK` to create the variable.
|
|
21
|
-
|
|
22
|
-
|Name|Description|
|
|
23
|
-
|---|---|
|
|
24
|
-
|AZURE_SERVICE_PRINCIPAL_NAME|The service principal name of Azure used to provision resources.|
|
|
25
|
-
|AZURE_SERVICE_PRINCIPAL_PASSWORD|The password of Azure service principal.|
|
|
26
|
-
|AZURE_SUBSCRIPTION_ID|To identify the subscription in which the resources will be provisioned.|
|
|
27
|
-
|AZURE_TENANT_ID|To identify the tenant in which the subscription resides.|
|
|
28
|
-
|M365_ACCOUNT_NAME|The Microsoft 365 account for creating and publishing the Teams App.|
|
|
29
|
-
|M365_ACCOUNT_PASSWORD|The password of the Microsoft 365 account.|
|
|
30
|
-
|M365_TENANT_ID|To identify the tenant in which the Teams App will be created/published. This value is optional unless you have a multi-tenant account and you want to use another tenant. Read more on [how to find your Microsoft 365 tenant ID](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant).|
|
|
31
|
-
> Note: Currently, a non-interactive authentication style for Microsoft 365 is used in CI/CD workflows, so please ensure that your Microsoft 365 account has sufficient privileges in your tenant and doesn't have multi-factor authentication or other advanced security features enabled. Please refer to the [Configure Microsoft 365 Credentials](https://github.com/OfficeDev/teamsfx-cli-action/blob/main/README.md#configure-m365azure-credentials-as-github-secret) to make sure you have disabled Multi-factor Authentication and Security Defaults for the credentials used in the workflow.
|
|
32
|
-
|
|
33
|
-
> Note: Currently, service principal for Azure is used in CI/CD workflows, and to create Azure service principals for use, refer to [here](#how-to-create-azure-service-principals-for-use).
|
|
34
|
-
|
|
35
|
-
# How to create Azure service principals for use?
|
|
36
|
-
To provision and deploy resources targeting Azure inside CI/CD, you must create an Azure service principal for use.
|
|
37
|
-
|
|
38
|
-
Briefly, the steps include:
|
|
39
|
-
1. Register an Azure AD application in single tenant, and it requires sufficient permissions in your Azure AD tenant.
|
|
40
|
-
2. Assign a role to your Azure AD application to access your Azure subscription, and `Contributor` role is recommended.
|
|
41
|
-
3. Create a new Azure AD application secret.
|
|
42
|
-
4. Grab your tenant id, application id(AZURE_SERVICE_PRINCIPAL_NAME), and the secret(AZURE_SERVICE_PRINCIPAL_PASSWORD) for use.
|
|
43
|
-
|
|
44
|
-
For detailed guidelines, refer to [the official document](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal). There're three ways to create service principal, [Azure portal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal), [PowerShell](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-authenticate-service-principal-powershell), [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli), and you can choose the way you like.
|
|
45
|
-
|
|
46
|
-
# Additional Notes
|
|
47
|
-
* [Create your first Azure DevOps Pipeline](https://docs.microsoft.com/en-us/azure/devops/pipelines/create-first-pipeline?view=azure-devops&tabs=java%2Ctfs-2018-2%2Cbrowser)
|
|
48
|
-
* [Manage your apps with the Developer Portal for Microsoft Teams](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/teams-developer-portal)
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for continuous deployment.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
trigger:
|
|
5
|
-
# When new commits are pushed onto the main branch.
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
pool:
|
|
9
|
-
vmImage: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
# Setup environment.
|
|
13
|
-
- task: NodeTool@0
|
|
14
|
-
inputs:
|
|
15
|
-
versionSpec: '14.17.0'
|
|
16
|
-
checkLatest: true
|
|
17
|
-
|
|
18
|
-
- task: Bash@3
|
|
19
|
-
env:
|
|
20
|
-
<%#hosting_type_contains_spfx%>
|
|
21
|
-
M365_ACCOUNT_NAME: $(M365_ACCOUNT_NAME)
|
|
22
|
-
M365_ACCOUNT_PASSWORD: $(M365_ACCOUNT_PASSWORD)
|
|
23
|
-
M365_TENANT_ID: $(M365_TENANT_ID)
|
|
24
|
-
<%/hosting_type_contains_spfx%>
|
|
25
|
-
# To enable M365 account login by environment variables and non-interactive mode.
|
|
26
|
-
CI_ENABLED: 'true'
|
|
27
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
28
|
-
# To specify the version of TTK CLI for use.
|
|
29
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
30
|
-
inputs:
|
|
31
|
-
targetType: 'inline'
|
|
32
|
-
script: |
|
|
33
|
-
set -evuxo pipefail
|
|
34
|
-
|
|
35
|
-
# Install the TTK CLI for later use.
|
|
36
|
-
npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION}
|
|
37
|
-
|
|
38
|
-
# Build the project.
|
|
39
|
-
# The way to build the current project depends on how you scaffold it.
|
|
40
|
-
# Different folder structures require different commands set.
|
|
41
|
-
# 'npm ci' may be used here to install dependencies and it depends on package-lock.json.
|
|
42
|
-
# If you prefer to use 'npm ci', please make sure to commit package-lock.json first, or just change it to 'npm install'.
|
|
43
|
-
<%build_script%>
|
|
44
|
-
|
|
45
|
-
# Run unit test.
|
|
46
|
-
# Currently, no opinioned solution for unit test provided during scaffolding, so,
|
|
47
|
-
# set up any unit test framework you prefer (for example, mocha or jest) and update the commands accordingly in below.
|
|
48
|
-
# npm run test
|
|
49
|
-
|
|
50
|
-
<%#hosting_type_contains_azure%>
|
|
51
|
-
# Login Azure by service principal
|
|
52
|
-
npx teamsfx account login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID)
|
|
53
|
-
<%/hosting_type_contains_azure%>
|
|
54
|
-
|
|
55
|
-
# Deploy to hosting environment.
|
|
56
|
-
npx teamsfx deploy --env ${TEAMSFX_ENV_NAME}<%#cloud_resources_contains_apim%> --api-version v1 --open-api-document openapi/openapi.json --api-prefix <%api_prefix%><%/cloud_resources_contains_apim%>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for continuous integration.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
pr:
|
|
5
|
-
# When pull requests targeting the dev branch created.
|
|
6
|
-
- dev
|
|
7
|
-
|
|
8
|
-
pool:
|
|
9
|
-
vmImage: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
# Setup environment.
|
|
13
|
-
- task: NodeTool@0
|
|
14
|
-
inputs:
|
|
15
|
-
versionSpec: '14.17.0'
|
|
16
|
-
checkLatest: true
|
|
17
|
-
|
|
18
|
-
- task: Bash@3
|
|
19
|
-
inputs:
|
|
20
|
-
targetType: 'inline'
|
|
21
|
-
script: |
|
|
22
|
-
set -evuxo pipefail
|
|
23
|
-
|
|
24
|
-
# This is just an example workflow for continuous integration.
|
|
25
|
-
# You should customize it to meet your own requirements.
|
|
26
|
-
|
|
27
|
-
# Build the project.
|
|
28
|
-
# The way to build the current project depends on how you scaffold it.
|
|
29
|
-
# Different folder structures require different commands set.
|
|
30
|
-
# 'npm ci' may be used here to install dependencies and it depends on package-lock.json.
|
|
31
|
-
# If you prefer to use 'npm ci', please make sure to commit package-lock.json first, or just change it to 'npm install'.
|
|
32
|
-
<%build_script%>
|
|
33
|
-
|
|
34
|
-
# Run unit test.
|
|
35
|
-
# Currently, no opinionated solution for unit test provided during scaffolding, so,
|
|
36
|
-
# set up any unit test framework you prefer (for example, mocha or jest) and update the commands accordingly in below.
|
|
37
|
-
# npm run test
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for provision.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
trigger: none
|
|
5
|
-
# Manually trigger this workflow, and you should pick the right branch.
|
|
6
|
-
|
|
7
|
-
pool:
|
|
8
|
-
vmImage: ubuntu-latest
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
# Setup environment.
|
|
12
|
-
- task: NodeTool@0
|
|
13
|
-
inputs:
|
|
14
|
-
versionSpec: '14.17.0'
|
|
15
|
-
checkLatest: true
|
|
16
|
-
|
|
17
|
-
# Check out
|
|
18
|
-
- checkout: self
|
|
19
|
-
persistCredentials: true
|
|
20
|
-
|
|
21
|
-
- task: Bash@3
|
|
22
|
-
env:
|
|
23
|
-
M365_ACCOUNT_NAME: $(M365_ACCOUNT_NAME)
|
|
24
|
-
M365_ACCOUNT_PASSWORD: $(M365_ACCOUNT_PASSWORD)
|
|
25
|
-
M365_TENANT_ID: $(M365_TENANT_ID)
|
|
26
|
-
CI_ENABLED: 'true'
|
|
27
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
28
|
-
# To specify the version of TTK CLI for use.
|
|
29
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
30
|
-
inputs:
|
|
31
|
-
targetType: 'inline'
|
|
32
|
-
script: |
|
|
33
|
-
set -evuxo pipefail
|
|
34
|
-
|
|
35
|
-
# Install the TTK CLI for later use.
|
|
36
|
-
npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION}
|
|
37
|
-
<%#hosting_type_contains_azure%>
|
|
38
|
-
|
|
39
|
-
# Login Azure by service principal
|
|
40
|
-
npx teamsfx account login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID)
|
|
41
|
-
<%/hosting_type_contains_azure%>
|
|
42
|
-
|
|
43
|
-
# We suggest to do the `teamsfx provision` step manually or in a separate workflow. The following steps are for your reference.
|
|
44
|
-
# After provisioning, you should commit necessary files under .fx into the repository.
|
|
45
|
-
npx teamsfx provision<%#hosting_type_contains_azure%> --subscription $(AZURE_SUBSCRIPTION_ID)<%/hosting_type_contains_azure%> --env ${TEAMSFX_ENV_NAME}<%#cloud_resources_contains_sql%> --sql-admin-name $(SQL_ADMIN_NAME) --sql-password $(SQL_PASSWORD)<%/cloud_resources_contains_sql%>
|
|
46
|
-
|
|
47
|
-
# Commit provision configs if necessary.
|
|
48
|
-
# To enable scripts to run git commands, check https://docs.microsoft.com/en-us/azure/devops/pipelines/scripts/git-commands?view=azure-devops&tabs=yaml
|
|
49
|
-
git config user.name "azdo-agent"
|
|
50
|
-
git config user.email "azdo-agent@azure.com"
|
|
51
|
-
git add .
|
|
52
|
-
git commit -m "chore: commit provision configs"
|
|
53
|
-
git push origin HEAD:${BUILD_SOURCEBRANCHNAME}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for publishing Teams app.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
trigger: none
|
|
5
|
-
# Manually trigger this workflow, and you should pick the right branch.
|
|
6
|
-
|
|
7
|
-
pool:
|
|
8
|
-
vmImage: ubuntu-latest
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
# Setup environment.
|
|
12
|
-
- task: NodeTool@0
|
|
13
|
-
inputs:
|
|
14
|
-
versionSpec: '14.17.0'
|
|
15
|
-
checkLatest: true
|
|
16
|
-
|
|
17
|
-
- task: Bash@3
|
|
18
|
-
env:
|
|
19
|
-
M365_ACCOUNT_NAME: $(M365_ACCOUNT_NAME)
|
|
20
|
-
M365_ACCOUNT_PASSWORD: $(M365_ACCOUNT_PASSWORD)
|
|
21
|
-
M365_TENANT_ID: $(M365_TENANT_ID)
|
|
22
|
-
# To enable M365 account login by non-interactive mode.
|
|
23
|
-
CI_ENABLED: 'true'
|
|
24
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
25
|
-
# To specify the version of TTK CLI for use.
|
|
26
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
27
|
-
inputs:
|
|
28
|
-
targetType: 'inline'
|
|
29
|
-
script: |
|
|
30
|
-
set -evuxo pipefail
|
|
31
|
-
|
|
32
|
-
# Install the TTK CLI for later use.
|
|
33
|
-
npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION}
|
|
34
|
-
|
|
35
|
-
# This step is to pack the Teams App as zip file,
|
|
36
|
-
# which can be used to be uploaded onto Teams Client for installation.
|
|
37
|
-
# Build Teams App's Package.
|
|
38
|
-
npx teamsfx package --env ${TEAMSFX_ENV_NAME}
|
|
39
|
-
|
|
40
|
-
# Upload Teams App's Package as artifacts.
|
|
41
|
-
# Choose what your workflow/pipeline platform provided to
|
|
42
|
-
# upload build/appPackage/appPackage.staging.zip as artifacts.
|
|
43
|
-
|
|
44
|
-
# Publish Teams App.
|
|
45
|
-
npx teamsfx publish --env ${TEAMSFX_ENV_NAME}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# How to use pre-cooked workflows on GitHub
|
|
2
|
-
|
|
3
|
-
## Prerequisites
|
|
4
|
-
- Teams app projects are version controlled by GitHub.
|
|
5
|
-
- (Optional) An Microsoft 365 account. If you do not have Microsoft 365 account, apply one from [Microsoft 365 developer program](https://developer.microsoft.com/en-us/microsoft-365/dev-program). The Microsoft 365 account credentials are required for steps of provision, publish and deployment for SPFx projects. Any extra interactive verification steps should be disabled for the Microsoft 365 account, and please check details in sections below.
|
|
6
|
-
- (Optional) An Azure service principal with necessary permissions. The Azure service principal credentials are required for steps of provision and deploy for Azure based projects.
|
|
7
|
-
|
|
8
|
-
## Steps
|
|
9
|
-
After the pre-cooked workflows are scaffolded successfully, the following steps are expected to be performed:
|
|
10
|
-
1. Commit and push your project source code to GitHub remote repository, including the CI/CD yml files.
|
|
11
|
-
1. Configure necessary GitHub secrets if your workflows require credentials by checking into the yml files.
|
|
12
|
-
1. Trigger your workflows automatically, manually or do customization (Check the `on:` section in yml files to find the triggers). More about triggers in GitHub, refer to [trigger a workflow](https://docs.github.com/en/actions/using-workflows/triggering-a-workflow).
|
|
13
|
-
|
|
14
|
-
## GitHub Secrets
|
|
15
|
-
Steps to create secrets by environment in GitHub (Environment feature is not available in Private repositories.):
|
|
16
|
-
1. In the project `Settings` page, navigate to `Environments` section and click `New environment`.
|
|
17
|
-
1. Enter a name for your environment. The default environment name provided in the template is `test_environment`. Click `Configure environment` to proceed.
|
|
18
|
-
1. In the next page, click `Add Secret` to add secrets for each of the items listed in the table below.
|
|
19
|
-
|
|
20
|
-
Or create repository secrets by follow the path of `Settings` > `Security` > `Secrets` > `Actions` > `New repository secret`.
|
|
21
|
-
|
|
22
|
-
|Name|Description|
|
|
23
|
-
|---|---|
|
|
24
|
-
|AZURE_SERVICE_PRINCIPAL_NAME|The service principal name of Azure used to provision resources.|
|
|
25
|
-
|AZURE_SERVICE_PRINCIPAL_PASSWORD|The password of Azure service principal.|
|
|
26
|
-
|AZURE_SUBSCRIPTION_ID|To identify the subscription in which the resources will be provisioned.|
|
|
27
|
-
|AZURE_TENANT_ID|To identify the tenant in which the subscription resides.|
|
|
28
|
-
|M365_ACCOUNT_NAME|The Microsoft 365 account for creating and publishing the Teams App.|
|
|
29
|
-
|M365_ACCOUNT_PASSWORD|The password of the Microsoft 365 account.|
|
|
30
|
-
|M365_TENANT_ID|To identify the tenant in which the Teams App will be created/published. This value is optional unless you have a multi-tenant account and you want to use another tenant. Read more on [how to find your Microsoft 365 tenant ID](https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant).|
|
|
31
|
-
> Note: Currently, a non-interactive authentication style for Microsoft 365 is used in CI/CD workflows, so please ensure that your Microsoft 365 account has sufficient privileges in your tenant and doesn't have multi-factor authentication or other advanced security features enabled. Please refer to the [Configure Microsoft 365 Credentials](https://github.com/OfficeDev/teamsfx-cli-action/blob/main/README.md#configure-m365azure-credentials-as-github-secret) to make sure you have disabled Multi-factor Authentication and Security Defaults for the credentials used in the workflow.
|
|
32
|
-
|
|
33
|
-
> Note: Currently, service principal for Azure is used in CI/CD workflows, and to create Azure service principals for use, refer to [here](#how-to-create-azure-service-principals-for-use).
|
|
34
|
-
|
|
35
|
-
# How to create Azure service principals for use?
|
|
36
|
-
To provision and deploy resources targeting Azure inside CI/CD, you must create an Azure service principal for use.
|
|
37
|
-
|
|
38
|
-
Briefly, the steps include:
|
|
39
|
-
1. Register an Azure AD application in single tenant, and it requires sufficient permissions in your Azure AD tenant.
|
|
40
|
-
1. Assign a role to your Azure AD application to access your Azure subscription, and `Contributor` role is recommended.
|
|
41
|
-
1. Create a new Azure AD application secret.
|
|
42
|
-
1. Grab your tenant id, application id(AZURE_SERVICE_PRINCIPAL_NAME), and the secret(AZURE_SERVICE_PRINCIPAL_PASSWORD) for use.
|
|
43
|
-
|
|
44
|
-
For detailed guidelines, refer to [the official document](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal). There're three ways to create service principal, [Azure portal](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal), [PowerShell](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-authenticate-service-principal-powershell), [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli), and you can choose the way you like.
|
|
45
|
-
|
|
46
|
-
# Additional Notes
|
|
47
|
-
* [Quick Start for GitHub Actions](https://docs.github.com/en/actions/quickstart#creating-your-first-workflow)
|
|
48
|
-
* [Manage your apps with the Developer Portal for Microsoft Teams](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/teams-developer-portal)
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for continuous deployment.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
name: 'Continuous Deployment'
|
|
5
|
-
on:
|
|
6
|
-
# When new commits are pushed onto the main branch.
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
jobs:
|
|
11
|
-
buildAndDeploy:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
# You can uncomment the line below to use environments (refer to https://docs.github.com/en/actions/reference/environments).
|
|
14
|
-
#environment: test_environment
|
|
15
|
-
env:
|
|
16
|
-
<%#hosting_type_contains_spfx%>
|
|
17
|
-
M365_ACCOUNT_NAME: ${{secrets.M365_ACCOUNT_NAME}}
|
|
18
|
-
M365_ACCOUNT_PASSWORD: ${{secrets.M365_ACCOUNT_PASSWORD}}
|
|
19
|
-
M365_TENANT_ID: ${{secrets.M365_TENANT_ID}}
|
|
20
|
-
<%/hosting_type_contains_spfx%>
|
|
21
|
-
# To specify the env name for multi-env feature.
|
|
22
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
23
|
-
# To specify the version of TTK CLI for use.
|
|
24
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
25
|
-
|
|
26
|
-
steps:
|
|
27
|
-
# Setup environment.
|
|
28
|
-
- uses: actions/setup-node@v2
|
|
29
|
-
with:
|
|
30
|
-
node-version: '14'
|
|
31
|
-
|
|
32
|
-
- name: Checkout the code
|
|
33
|
-
uses: actions/checkout@v2
|
|
34
|
-
|
|
35
|
-
# Build the project.
|
|
36
|
-
# The way to build the current project depends on how you scaffold it.
|
|
37
|
-
# Different folder structures require different commands set.
|
|
38
|
-
# 'npm ci' is used here to install dependencies and it depends on package-lock.json.
|
|
39
|
-
# If you prefer to use 'npm ci', please make sure to commit package-lock.json first, or just change it to 'npm install'.
|
|
40
|
-
- name: Build the project
|
|
41
|
-
run: <%build_script%>
|
|
42
|
-
|
|
43
|
-
# Run unit test.
|
|
44
|
-
# Currently, no opinionated solution for unit test provided during scaffolding, so,
|
|
45
|
-
# set up any unit test framework you prefer (for example, mocha or jest) and update the commands accordingly in below.
|
|
46
|
-
# - name: Run Unit Test
|
|
47
|
-
# run: npm run test
|
|
48
|
-
|
|
49
|
-
<%#hosting_type_contains_azure%>
|
|
50
|
-
# Login Azure by service principal.
|
|
51
|
-
# Service principal for Azure is used, and to create Azure service principal for use, refer to https://github.com/OfficeDev/TeamsFx/tree/dev/docs/cicd_insider#how-to-create-azure-service-principals-for-use.
|
|
52
|
-
- name: Login Azure by service principal
|
|
53
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
54
|
-
with:
|
|
55
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
56
|
-
commands: account login azure
|
|
57
|
-
service-principal: true
|
|
58
|
-
username: ${{secrets.AZURE_SERVICE_PRINCIPAL_NAME}}
|
|
59
|
-
password: ${{secrets.AZURE_SERVICE_PRINCIPAL_PASSWORD}}
|
|
60
|
-
tenant: ${{secrets.AZURE_TENANT_ID}}
|
|
61
|
-
|
|
62
|
-
<%/hosting_type_contains_azure%>
|
|
63
|
-
- name: Deploy to hosting environment
|
|
64
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
65
|
-
with:
|
|
66
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
67
|
-
commands: deploy
|
|
68
|
-
env: ${{env.TEAMSFX_ENV_NAME}}
|
|
69
|
-
<%#cloud_resources_contains_apim%>
|
|
70
|
-
# Below are default values. You should update them if anything is customized.
|
|
71
|
-
api-version: v1
|
|
72
|
-
open-api-document: openapi/openapi.json
|
|
73
|
-
api-prefix: <%api_prefix%>
|
|
74
|
-
<%/cloud_resources_contains_apim%>
|
|
75
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for continuous integration.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
name: 'Continuous Integration'
|
|
5
|
-
on:
|
|
6
|
-
# When pull requests targeting the dev branch created.
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- dev
|
|
10
|
-
jobs:
|
|
11
|
-
buildAndTest:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
# Setup environment.
|
|
15
|
-
- uses: actions/setup-node@v2
|
|
16
|
-
with:
|
|
17
|
-
node-version: '14'
|
|
18
|
-
|
|
19
|
-
- name: Checkout the code
|
|
20
|
-
uses: actions/checkout@v2
|
|
21
|
-
|
|
22
|
-
# Build the project.
|
|
23
|
-
# The way to build the current project depends on how you scaffold it.
|
|
24
|
-
# Different folder structures require different commands set.
|
|
25
|
-
# 'npm ci' is prefered to be used here to install dependencies and it depends on package-lock.json.
|
|
26
|
-
# If you prefer to use 'npm ci', please make sure to commit package-lock.json first, or just change it to 'npm install'.
|
|
27
|
-
- name: Build the project
|
|
28
|
-
run: <%build_script%>
|
|
29
|
-
|
|
30
|
-
# Run unit test.
|
|
31
|
-
# Currently, no opinionated solution for unit test provided during scaffolding, so,
|
|
32
|
-
# set up any unit test framework you prefer (for example, mocha or jest) and update the commands accordingly in below.
|
|
33
|
-
# - name: Run Unit Test
|
|
34
|
-
# run: npm run test
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for provision.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
name: 'Provision'
|
|
5
|
-
on:
|
|
6
|
-
# Manually trigger this workflow, and you should pick the right branch.
|
|
7
|
-
workflow_dispatch:
|
|
8
|
-
jobs:
|
|
9
|
-
provision:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
# You can uncomment the line below to use environments (refer to https://docs.github.com/en/actions/reference/environments).
|
|
12
|
-
#environment: test_environment
|
|
13
|
-
env:
|
|
14
|
-
M365_ACCOUNT_NAME: ${{secrets.M365_ACCOUNT_NAME}}
|
|
15
|
-
M365_ACCOUNT_PASSWORD: ${{secrets.M365_ACCOUNT_PASSWORD}}
|
|
16
|
-
M365_TENANT_ID: ${{secrets.M365_TENANT_ID}}
|
|
17
|
-
# To specify the env name for multi-env feature.
|
|
18
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
19
|
-
# To specify the version of TTK CLI for use.
|
|
20
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
# Setup environment.
|
|
24
|
-
- uses: actions/setup-node@v2
|
|
25
|
-
with:
|
|
26
|
-
node-version: '14'
|
|
27
|
-
|
|
28
|
-
- name: Checkout the code
|
|
29
|
-
uses: actions/checkout@v2
|
|
30
|
-
|
|
31
|
-
<%#hosting_type_contains_azure%>
|
|
32
|
-
# Login Azure by service principal.
|
|
33
|
-
# Service principal for Azure is used, and to create Azure service principal for use, refer to https://github.com/OfficeDev/TeamsFx/tree/dev/docs/cicd_insider#how-to-create-azure-service-principals-for-use.
|
|
34
|
-
- name: Login Azure by service principal
|
|
35
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
36
|
-
with:
|
|
37
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
38
|
-
commands: account login azure
|
|
39
|
-
service-principal: true
|
|
40
|
-
username: ${{secrets.AZURE_SERVICE_PRINCIPAL_NAME}}
|
|
41
|
-
password: ${{secrets.AZURE_SERVICE_PRINCIPAL_PASSWORD}}
|
|
42
|
-
tenant: ${{secrets.AZURE_TENANT_ID}}
|
|
43
|
-
|
|
44
|
-
<%/hosting_type_contains_azure%>
|
|
45
|
-
# We suggest to do the `teamsfx provision` step manually or in a separate workflow. The following steps are for your reference.
|
|
46
|
-
# After provisioning, you should commit necessary files under .fx into the repository.
|
|
47
|
-
- name: Provision hosting environment
|
|
48
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
49
|
-
with:
|
|
50
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
51
|
-
commands: provision
|
|
52
|
-
<%#hosting_type_contains_azure%>
|
|
53
|
-
subscription: ${{secrets.AZURE_SUBSCRIPTION_ID}}
|
|
54
|
-
<%/hosting_type_contains_azure%>
|
|
55
|
-
env: ${{env.TEAMSFX_ENV_NAME}}
|
|
56
|
-
<%#cloud_resources_contains_sql%>
|
|
57
|
-
sql-admin-name: ${{secrets.SQL_ADMIN_NAME}}
|
|
58
|
-
sql-password: ${{secrets.SQL_PASSWORD}}
|
|
59
|
-
<%/cloud_resources_contains_sql%>
|
|
60
|
-
|
|
61
|
-
- name: Commit provision configs if necessary
|
|
62
|
-
env:
|
|
63
|
-
BRANCH: ${{github.ref}}
|
|
64
|
-
run: |
|
|
65
|
-
git config user.name "github-agent"
|
|
66
|
-
git config user.email "github-agent@github.com"
|
|
67
|
-
git add .
|
|
68
|
-
git commit -m "chore: commit provision configs"
|
|
69
|
-
git push origin ${BRANCH}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
{{=<% %>=}}
|
|
2
|
-
# This is just an example workflow for publishing Teams app.
|
|
3
|
-
# You should customize it to meet your own requirements.
|
|
4
|
-
name: 'Publish Teams App'
|
|
5
|
-
on:
|
|
6
|
-
# Manually trigger this workflow, and you should pick the right branch.
|
|
7
|
-
workflow_dispatch:
|
|
8
|
-
jobs:
|
|
9
|
-
publishTeamsApp:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
# You can uncomment the line below to use environments (refer to https://docs.github.com/en/actions/reference/environments).
|
|
12
|
-
#environment: test_environment
|
|
13
|
-
env:
|
|
14
|
-
M365_ACCOUNT_NAME: ${{secrets.M365_ACCOUNT_NAME}}
|
|
15
|
-
M365_ACCOUNT_PASSWORD: ${{secrets.M365_ACCOUNT_PASSWORD}}
|
|
16
|
-
M365_TENANT_ID: ${{secrets.M365_TENANT_ID}}
|
|
17
|
-
# To specify the env name for multi-env feature.
|
|
18
|
-
TEAMSFX_ENV_NAME: <%env_name%>
|
|
19
|
-
# To specify the version of TTK CLI for use.
|
|
20
|
-
TEAMSFX_CLI_VERSION: 1.*
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
# Setup environment.
|
|
24
|
-
- uses: actions/setup-node@v2
|
|
25
|
-
with:
|
|
26
|
-
node-version: '14'
|
|
27
|
-
|
|
28
|
-
- name: Checkout the code
|
|
29
|
-
uses: actions/checkout@v2
|
|
30
|
-
|
|
31
|
-
# This step is to pack the Teams App as zip file,
|
|
32
|
-
# which can be used to be uploaded onto Teams Client for installation.
|
|
33
|
-
- name: Package Teams App for publishing
|
|
34
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
35
|
-
with:
|
|
36
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
37
|
-
commands: package
|
|
38
|
-
env: ${{env.TEAMSFX_ENV_NAME}}
|
|
39
|
-
|
|
40
|
-
- name: Upload Teams App's package as artifact
|
|
41
|
-
uses: actions/upload-artifact@v2
|
|
42
|
-
with:
|
|
43
|
-
name: appPackage
|
|
44
|
-
path: build/appPackage/appPackage.${{env.TEAMSFX_ENV_NAME}}.zip
|
|
45
|
-
|
|
46
|
-
- name: Publish Teams App
|
|
47
|
-
uses: OfficeDev/teamsfx-cli-action@v1
|
|
48
|
-
with:
|
|
49
|
-
cli-version: ${{env.TEAMSFX_CLI_VERSION}}
|
|
50
|
-
commands: publish
|
|
51
|
-
env: ${{env.TEAMSFX_ENV_NAME}}
|