@microsoft/teamsfx-core 1.2.0-rc.1 → 1.2.2-alpha.7b2fe9ea.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.
Files changed (626) hide show
  1. package/build/common/armInterface.d.ts +0 -20
  2. package/build/common/armInterface.d.ts.map +1 -1
  3. package/build/common/deps-checker/depsChecker.d.ts +1 -0
  4. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  5. package/build/common/deps-checker/depsChecker.js.map +1 -1
  6. package/build/common/deps-checker/depsManager.d.ts +2 -1
  7. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  8. package/build/common/deps-checker/depsManager.js +12 -7
  9. package/build/common/deps-checker/depsManager.js.map +1 -1
  10. package/build/common/deps-checker/index.d.ts +1 -0
  11. package/build/common/deps-checker/index.d.ts.map +1 -1
  12. package/build/common/deps-checker/index.js +1 -0
  13. package/build/common/deps-checker/index.js.map +1 -1
  14. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  15. package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
  16. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  17. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  18. package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
  19. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  20. package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
  21. package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
  22. package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
  23. package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
  24. package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
  25. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  26. package/build/common/deps-checker/internal/nodeChecker.js +9 -1
  27. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  28. package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
  29. package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
  30. package/build/common/deps-checker/util/extensionInstaller.js +47 -0
  31. package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
  32. package/build/common/deps-checker/util/index.d.ts +5 -0
  33. package/build/common/deps-checker/util/index.d.ts.map +1 -0
  34. package/build/common/deps-checker/util/index.js +10 -0
  35. package/build/common/deps-checker/util/index.js.map +1 -0
  36. package/build/common/index.d.ts +1 -3
  37. package/build/common/index.d.ts.map +1 -1
  38. package/build/common/index.js +1 -3
  39. package/build/common/index.js.map +1 -1
  40. package/build/common/local/constants.d.ts +5 -0
  41. package/build/common/local/constants.d.ts.map +1 -1
  42. package/build/common/local/constants.js +7 -1
  43. package/build/common/local/constants.js.map +1 -1
  44. package/build/common/local/index.d.ts +5 -0
  45. package/build/common/local/index.d.ts.map +1 -0
  46. package/build/common/local/index.js +10 -0
  47. package/build/common/local/index.js.map +1 -0
  48. package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
  49. package/build/common/local/localCertificateManager.d.ts.map +1 -0
  50. package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
  51. package/build/common/local/localCertificateManager.js.map +1 -0
  52. package/build/common/local/localEnvManager.d.ts +6 -2
  53. package/build/common/local/localEnvManager.d.ts.map +1 -1
  54. package/build/common/local/localEnvManager.js +41 -1
  55. package/build/common/local/localEnvManager.js.map +1 -1
  56. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
  57. package/build/common/local/process.d.ts.map +1 -0
  58. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
  59. package/build/common/local/process.js.map +1 -0
  60. package/build/common/local/projectSettingsHelper.d.ts +5 -5
  61. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  62. package/build/common/local/projectSettingsHelper.js +28 -21
  63. package/build/common/local/projectSettingsHelper.js.map +1 -1
  64. package/build/common/local/taskDefinition.d.ts +1 -1
  65. package/build/common/local/taskDefinition.d.ts.map +1 -1
  66. package/build/common/local/taskDefinition.js +6 -4
  67. package/build/common/local/taskDefinition.js.map +1 -1
  68. package/build/common/localSettingsConstants.d.ts +1 -0
  69. package/build/common/localSettingsConstants.d.ts.map +1 -1
  70. package/build/common/localSettingsConstants.js +1 -0
  71. package/build/common/localSettingsConstants.js.map +1 -1
  72. package/build/common/localSettingsProvider.d.ts.map +1 -1
  73. package/build/common/localSettingsProvider.js +1 -0
  74. package/build/common/localSettingsProvider.js.map +1 -1
  75. package/build/common/permissionInterface.d.ts +2 -0
  76. package/build/common/permissionInterface.d.ts.map +1 -1
  77. package/build/common/permissionInterface.js +2 -0
  78. package/build/common/permissionInterface.js.map +1 -1
  79. package/build/common/samples-config.json +24 -12
  80. package/build/common/samples.d.ts +1 -0
  81. package/build/common/samples.d.ts.map +1 -1
  82. package/build/common/samples.js +1 -0
  83. package/build/common/samples.js.map +1 -1
  84. package/build/common/telemetry.d.ts +7 -2
  85. package/build/common/telemetry.d.ts.map +1 -1
  86. package/build/common/telemetry.js +10 -4
  87. package/build/common/telemetry.js.map +1 -1
  88. package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
  89. package/build/common/template-utils/templates.d.ts.map +1 -0
  90. package/build/common/{templates.js → template-utils/templates.js} +1 -1
  91. package/build/common/template-utils/templates.js.map +1 -0
  92. package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
  93. package/build/common/template-utils/templatesActions.d.ts.map +1 -0
  94. package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
  95. package/build/common/template-utils/templatesActions.js.map +1 -0
  96. package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
  97. package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
  98. package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
  99. package/build/common/template-utils/templatesUtils.js.map +1 -0
  100. package/build/common/tools.d.ts +1 -4
  101. package/build/common/tools.d.ts.map +1 -1
  102. package/build/common/tools.js +41 -12
  103. package/build/common/tools.js.map +1 -1
  104. package/build/core/index.d.ts +2 -2
  105. package/build/core/index.d.ts.map +1 -1
  106. package/build/core/index.js +14 -6
  107. package/build/core/index.js.map +1 -1
  108. package/build/core/middleware/index.d.ts +0 -1
  109. package/build/core/middleware/index.d.ts.map +1 -1
  110. package/build/core/middleware/index.js +0 -1
  111. package/build/core/middleware/index.js.map +1 -1
  112. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  113. package/build/core/middleware/projectMigrator.js +1 -11
  114. package/build/core/middleware/projectMigrator.js.map +1 -1
  115. package/build/core/permissionRequest.js +2 -2
  116. package/build/core/permissionRequest.js.map +1 -1
  117. package/build/core/question.d.ts.map +1 -1
  118. package/build/core/question.js +7 -4
  119. package/build/core/question.js.map +1 -1
  120. package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
  121. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  122. package/build/plugins/resource/aad/aadAppClient.js +3 -4
  123. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  124. package/build/plugins/resource/aad/errors.d.ts.map +1 -1
  125. package/build/plugins/resource/aad/errors.js +1 -2
  126. package/build/plugins/resource/aad/errors.js.map +1 -1
  127. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
  128. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
  129. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  130. package/build/plugins/resource/aad/plugin.js +33 -46
  131. package/build/plugins/resource/aad/plugin.js.map +1 -1
  132. package/build/plugins/resource/aad/utils/common.d.ts +2 -0
  133. package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
  134. package/build/plugins/resource/aad/utils/common.js +14 -14
  135. package/build/plugins/resource/aad/utils/common.js.map +1 -1
  136. package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
  137. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  138. package/build/plugins/resource/aad/utils/configs.js +20 -38
  139. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  140. package/build/plugins/resource/aad/v2/index.d.ts +2 -2
  141. package/build/plugins/resource/aad/v2/index.d.ts.map +1 -1
  142. package/build/plugins/resource/aad/v2/index.js +2 -1
  143. package/build/plugins/resource/aad/v2/index.js.map +1 -1
  144. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  145. package/build/plugins/resource/apim/error.js +1 -4
  146. package/build/plugins/resource/apim/error.js.map +1 -1
  147. package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
  148. package/build/plugins/resource/apim/managers/apimManager.js +23 -62
  149. package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
  150. package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
  151. package/build/plugins/resource/apim/managers/questionManager.js +0 -7
  152. package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
  153. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
  154. package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
  155. package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
  156. package/build/plugins/resource/apim/v2/index.d.ts +2 -2
  157. package/build/plugins/resource/apim/v2/index.d.ts.map +1 -1
  158. package/build/plugins/resource/apim/v2/index.js +2 -1
  159. package/build/plugins/resource/apim/v2/index.js.map +1 -1
  160. package/build/plugins/resource/appstudio/constants.d.ts +3 -2
  161. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  162. package/build/plugins/resource/appstudio/constants.js +12 -11
  163. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  164. package/build/plugins/resource/appstudio/index.d.ts +2 -36
  165. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  166. package/build/plugins/resource/appstudio/index.js +1 -31
  167. package/build/plugins/resource/appstudio/index.js.map +1 -1
  168. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
  169. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  170. package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
  171. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  172. package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
  173. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  174. package/build/plugins/resource/appstudio/plugin.js +14 -1
  175. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  176. package/build/plugins/resource/appstudio/v2/index.d.ts +2 -2
  177. package/build/plugins/resource/appstudio/v2/index.d.ts.map +1 -1
  178. package/build/plugins/resource/appstudio/v2/index.js +2 -1
  179. package/build/plugins/resource/appstudio/v2/index.js.map +1 -1
  180. package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
  181. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  182. package/build/plugins/resource/appstudio/v3/index.js +28 -16
  183. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  184. package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
  185. package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
  186. package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
  187. package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
  188. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  189. package/build/plugins/resource/bot/languageStrategy.js +1 -1
  190. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  191. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  192. package/build/plugins/resource/bot/plugin.js +16 -135
  193. package/build/plugins/resource/bot/plugin.js.map +1 -1
  194. package/build/plugins/resource/bot/v2/index.d.ts +2 -2
  195. package/build/plugins/resource/bot/v2/index.d.ts.map +1 -1
  196. package/build/plugins/resource/bot/v2/index.js +2 -1
  197. package/build/plugins/resource/bot/v2/index.js.map +1 -1
  198. package/build/plugins/resource/frontend/configs.d.ts +1 -1
  199. package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
  200. package/build/plugins/resource/frontend/configs.js +3 -9
  201. package/build/plugins/resource/frontend/configs.js.map +1 -1
  202. package/build/plugins/resource/frontend/constants.d.ts +2 -8
  203. package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
  204. package/build/plugins/resource/frontend/constants.js +3 -11
  205. package/build/plugins/resource/frontend/constants.js.map +1 -1
  206. package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
  207. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
  208. package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
  209. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
  210. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
  211. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
  212. package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
  213. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
  214. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
  215. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
  216. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
  217. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
  218. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
  219. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
  220. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
  221. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
  222. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
  223. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
  224. package/build/plugins/resource/frontend/dotnet/plugin.js +124 -0
  225. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
  226. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
  227. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
  228. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
  229. package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
  230. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
  231. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
  232. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
  233. package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
  234. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
  235. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
  236. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
  237. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
  238. package/build/plugins/resource/frontend/index.d.ts +6 -3
  239. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  240. package/build/plugins/resource/frontend/index.js +27 -45
  241. package/build/plugins/resource/frontend/index.js.map +1 -1
  242. package/build/plugins/resource/frontend/interface.d.ts +13 -0
  243. package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
  244. package/build/plugins/resource/frontend/interface.js +3 -0
  245. package/build/plugins/resource/frontend/interface.js.map +1 -0
  246. package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
  247. package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
  248. package/build/plugins/resource/frontend/ops/deploy.js +43 -0
  249. package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
  250. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  251. package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
  252. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  253. package/build/plugins/resource/frontend/plugin.d.ts +3 -3
  254. package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
  255. package/build/plugins/resource/frontend/plugin.js +14 -46
  256. package/build/plugins/resource/frontend/plugin.js.map +1 -1
  257. package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
  258. package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
  259. package/build/plugins/resource/frontend/resources/errors.js +31 -67
  260. package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
  261. package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
  262. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  263. package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
  264. package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
  265. package/build/plugins/resource/frontend/utils/logger.js +9 -6
  266. package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
  267. package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
  268. package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
  269. package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
  270. package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
  271. package/build/plugins/resource/frontend/v2/index.d.ts +3 -2
  272. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  273. package/build/plugins/resource/frontend/v2/index.js +5 -1
  274. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  275. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
  276. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
  277. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
  278. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
  279. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
  280. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
  281. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
  282. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
  283. package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
  284. package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
  285. package/build/plugins/resource/frontend/v3/error.js +66 -0
  286. package/build/plugins/resource/frontend/v3/error.js.map +1 -0
  287. package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
  288. package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
  289. package/build/plugins/resource/frontend/v3/index.js +7 -0
  290. package/build/plugins/resource/frontend/v3/index.js.map +1 -0
  291. package/build/plugins/resource/function/index.d.ts +1 -1
  292. package/build/plugins/resource/function/index.d.ts.map +1 -1
  293. package/build/plugins/resource/function/index.js +8 -21
  294. package/build/plugins/resource/function/index.js.map +1 -1
  295. package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
  296. package/build/plugins/resource/function/ops/deploy.js +8 -9
  297. package/build/plugins/resource/function/ops/deploy.js.map +1 -1
  298. package/build/plugins/resource/function/ops/scaffold.js +1 -1
  299. package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
  300. package/build/plugins/resource/function/plugin.d.ts.map +1 -1
  301. package/build/plugins/resource/function/plugin.js +35 -138
  302. package/build/plugins/resource/function/plugin.js.map +1 -1
  303. package/build/plugins/resource/function/resources/message.d.ts +0 -1
  304. package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
  305. package/build/plugins/resource/function/resources/message.js +0 -1
  306. package/build/plugins/resource/function/resources/message.js.map +1 -1
  307. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
  308. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
  309. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
  310. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
  311. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
  312. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
  313. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
  314. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
  315. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
  316. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
  317. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
  318. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
  319. package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
  320. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  321. package/build/plugins/resource/function/v2/index.d.ts +2 -2
  322. package/build/plugins/resource/function/v2/index.d.ts.map +1 -1
  323. package/build/plugins/resource/function/v2/index.js +2 -1
  324. package/build/plugins/resource/function/v2/index.js.map +1 -1
  325. package/build/plugins/resource/identity/index.d.ts +0 -1
  326. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  327. package/build/plugins/resource/identity/index.js +3 -22
  328. package/build/plugins/resource/identity/index.js.map +1 -1
  329. package/build/plugins/resource/identity/v2/index.d.ts +2 -2
  330. package/build/plugins/resource/identity/v2/index.d.ts.map +1 -1
  331. package/build/plugins/resource/identity/v2/index.js +2 -1
  332. package/build/plugins/resource/identity/v2/index.js.map +1 -1
  333. package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
  334. package/build/plugins/resource/keyvault/plugin.js +1 -2
  335. package/build/plugins/resource/keyvault/plugin.js.map +1 -1
  336. package/build/plugins/resource/keyvault/v2/index.d.ts +2 -2
  337. package/build/plugins/resource/keyvault/v2/index.d.ts.map +1 -1
  338. package/build/plugins/resource/keyvault/v2/index.js +2 -1
  339. package/build/plugins/resource/keyvault/v2/index.js.map +1 -1
  340. package/build/plugins/resource/localdebug/v2/index.d.ts +2 -2
  341. package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
  342. package/build/plugins/resource/localdebug/v2/index.js +2 -1
  343. package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
  344. package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
  345. package/build/plugins/resource/simpleauth/index.js +1 -6
  346. package/build/plugins/resource/simpleauth/index.js.map +1 -1
  347. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  348. package/build/plugins/resource/simpleauth/plugin.js +2 -7
  349. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  350. package/build/plugins/resource/simpleauth/v2/index.d.ts +2 -2
  351. package/build/plugins/resource/simpleauth/v2/index.d.ts.map +1 -1
  352. package/build/plugins/resource/simpleauth/v2/index.js +2 -1
  353. package/build/plugins/resource/simpleauth/v2/index.js.map +1 -1
  354. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  355. package/build/plugins/resource/spfx/plugin.js +14 -9
  356. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  357. package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
  358. package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
  359. package/build/plugins/resource/spfx/utils/constants.js +5 -4
  360. package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
  361. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
  362. package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
  363. package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
  364. package/build/plugins/resource/spfx/v2/index.d.ts +2 -2
  365. package/build/plugins/resource/spfx/v2/index.d.ts.map +1 -1
  366. package/build/plugins/resource/spfx/v2/index.js +2 -1
  367. package/build/plugins/resource/spfx/v2/index.js.map +1 -1
  368. package/build/plugins/resource/sql/config.d.ts +1 -0
  369. package/build/plugins/resource/sql/config.d.ts.map +1 -1
  370. package/build/plugins/resource/sql/config.js +1 -0
  371. package/build/plugins/resource/sql/config.js.map +1 -1
  372. package/build/plugins/resource/sql/constants.d.ts +3 -0
  373. package/build/plugins/resource/sql/constants.d.ts.map +1 -1
  374. package/build/plugins/resource/sql/constants.js +3 -0
  375. package/build/plugins/resource/sql/constants.js.map +1 -1
  376. package/build/plugins/resource/sql/errors.d.ts +1 -1
  377. package/build/plugins/resource/sql/errors.d.ts.map +1 -1
  378. package/build/plugins/resource/sql/errors.js +1 -1
  379. package/build/plugins/resource/sql/errors.js.map +1 -1
  380. package/build/plugins/resource/sql/index.d.ts.map +1 -1
  381. package/build/plugins/resource/sql/index.js +10 -10
  382. package/build/plugins/resource/sql/index.js.map +1 -1
  383. package/build/plugins/resource/sql/plugin.d.ts +3 -0
  384. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  385. package/build/plugins/resource/sql/plugin.js +76 -68
  386. package/build/plugins/resource/sql/plugin.js.map +1 -1
  387. package/build/plugins/resource/sql/sqlClient.d.ts +2 -2
  388. package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
  389. package/build/plugins/resource/sql/sqlClient.js +13 -12
  390. package/build/plugins/resource/sql/sqlClient.js.map +1 -1
  391. package/build/plugins/resource/sql/v2/index.d.ts +2 -2
  392. package/build/plugins/resource/sql/v2/index.d.ts.map +1 -1
  393. package/build/plugins/resource/sql/v2/index.js +2 -1
  394. package/build/plugins/resource/sql/v2/index.js.map +1 -1
  395. package/build/plugins/resource/utils4v2.d.ts +1 -1
  396. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  397. package/build/plugins/resource/utils4v2.js +3 -3
  398. package/build/plugins/resource/utils4v2.js.map +1 -1
  399. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts +3 -3
  400. package/build/plugins/solution/fx-solution/ResourcePluginContainer.d.ts.map +1 -1
  401. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js +3 -3
  402. package/build/plugins/solution/fx-solution/ResourcePluginContainer.js.map +1 -1
  403. package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
  404. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  405. package/build/plugins/solution/fx-solution/arm.js +44 -13
  406. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  407. package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
  408. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  409. package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
  410. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  411. package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
  412. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  413. package/build/plugins/solution/fx-solution/constants.js +1 -0
  414. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  415. package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
  416. package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
  417. package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
  418. package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
  419. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  420. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
  421. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  422. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
  423. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  424. package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
  425. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  426. package/build/plugins/solution/fx-solution/question.d.ts +2 -2
  427. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  428. package/build/plugins/solution/fx-solution/question.js +32 -22
  429. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  430. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  431. package/build/plugins/solution/fx-solution/solution.js +15 -15
  432. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  433. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
  434. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
  435. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
  436. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
  437. package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
  438. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  439. package/build/plugins/solution/fx-solution/v2/checkPermission.d.ts.map +1 -1
  440. package/build/plugins/solution/fx-solution/v2/checkPermission.js +1 -2
  441. package/build/plugins/solution/fx-solution/v2/checkPermission.js.map +1 -1
  442. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
  443. package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
  444. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
  445. package/build/plugins/solution/fx-solution/v2/deploy.js +1 -1
  446. package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
  447. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
  448. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  449. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
  450. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  451. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
  452. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
  453. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -16
  454. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
  455. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  456. package/build/plugins/solution/fx-solution/v2/getQuestions.js +84 -99
  457. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  458. package/build/plugins/solution/fx-solution/v2/grantPermission.js +1 -2
  459. package/build/plugins/solution/fx-solution/v2/grantPermission.js.map +1 -1
  460. package/build/plugins/solution/fx-solution/v2/listCollaborator.d.ts.map +1 -1
  461. package/build/plugins/solution/fx-solution/v2/listCollaborator.js +6 -1
  462. package/build/plugins/solution/fx-solution/v2/listCollaborator.js.map +1 -1
  463. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  464. package/build/plugins/solution/fx-solution/v2/provision.js +1 -1
  465. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  466. package/build/plugins/solution/fx-solution/v2/provisionLocal.js +1 -1
  467. package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
  468. package/build/plugins/solution/fx-solution/v2/publish.js +1 -1
  469. package/build/plugins/solution/fx-solution/v2/publish.js.map +1 -1
  470. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  471. package/build/plugins/solution/fx-solution/v2/scaffolding.js +7 -1
  472. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  473. package/build/plugins/solution/fx-solution/v2/utils.d.ts +3 -3
  474. package/build/plugins/solution/fx-solution/v2/utils.d.ts.map +1 -1
  475. package/build/plugins/solution/fx-solution/v2/utils.js +7 -5
  476. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  477. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
  478. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
  479. package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
  480. package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
  481. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
  482. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
  483. package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
  484. package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
  485. package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
  486. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  487. package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
  488. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  489. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
  490. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  491. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  492. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
  493. package/build/plugins/solution/fx-solution/v3/init.js +9 -0
  494. package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
  495. package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
  496. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  497. package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
  498. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  499. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
  500. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
  501. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
  502. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
  503. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
  504. package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
  505. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
  506. package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
  507. package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
  508. package/build/plugins/solution/spfx-solution/addModule.js +1 -1
  509. package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
  510. package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
  511. package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
  512. package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
  513. package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
  514. package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
  515. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
  516. package/build/plugins/solution/spfx-solution/solution.js +7 -7
  517. package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
  518. package/package.json +6 -7
  519. package/resource/strings.json +23 -8
  520. package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
  521. package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
  522. package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
  523. package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
  524. package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
  525. package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
  526. package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
  527. package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
  528. package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
  529. package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
  530. package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
  531. package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
  532. package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
  533. package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
  534. package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
  535. package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
  536. package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
  537. package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
  538. package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
  539. package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
  540. package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
  541. package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
  542. package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
  543. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
  544. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
  545. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
  546. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
  547. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
  548. package/templates/plugins/resource/sql/bicep/newDatabase.orchestration.template.bicep +5 -0
  549. package/templates/plugins/resource/sql/bicep/newDatabaseProvision.template.bicep +15 -0
  550. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +9 -5
  551. package/templates/plugins/resource/storage/bicep/azureStorageProvision.bicep +25 -0
  552. package/templates/plugins/resource/storage/bicep/provision.template.bicep +15 -0
  553. package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
  554. package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
  555. package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
  556. package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
  557. package/build/common/templates.d.ts.map +0 -1
  558. package/build/common/templates.js.map +0 -1
  559. package/build/common/templatesActions.d.ts.map +0 -1
  560. package/build/common/templatesActions.js.map +0 -1
  561. package/build/common/templatesUtils.d.ts.map +0 -1
  562. package/build/common/templatesUtils.js.map +0 -1
  563. package/build/core/middleware/projectUpgrader.d.ts +0 -6
  564. package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
  565. package/build/core/middleware/projectUpgrader.js +0 -224
  566. package/build/core/middleware/projectUpgrader.js.map +0 -1
  567. package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
  568. package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
  569. package/build/plugins/resource/frontend/blazor/constants.js +0 -98
  570. package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
  571. package/build/plugins/resource/frontend/blazor/enum.js +0 -39
  572. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
  573. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
  574. package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
  575. package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
  576. package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
  577. package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
  578. package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
  579. package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
  580. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
  581. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
  582. package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
  583. package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
  584. package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
  585. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
  586. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
  587. package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
  588. package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
  589. package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
  590. package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
  591. package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
  592. package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
  593. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
  594. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
  595. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
  596. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
  597. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
  598. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
  599. package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
  600. package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
  601. package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
  602. package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
  603. package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
  604. package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
  605. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
  606. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
  607. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
  608. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
  609. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
  610. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
  611. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
  612. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
  613. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
  614. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
  615. package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
  616. package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
  617. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
  618. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
  619. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
  620. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
  621. package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
  622. package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
  623. package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
  624. package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
  625. package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
  626. package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
@@ -1,11 +1,11 @@
1
- import { AppStudioTokenProvider, AzureSolutionSettings, Func, FxError, Inputs, Json, QTreeNode, Result, TokenProvider, v2, Void } from "@microsoft/teamsfx-api";
1
+ import { AppStudioTokenProvider, Func, FxError, Inputs, Json, ProjectSettings, QTreeNode, Result, TokenProvider, v2, Void } from "@microsoft/teamsfx-api";
2
2
  import { Context, DeepReadonly, ProvisionInputs, ResourcePlugin, ResourceProvisionOutput } from "@microsoft/teamsfx-api/build/v2";
3
3
  import { AppStudioPlugin } from "..";
4
4
  export declare class AppStudioPluginV2 implements ResourcePlugin {
5
5
  name: string;
6
6
  displayName: string;
7
7
  plugin: AppStudioPlugin;
8
- activate(solutionSettings: AzureSolutionSettings): boolean;
8
+ activate(projectSettings: ProjectSettings): boolean;
9
9
  scaffoldSourceCode(ctx: Context, inputs: Inputs): Promise<Result<Void, FxError>>;
10
10
  provisionResource(ctx: Context, inputs: ProvisionInputs, envInfo: Readonly<v2.EnvInfoV2>, tokenProvider: TokenProvider): Promise<Result<ResourceProvisionOutput, FxError>>;
11
11
  configureResource(ctx: Context, inputs: Readonly<ProvisionInputs>, envInfo: Readonly<v2.EnvInfoV2>, tokenProvider: TokenProvider): Promise<Result<ResourceProvisionOutput, FxError>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EAGrB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,IAAI,EAGJ,SAAS,EACT,MAAM,EACN,aAAa,EACb,EAAE,EACF,IAAI,EACL,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,cAAc,EACd,uBAAuB,EAExB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAkBrC,qBACa,iBAAkB,YAAW,cAAc;IACtD,IAAI,SAA2B;IAC/B,WAAW,SAAgB;IAE3B,MAAM,EAAG,eAAe,CAAC;IAEzB,QAAQ,CAAC,gBAAgB,EAAE,qBAAqB,GAAG,OAAO;IAIpD,kBAAkB,CAAC,GAAG,EAAE,O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,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC;IAI5C,kBAAkB,CACtB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAwB3B,eAAe,CACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAY3B,eAAe,CACnB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAY3B,gBAAgB,CACpB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,OAAO,EAAE,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACnC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,IAAI,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;CAWlC"}
@@ -14,7 +14,8 @@ let AppStudioPluginV2 = class AppStudioPluginV2 {
14
14
  this.name = "fx-resource-appstudio";
15
15
  this.displayName = "App Studio";
16
16
  }
17
- activate(solutionSettings) {
17
+ activate(projectSettings) {
18
+ const solutionSettings = projectSettings.solutionSettings;
18
19
  return this.plugin.activate(solutionSettings);
19
20
  }
20
21
  async scaffoldSourceCode(ctx, inputs) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAgBgC;AAShC,mCAAyC;AACzC,0BAAqC;AAErC,mGAG+D;AAC/D,6CAUwB;AAGxB,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,YAAY,CAAC;IA2J7B,CAAC;IAvJC,QAAQ,CAAC,gBAAuC;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,GAAY,EAAE,MAAc;QACnD,OAAO,MAAM,oCAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,GAAY,EACZ,MAAuB,EACvB,OAA+B,EAC/B,aAA4B;QAE5B,OAAO,MAAM,mCAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1F,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,GAAY,EACZ,MAAiC,EACjC,OAA+B,EAC/B,aAA4B;QAE5B,OAAO,MAAM,mCAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1F,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,GAAY,EACZ,MAAc,EACd,aAAmB,EACnB,aAA4B;QAE5B,OAAO,MAAM,wCAA6B,CACxC,GAAG,EACH,MAAM,EACN,aAAa,EACb,aAAa,EACb,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,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AO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAAgC,EAChC,OAAmC,EACnC,aAA4B,EAC5B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,GAAY,EACZ,MAAgC,EAChC,OAAmC,EACnC,aAA4B,EAC5B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF,CAAA;AAzJC;IADC,eAAM,CAAC,yCAAe,CAAC,eAAe,CAAC;sCAC/B,mBAAe;iDAAC;AAJd,iBAAiB;IAD7B,gBAAO,CAAC,2CAAiB,CAAC,eAAe,CAAC;GAC9B,iBAAiB,CA6J7B;AA7JY,8CAAiB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v2/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAiBgC;AAShC,mCAAyC;AACzC,0BAAqC;AAErC,mGAG+D;AAC/D,6CAUwB;AAGxB,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,YAAY,CAAC;IA4J7B,CAAC;IAxJC,QAAQ,CAAC,eAAgC;QACvC,MAAM,gBAAgB,GAAG,eAAe,CAAC,gBAAyC,CAAC;QACnF,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CA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B,QAAc;QAEd,OAAO,kCAAuB,CAC5B,GAAG,EACH,MAAM,EACN,OAAO,EACP,aAAa,EACb,QAAQ,EACR,IAAI,CAAC,MAAM,EACX,kBAAkB,CACnB,CAAC;IACJ,CAAC;CACF,CAAA;AA1JC;IADC,eAAM,CAAC,yCAAe,CAAC,eAAe,CAAC;sCAC/B,mBAAe;iDAAC;AAJd,iBAAiB;IAD7B,gBAAO,CAAC,2CAAiB,CAAC,eAAe,CAAC;GAC9B,iBAAiB,CA8J7B;AA9JY,8CAAiB"}
@@ -1,9 +1,7 @@
1
1
  import { FxError, Result, v2, IComposeExtension, IBot, IConfigurableTab, IStaticTab, TeamsAppManifest } from "@microsoft/teamsfx-api";
2
- import { AppStudioPlugin } from "../";
3
2
  export declare class AppStudioPluginV3 {
4
3
  name: string;
5
4
  displayName: string;
6
- plugin: AppStudioPlugin;
7
5
  /**
8
6
  * Generate initial manifest template file, for both local debug & remote
9
7
  * @param ctx
@@ -57,7 +55,7 @@ export declare class AppStudioPluginV3 {
57
55
  * @param inputs
58
56
  * @returns
59
57
  */
60
- SaveManifest(ctx: v2.Context, inputs: v2.InputsWithProjectPath, manifest: {
58
+ saveManifest(ctx: v2.Context, inputs: v2.InputsWithProjectPath, manifest: {
61
59
  local: TeamsAppManifest;
62
60
  remote: TeamsAppManifest;
63
61
  }): Promise<Result<any, FxError>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EACP,MAAM,EAEN,EAAE,EACF,iBAAiB,EACjB,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAEjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAKtC,qBACa,iBAAiB;IAC5B,IAAI,SAA2B;IAC/B,WAAW,SAAgB;IAE3B,MAAM,EAAG,eAAe,CAAC;IAE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E,gBAAgB,CAAA;SAAE,CAAA;KAAE,GAC5F;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,OAAO,CAAC,EAAE;YAAE,KAAK,EAAE,IAAI,CAAC;YAAC,MAAM,EAAE,IAAI,CAAA;SAAE,CAAA;KAAE,GACxD;QACE,IAAI,EAAE,kBAAkB,CAAC;QACzB,OAAO,CAAC,EAAE;YAAE,KAAK,EAAE,iBAAiB,CAAC;YAAC,MAAM,EAAE,iBAAiB,CAAA;SAAE,CAAC;KACnE,CACJ,EAAE,GACF,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAmBhC;;;OAGG;IACG,YAAY,CAChB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,EAAE,OAAO,CAAC,CAAC;IAelF;;;;;OAKG;IACG,YAAY,CAChB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,QAAQ,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,GAC9D,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAehC;;;;;;OAMG;IACG,qBAAqB,CACzB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,EAChC,UAAU,EAAE,WAAW,GAAG,iBAAiB,GAAG,KAAK,GAAG,kBAAkB,GACvE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CAIrC"}
@@ -7,10 +7,10 @@ const tslib_1 = require("tslib");
7
7
  const teamsfx_api_1 = require("@microsoft/teamsfx-api");
8
8
  const typedi_1 = require("typedi");
9
9
  const constants_1 = require("../../../solution/fx-solution/v3/constants");
10
- const __1 = require("../");
11
10
  const utils4v2_1 = require("../../utils4v2");
12
11
  const results_1 = require("../results");
13
12
  const errors_1 = require("../errors");
13
+ const manifestTemplate_1 = require("../manifestTemplate");
14
14
  let AppStudioPluginV3 = class AppStudioPluginV3 {
15
15
  constructor() {
16
16
  this.name = "fx-resource-appstudio";
@@ -23,8 +23,8 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
23
23
  * @returns
24
24
  */
25
25
  async init(ctx, inputs) {
26
- const pluginContext = utils4v2_1.convert2PluginContext(this.plugin.name, ctx, inputs);
27
- return await this.plugin.init(pluginContext);
26
+ const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
27
+ return await manifestTemplate_1.init(pluginContext.root);
28
28
  }
29
29
  /**
30
30
  * Append capabilities to manifest templates
@@ -34,7 +34,7 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
34
34
  * @returns
35
35
  */
36
36
  async addCapabilities(ctx, inputs, capabilities) {
37
- const pluginContext = utils4v2_1.convert2PluginContext(this.plugin.name, ctx, inputs);
37
+ const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
38
38
  capabilities.map(async (capability) => {
39
39
  const exceedLimit = await this.capabilityExceedLimit(ctx, inputs, capability.name);
40
40
  if (exceedLimit.isErr()) {
@@ -44,15 +44,23 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
44
44
  return teamsfx_api_1.err(results_1.AppStudioResultFactory.UserError(errors_1.AppStudioError.CapabilityExceedLimitError.name, errors_1.AppStudioError.CapabilityExceedLimitError.message(capability.name)));
45
45
  }
46
46
  });
47
- return await this.plugin.addCapabilities(pluginContext, capabilities);
47
+ return await manifestTemplate_1.addCapabilities(pluginContext.root, capabilities);
48
48
  }
49
49
  /**
50
50
  * Should conside both local and remote
51
51
  * @returns
52
52
  */
53
53
  async loadManifest(ctx, inputs) {
54
- const pluginContext = utils4v2_1.convert2PluginContext(this.plugin.name, ctx, inputs);
55
- return await this.plugin.loadManifest(pluginContext);
54
+ const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
55
+ const localManifest = await manifestTemplate_1.loadManifest(pluginContext.root, true);
56
+ if (localManifest.isErr()) {
57
+ return teamsfx_api_1.err(localManifest.error);
58
+ }
59
+ const remoteManifest = await manifestTemplate_1.loadManifest(pluginContext.root, false);
60
+ if (remoteManifest.isErr()) {
61
+ return teamsfx_api_1.err(remoteManifest.error);
62
+ }
63
+ return teamsfx_api_1.ok({ local: localManifest.value, remote: remoteManifest.value });
56
64
  }
57
65
  /**
58
66
  * Save manifest template file
@@ -60,9 +68,17 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
60
68
  * @param inputs
61
69
  * @returns
62
70
  */
63
- async SaveManifest(ctx, inputs, manifest) {
64
- const pluginContext = utils4v2_1.convert2PluginContext(this.plugin.name, ctx, inputs);
65
- return await this.plugin.saveManifest(pluginContext, manifest);
71
+ async saveManifest(ctx, inputs, manifest) {
72
+ const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
73
+ let res = await manifestTemplate_1.saveManifest(pluginContext.root, manifest.local, true);
74
+ if (res.isErr()) {
75
+ return teamsfx_api_1.err(res.error);
76
+ }
77
+ res = await manifestTemplate_1.saveManifest(pluginContext.root, manifest.remote, false);
78
+ if (res.isErr()) {
79
+ return teamsfx_api_1.err(res.error);
80
+ }
81
+ return teamsfx_api_1.ok(undefined);
66
82
  }
67
83
  /**
68
84
  * Load manifest template, and check if it exceeds the limit.
@@ -72,14 +88,10 @@ let AppStudioPluginV3 = class AppStudioPluginV3 {
72
88
  * @returns
73
89
  */
74
90
  async capabilityExceedLimit(ctx, inputs, capability) {
75
- const pluginContext = utils4v2_1.convert2PluginContext(this.plugin.name, ctx, inputs);
76
- return await this.plugin.capabilityExceedLimit(pluginContext, capability);
91
+ const pluginContext = utils4v2_1.convert2PluginContext(this.name, ctx, inputs);
92
+ return await manifestTemplate_1.capabilityExceedLimit(pluginContext.root, capability);
77
93
  }
78
94
  };
79
- tslib_1.__decorate([
80
- typedi_1.Inject("AppStudioPlugin"),
81
- tslib_1.__metadata("design:type", __1.AppStudioPlugin)
82
- ], AppStudioPluginV3.prototype, "plugin", void 0);
83
95
  AppStudioPluginV3 = tslib_1.__decorate([
84
96
  typedi_1.Service(constants_1.BuiltInResourcePluginNames.appStudio)
85
97
  ], AppStudioPluginV3);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/appstudio/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,wDAWgC;AAChC,mCAAyC;AACzC,0EAAwF;AACxF,2BAAsC;AACtC,6CAAuD;AACvD,wCAAoD;AACpD,sCAA2C;AAG3C,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,YAAY,CAAC;IA+F7B,CAAC;IA3FC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,GAAe,EAAE,MAAgC;QAC1D,MAAM,aAAa,GAAkB,gCAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAC1F,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAC/C,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,eAAe,CACnB,GAAe,EACf,MAAgC,EAChC,YAQG;QAEH,MAAM,aAAa,GAAkB,gCAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAC1F,YAAY,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;YACpC,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;YACnF,IAAI,WAA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CAAC,CAAC;QACvE,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,iBAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACvB;QAED,GAAG,GAAG,MAAM,+BAAY,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACrE,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;YACf,OAAO,iBAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACvB;QAED,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,qBAAqB,CACzB,GAAe,EACf,MAAgC,EAChC,UAAwE;QAExE,MAAM,aAAa,GAAkB,gCAAqB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACnF,OAAO,MAAM,wCAAqB,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACrE,CAAC;CACF,CAAA;AAnHY,iBAAiB;IAD7B,gBAAO,CAAC,sCAA0B,CAAC,SAAS,CAAC;GACjC,iBAAiB,CAmH7B;AAnHY,8CAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"provisionConfig.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAepE,qBAAa,eAAe;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IACl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,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAEpB,wBAAwB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAoDrE,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAU1D,OAAO,CAAC,sBAAsB;CAiB/B"}
@@ -6,7 +6,6 @@ const utils = tslib_1.__importStar(require("../utils/common"));
6
6
  const strings_1 = require("../resources/strings");
7
7
  const constants_1 = require("../constants");
8
8
  const errors_1 = require("../errors");
9
- const common_1 = require("../../../../common");
10
9
  class ProvisionConfig {
11
10
  async restoreConfigFromContext(context) {
12
11
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
@@ -32,15 +31,6 @@ class ProvisionConfig {
32
31
  .get(strings_1.PluginFunction.PLUGIN_NAME)) === null || _k === void 0 ? void 0 : _k.get(strings_1.PluginFunction.ENDPOINT);
33
32
  this.appServicePlan = context.config.get(strings_1.PluginBot.APP_SERVICE_PLAN);
34
33
  this.siteName = context.config.get(strings_1.PluginBot.SITE_NAME);
35
- if (!common_1.isArmSupportEnabled()) {
36
- const skuNameValue = context.config.get(strings_1.PluginBot.SKU_NAME);
37
- if (skuNameValue) {
38
- this.skuName = skuNameValue;
39
- }
40
- else {
41
- this.skuName = constants_1.WebAppConstants.APP_SERVICE_PLAN_DEFAULT_SKU_NAME;
42
- }
43
- }
44
34
  this.siteEndpoint = context.config.get(strings_1.PluginBot.SITE_ENDPOINT);
45
35
  this.botChannelRegName = context.config.get(strings_1.PluginBot.BOT_CHANNEL_REGISTRATION);
46
36
  this.botWebAppResourceId = context.config.get(strings_1.PluginBot.BOT_WEB_APP_RESOURCE_ID);
@@ -1 +1 @@
1
- {"version":3,"file":"provisionConfig.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/bot/configs/provisionConfig.ts"],"names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E,CAAC;IAEO,sBAAsB;QAC5B,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAChE,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtE;QAED,IAAI,IAAI,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;YAC9E,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,aAAa,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC9E;QAED,IAAI,IAAI,CAAC,cAAc,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YAChF,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;SACnF;QAED,IAAI,IAAI,CAAC,iBAAiB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE;YACrF,MAAM,IAAI,8BAAqB,CAAC,sBAAU,CAAC,oBAAoB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;SAC1F;IACH,CAAC;CACF;AAtGD,0CAsGC"}
@@ -1,7 +1,7 @@
1
1
  import { ProgrammingLanguage } from "./enums/programmingLanguage";
2
2
  import * as appService from "@azure/arm-appservice";
3
3
  import { NameValuePair } from "@azure/arm-appservice/esm/models";
4
- import { ScaffoldAction } from "../../../common/templatesActions";
4
+ import { ScaffoldAction } from "../../../common/template-utils/templatesActions";
5
5
  import { TeamsBotConfig } from "./configs/teamsBotConfig";
6
6
  export declare class LanguageStrategy {
7
7
  static getTemplateProject(group_name: string, config: TeamsBotConfig, actions?: ScaffoldAction[]): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"languageStrategy.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIlE,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAEL,cAAc,EAIf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,gBAAgB;WACP,kBAAkB,CACpC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,cAAc,EAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;WAiCF,eAAe,CAC3B,QAAQ,EAAE,mBAAmB,EAC7B,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa,EAAE,GAC5B,UAAU,CAAC,uBAAuB,CAAC,IAAI;WA8BtB,UAAU,CAC5B,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC;CAoBjB"}
1
+ {"version":3,"file":"languageStrategy.d.ts","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIlE,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,OAAO,EAEL,cAAc,EAIf,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,qBAAa,gBAAgB;WACP,kBAAkB,CACpC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,cAAc,EACtB,OAAO,GAAE,cAAc,EAAqB,GAC3C,OAAO,CAAC,IAAI,CAAC;WAiCF,eAAe,CAC3B,QAAQ,EAAE,mBAAmB,EAC7B,kBAAkB,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa,EAAE,GAC5B,UAAU,CAAC,uBAAuB,CAAC,IAAI;WA8BtB,UAAU,CAC5B,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAAC,IAAI,CAAC;CAoBjB"}
@@ -11,7 +11,7 @@ const strings_1 = require("./resources/strings");
11
11
  const errors_1 = require("./errors");
12
12
  const logger_1 = require("./logger");
13
13
  const messages_1 = require("./resources/messages");
14
- const templatesActions_1 = require("../../../common/templatesActions");
14
+ const templatesActions_1 = require("../../../common/template-utils/templatesActions");
15
15
  class LanguageStrategy {
16
16
  static async getTemplateProject(group_name, config, actions = templatesActions_1.defaultActionSeq) {
17
17
  await templatesActions_1.scaffoldFromTemplates({
@@ -1 +1 @@
1
- {"version":3,"file":"languageStrategy.js","sourceRoot":"","sources":["../../../../src/plugins/resource/bot/languageStrategy.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,8DAAwC;AACxC,qEAAkE;AAClE,2CAA2E;AAC3E,iDAA+C;AAI/C,qCAAuF;AACvF,qCAAkC;AAClC,mDAAgD;AAChD,uEAM0C;AAG1C,MAAa,gBAAgB;IACpB,MAAM,CAAC,KAAK,CAAC,kBAAkB,CACpC,UAAkB,EAClB,MAAsB,EACtB,UAA4B,mCAAgB;QAE5C,MAAM,wCAAqB,CACzB;YACE,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAoB,CAAC;YAClE,QAAQ,EAAE,qCAAyB,CAAC,qBAAqB;YACzD,mBAAmB,EAAE,qCAAyB,CAAC,oBAAoB;YACnE,GAAG,EAAE,MAAM,CAAC,QAAQ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,QAAQ,CAAC;IAIxD,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IA4BpD,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAyFjD,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAoBrD,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;IAezD,gBAAgB,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC;YA8BtD,gCAAgC;YAiBhC,4BAA4B;YAwB5B,mCAAmC;YA8DnC,6BAA6B;YAoC7B,0BAA0B;CAwCzC"}
@@ -19,7 +19,6 @@ const strings_1 = require("./resources/strings");
19
19
  const errors_1 = require("./errors");
20
20
  const teamsBotConfig_1 = require("./configs/teamsBotConfig");
21
21
  const progressBars_1 = require("./progressBars");
22
- const pluginActRoles_1 = require("./enums/pluginActRoles");
23
22
  const resourceNameFactory_1 = require("./utils/resourceNameFactory");
24
23
  const appStudio_1 = require("./appStudio/appStudio");
25
24
  const logger_1 = require("./logger");
@@ -54,21 +53,19 @@ class TeamsBotImpl {
54
53
  await (handler === null || handler === void 0 ? void 0 : handler.start(constants_1.ProgressBarConstants.SCAFFOLD_STEP_START));
55
54
  // 1. Copy the corresponding template project into target directory.
56
55
  // Get group name.
57
- let group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_BOT;
56
+ const group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_BOT_MSGEXT;
58
57
  if (!this.config.actRoles || this.config.actRoles.length === 0) {
59
58
  throw new errors_1.SomethingMissingError("act roles");
60
59
  }
61
- const hasBot = this.config.actRoles.includes(pluginActRoles_1.PluginActRoles.Bot);
62
- const hasMsgExt = this.config.actRoles.includes(pluginActRoles_1.PluginActRoles.MessageExtension);
63
- if (hasBot && hasMsgExt) {
64
- group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_BOT_MSGEXT;
65
- }
66
- else if (hasBot) {
67
- group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_BOT;
68
- }
69
- else {
70
- group_name = constants_1.TemplateProjectsConstants.GROUP_NAME_MSGEXT;
71
- }
60
+ // const hasBot = this.config.actRoles.includes(PluginActRoles.Bot);
61
+ // const hasMsgExt = this.config.actRoles.includes(PluginActRoles.MessageExtension);
62
+ // if (hasBot && hasMsgExt) {
63
+ // group_name = TemplateProjectsConstants.GROUP_NAME_BOT_MSGEXT;
64
+ // } else if (hasBot) {
65
+ // group_name = TemplateProjectsConstants.GROUP_NAME_BOT;
66
+ // } else {
67
+ // group_name = TemplateProjectsConstants.GROUP_NAME_MSGEXT;
68
+ // }
72
69
  await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.SCAFFOLD_STEP_FETCH_ZIP));
73
70
  await languageStrategy_1.LanguageStrategy.getTemplateProject(group_name, this.config);
74
71
  this.config.saveConfigIntoContext(context);
@@ -76,24 +73,11 @@ class TeamsBotImpl {
76
73
  return result_1.FxBotPluginResultFactory.Success();
77
74
  }
78
75
  async preProvision(context) {
79
- var _a, _b;
80
76
  this.ctx = context;
81
77
  await this.config.restoreConfigFromContext(context);
82
78
  logger_1.Logger.info(messages_1.Messages.PreProvisioningBot);
83
79
  // Preconditions checking.
84
80
  errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.PROGRAMMING_LANGUAGE, this.config.scaffold.programmingLanguage);
85
- if (!common_1.isArmSupportEnabled()) {
86
- // CheckThrowSomethingMissing(ConfigNames.GRAPH_TOKEN, this.config.scaffold.graphToken);
87
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SUBSCRIPTION_ID, this.config.provision.subscriptionId);
88
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.RESOURCE_GROUP, this.config.provision.resourceGroup);
89
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.LOCATION, this.config.provision.location);
90
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SKU_NAME, this.config.provision.skuName);
91
- errors_1.CheckThrowSomethingMissing(strings_1.CommonStrings.SHORT_APP_NAME, (_a = this.ctx.projectSettings) === null || _a === void 0 ? void 0 : _a.appName);
92
- if (!this.config.provision.siteName) {
93
- this.config.provision.siteName = resourceNameFactory_1.ResourceNameFactory.createCommonName(this.config.resourceNameSuffix, (_b = this.ctx.projectSettings) === null || _b === void 0 ? void 0 : _b.appName, constants_1.MaxLengths.WEB_APP_SITE_NAME);
94
- logger_1.Logger.debug(`Site name generated to use is ${this.config.provision.siteName}.`);
95
- }
96
- }
97
81
  this.config.saveConfigIntoContext(context);
98
82
  return result_1.FxBotPluginResultFactory.Success();
99
83
  }
@@ -111,20 +95,11 @@ class TeamsBotImpl {
111
95
  // 1. Do bot registration.
112
96
  await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.PROVISION_STEP_BOT_REG));
113
97
  const botAuthCreds = await this.createOrGetBotAppRegistration();
114
- if (!common_1.isArmSupportEnabled()) {
115
- await this.provisionBotServiceOnAzure(botAuthCreds);
116
- await (handler === null || handler === void 0 ? void 0 : handler.next(constants_1.ProgressBarConstants.PROVISION_STEP_WEB_APP));
117
- // 2. Provision azure web app for hosting bot project.
118
- await this.provisionWebApp();
119
- this.config.saveConfigIntoContext(context);
120
- logger_1.Logger.info(messages_1.Messages.SuccessfullyProvisionedBot);
121
- }
122
98
  return result_1.FxBotPluginResultFactory.Success();
123
99
  }
124
100
  async updateArmTemplates(ctx) {
125
101
  logger_1.Logger.info(messages_1.Messages.UpdatingArmTemplatesBot);
126
- const azureSolutionSettings = ctx.projectSettings.solutionSettings;
127
- const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(azureSolutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
102
+ const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
128
103
  const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
129
104
  const bicepTemplateDir = path_1.default.join(folder_1.getTemplatesFolder(), constants_1.PathInfo.BicepTemplateRelativeDir);
130
105
  const configModule = await tools_1.generateBicepFromFile(path_1.default.join(bicepTemplateDir, constants_1.PathInfo.ConfigurationModuleTemplateFileName), pluginCtx);
@@ -143,8 +118,7 @@ class TeamsBotImpl {
143
118
  }
144
119
  async generateArmTemplates(ctx) {
145
120
  logger_1.Logger.info(messages_1.Messages.GeneratingArmTemplatesBot);
146
- const azureSolutionSettings = ctx.projectSettings.solutionSettings;
147
- const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(azureSolutionSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
121
+ const plugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(ctx.projectSettings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
148
122
  const pluginCtx = { plugins: plugins.map((obj) => obj.name) };
149
123
  const bicepTemplateDir = path_1.default.join(folder_1.getTemplatesFolder(), constants_1.PathInfo.BicepTemplateRelativeDir);
150
124
  const provisionOrchestration = await tools_1.generateBicepFromFile(path_1.default.join(bicepTemplateDir, constants_2.Bicep.ProvisionFileName), pluginCtx);
@@ -196,95 +170,6 @@ class TeamsBotImpl {
196
170
  this.ctx.config.set(strings_1.PluginBot.VALID_DOMAIN, `${this.config.provision.siteName}.${constants_1.WebAppConstants.WEB_APP_SITE_DOMAIN}`);
197
171
  }
198
172
  async postProvision(context) {
199
- if (common_1.isArmSupportEnabled()) {
200
- return result_1.FxBotPluginResultFactory.Success();
201
- }
202
- logger_1.Logger.info(messages_1.Messages.PostProvisioningStart);
203
- this.ctx = context;
204
- await this.config.restoreConfigFromContext(context);
205
- // 1. Get required config items from other plugins.
206
- // 2. Update bot hosting env"s app settings.
207
- const botId = this.config.scaffold.botId;
208
- const botPassword = this.config.scaffold.botPassword;
209
- const teamsAppClientId = this.config.teamsAppClientId;
210
- const teamsAppClientSecret = this.config.teamsAppClientSecret;
211
- const teamsAppTenant = this.config.teamsAppTenant;
212
- const applicationIdUris = this.config.applicationIdUris;
213
- const siteEndpoint = this.config.provision.siteEndpoint;
214
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.BOT_ID, botId);
215
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.BOT_PASSWORD, botPassword);
216
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.AUTH_CLIENT_ID, teamsAppClientId);
217
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.AUTH_CLIENT_SECRET, teamsAppClientSecret);
218
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.AUTH_TENANT, teamsAppTenant);
219
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.AUTH_APPLICATION_ID_URIS, applicationIdUris);
220
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SITE_ENDPOINT, siteEndpoint);
221
- const serviceClientCredentials = await this.getAzureAccountCredenial();
222
- const webSiteMgmtClient = factory.createWebSiteMgmtClient(serviceClientCredentials, this.config.provision.subscriptionId);
223
- const appSettings = [
224
- { name: constants_1.AuthEnvNames.BOT_ID, value: botId },
225
- { name: constants_1.AuthEnvNames.BOT_PASSWORD, value: botPassword },
226
- { name: constants_1.AuthEnvNames.M365_CLIENT_ID, value: teamsAppClientId },
227
- { name: constants_1.AuthEnvNames.M365_CLIENT_SECRET, value: teamsAppClientSecret },
228
- { name: constants_1.AuthEnvNames.M365_TENANT_ID, value: teamsAppTenant },
229
- { name: constants_1.AuthEnvNames.M365_AUTHORITY_HOST, value: constants_1.AuthValues.M365_AUTHORITY_HOST },
230
- {
231
- name: constants_1.AuthEnvNames.INITIATE_LOGIN_ENDPOINT,
232
- value: `${this.config.provision.siteEndpoint}${strings_1.CommonStrings.AUTH_LOGIN_URI_SUFFIX}`,
233
- },
234
- { name: constants_1.AuthEnvNames.M365_APPLICATION_ID_URI, value: applicationIdUris },
235
- ];
236
- if (this.config.provision.sqlEndpoint) {
237
- appSettings.push({
238
- name: constants_1.AuthEnvNames.SQL_ENDPOINT,
239
- value: this.config.provision.sqlEndpoint,
240
- });
241
- }
242
- if (this.config.provision.sqlDatabaseName) {
243
- appSettings.push({
244
- name: constants_1.AuthEnvNames.SQL_DATABASE_NAME,
245
- value: this.config.provision.sqlDatabaseName,
246
- });
247
- }
248
- if (this.config.provision.sqlUserName) {
249
- appSettings.push({
250
- name: constants_1.AuthEnvNames.SQL_USER_NAME,
251
- value: this.config.provision.sqlUserName,
252
- });
253
- }
254
- if (this.config.provision.sqlPassword) {
255
- appSettings.push({
256
- name: constants_1.AuthEnvNames.SQL_PASSWORD,
257
- value: this.config.provision.sqlPassword,
258
- });
259
- }
260
- if (this.config.provision.identityClientId) {
261
- appSettings.push({
262
- name: constants_1.AuthEnvNames.IDENTITY_ID,
263
- value: this.config.provision.identityClientId,
264
- });
265
- }
266
- if (this.config.provision.functionEndpoint) {
267
- appSettings.push({
268
- name: constants_1.AuthEnvNames.API_ENDPOINT,
269
- value: this.config.provision.functionEndpoint,
270
- });
271
- }
272
- const siteEnvelope = languageStrategy_1.LanguageStrategy.getSiteEnvelope(this.config.scaffold.programmingLanguage, this.config.provision.appServicePlan, this.config.provision.location, appSettings);
273
- if (this.config.provision.identityResourceId) {
274
- siteEnvelope.identity = {
275
- type: constants_1.IdentityConstants.IDENTITY_TYPE_USER_ASSIGNED,
276
- userAssignedIdentities: {
277
- [this.config.provision.identityResourceId]: {},
278
- },
279
- };
280
- }
281
- logger_1.Logger.info(messages_1.Messages.UpdatingAzureWebAppSettings);
282
- await azureOps_1.AzureOperations.CreateOrUpdateAzureWebApp(webSiteMgmtClient, this.config.provision.resourceGroup, this.config.provision.siteName, siteEnvelope, true);
283
- logger_1.Logger.info(messages_1.Messages.SuccessfullyUpdatedAzureWebAppSettings);
284
- // 3. Update message endpoint for bot registration.
285
- await this.updateMessageEndpointOnAzure(`${this.config.provision.siteEndpoint}${strings_1.CommonStrings.MESSAGE_ENDPOINT_SUFFIX}`);
286
- this.config.saveConfigIntoContext(context);
287
- logger_1.Logger.info(messages_1.Messages.SuccessfullyPostProvisionedBot);
288
173
  return result_1.FxBotPluginResultFactory.Success();
289
174
  }
290
175
  async preDeploy(context) {
@@ -298,9 +183,7 @@ class TeamsBotImpl {
298
183
  }
299
184
  errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SITE_ENDPOINT, this.config.provision.siteEndpoint);
300
185
  errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.PROGRAMMING_LANGUAGE, this.config.scaffold.programmingLanguage);
301
- if (common_1.isArmSupportEnabled()) {
302
- errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.BOT_SERVICE_RESOURCE_ID, this.config.provision.botWebAppResourceId);
303
- }
186
+ errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.BOT_SERVICE_RESOURCE_ID, this.config.provision.botWebAppResourceId);
304
187
  errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.SUBSCRIPTION_ID, this.config.provision.subscriptionId);
305
188
  errors_1.CheckThrowSomethingMissing(strings_1.ConfigNames.RESOURCE_GROUP, this.config.provision.resourceGroup);
306
189
  this.config.saveConfigIntoContext(context);
@@ -309,11 +192,9 @@ class TeamsBotImpl {
309
192
  async deploy(context) {
310
193
  this.ctx = context;
311
194
  await this.config.restoreConfigFromContext(context);
312
- if (common_1.isArmSupportEnabled()) {
313
- this.config.provision.subscriptionId = common_1.getSubscriptionIdFromResourceId(this.config.provision.botWebAppResourceId);
314
- this.config.provision.resourceGroup = common_1.getResourceGroupNameFromResourceId(this.config.provision.botWebAppResourceId);
315
- this.config.provision.siteName = common_1.getSiteNameFromResourceId(this.config.provision.botWebAppResourceId);
316
- }
195
+ this.config.provision.subscriptionId = common_1.getSubscriptionIdFromResourceId(this.config.provision.botWebAppResourceId);
196
+ this.config.provision.resourceGroup = common_1.getResourceGroupNameFromResourceId(this.config.provision.botWebAppResourceId);
197
+ this.config.provision.siteName = common_1.getSiteNameFromResourceId(this.config.provision.botWebAppResourceId);
317
198
  logger_1.Logger.info(messages_1.Messages.DeployingBot);
318
199
  const workingDir = this.config.scaffold.workingDir;
319
200
  if (!workingDir) {