@microsoft/teamsfx-core 2.0.0-alpha.a17e3a89d.0 → 2.0.0-alpha.e6bcbdb22.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 (112) hide show
  1. package/build/common/local/constants.d.ts +1 -2
  2. package/build/common/local/constants.d.ts.map +1 -1
  3. package/build/common/local/constants.js +1 -2
  4. package/build/common/local/constants.js.map +1 -1
  5. package/build/common/m365/constants.d.ts +6 -0
  6. package/build/common/m365/constants.d.ts.map +1 -0
  7. package/build/common/m365/constants.js +12 -0
  8. package/build/common/m365/constants.js.map +1 -0
  9. package/build/common/m365/launchHelper.d.ts +12 -0
  10. package/build/common/m365/launchHelper.d.ts.map +1 -0
  11. package/build/common/m365/launchHelper.js +109 -0
  12. package/build/common/m365/launchHelper.js.map +1 -0
  13. package/build/component/constant/commonConstant.d.ts +1 -0
  14. package/build/component/constant/commonConstant.d.ts.map +1 -1
  15. package/build/component/constant/commonConstant.js +1 -0
  16. package/build/component/constant/commonConstant.js.map +1 -1
  17. package/build/component/coordinator/index.d.ts.map +1 -1
  18. package/build/component/coordinator/index.js +18 -0
  19. package/build/component/coordinator/index.js.map +1 -1
  20. package/build/component/driver/aad/create.d.ts.map +1 -1
  21. package/build/component/driver/aad/create.js +11 -1
  22. package/build/component/driver/aad/create.js.map +1 -1
  23. package/build/component/driver/aad/error/unhandledError.js +1 -1
  24. package/build/component/driver/aad/error/unhandledError.js.map +1 -1
  25. package/build/component/driver/aad/interface/createAadAppArgs.d.ts +2 -0
  26. package/build/component/driver/aad/interface/createAadAppArgs.d.ts.map +1 -1
  27. package/build/component/driver/aad/interface/signInAudience.d.ts +7 -0
  28. package/build/component/driver/aad/interface/signInAudience.d.ts.map +1 -0
  29. package/build/component/driver/aad/interface/signInAudience.js +13 -0
  30. package/build/component/driver/aad/interface/signInAudience.js.map +1 -0
  31. package/build/component/driver/aad/utility/aadAppClient.d.ts +2 -1
  32. package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
  33. package/build/component/driver/aad/utility/aadAppClient.js +3 -2
  34. package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
  35. package/build/component/driver/botAadApp/error/unhandledError.js +1 -1
  36. package/build/component/driver/botAadApp/error/unhandledError.js.map +1 -1
  37. package/build/component/driver/botFramework/error/unhandledError.js +1 -1
  38. package/build/component/driver/botFramework/error/unhandledError.js.map +1 -1
  39. package/build/component/driver/file/error/unhandledError.js +1 -1
  40. package/build/component/driver/file/error/unhandledError.js.map +1 -1
  41. package/build/component/driver/interface/commonArgs.d.ts +2 -1
  42. package/build/component/driver/interface/commonArgs.d.ts.map +1 -1
  43. package/build/component/driver/m365/error/unhandledError.js +1 -1
  44. package/build/component/driver/m365/error/unhandledError.js.map +1 -1
  45. package/build/component/driver/middleware/updateProgress.d.ts +6 -0
  46. package/build/component/driver/middleware/updateProgress.d.ts.map +1 -0
  47. package/build/component/driver/middleware/updateProgress.js +15 -0
  48. package/build/component/driver/middleware/updateProgress.js.map +1 -0
  49. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  50. package/build/component/driver/teamsApp/configure.js +5 -12
  51. package/build/component/driver/teamsApp/configure.js.map +1 -1
  52. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  53. package/build/component/driver/teamsApp/createAppPackage.js +6 -14
  54. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  55. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  56. package/build/component/driver/teamsApp/publishAppPackage.js +9 -24
  57. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  58. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  59. package/build/component/driver/teamsApp/validate.js +6 -5
  60. package/build/component/driver/teamsApp/validate.js.map +1 -1
  61. package/build/component/middleware/envMW.d.ts +8 -2
  62. package/build/component/middleware/envMW.d.ts.map +1 -1
  63. package/build/component/middleware/envMW.js +13 -7
  64. package/build/component/middleware/envMW.js.map +1 -1
  65. package/build/component/resource/appManifest/appStudio.js +1 -0
  66. package/build/component/resource/appManifest/appStudio.js.map +1 -1
  67. package/build/component/resource/appManifest/appStudioClient.d.ts.map +1 -1
  68. package/build/component/resource/appManifest/appStudioClient.js +16 -1
  69. package/build/component/resource/appManifest/appStudioClient.js.map +1 -1
  70. package/build/component/resource/appManifest/errors.d.ts.map +1 -1
  71. package/build/component/resource/appManifest/errors.js +1 -1
  72. package/build/component/resource/appManifest/errors.js.map +1 -1
  73. package/build/component/resource/botService/errors.d.ts +0 -6
  74. package/build/component/resource/botService/errors.d.ts.map +1 -1
  75. package/build/component/resource/botService/errors.js +8 -15
  76. package/build/component/resource/botService/errors.js.map +1 -1
  77. package/build/component/utils.d.ts.map +1 -1
  78. package/build/component/utils.js +1 -0
  79. package/build/component/utils.js.map +1 -1
  80. package/build/core/FxCore.d.ts.map +1 -1
  81. package/build/core/FxCore.js +1 -0
  82. package/build/core/FxCore.js.map +1 -1
  83. package/build/core/FxCoreImplementV3.d.ts.map +1 -1
  84. package/build/core/FxCoreImplementV3.js +40 -16
  85. package/build/core/FxCoreImplementV3.js.map +1 -1
  86. package/build/core/collaborator.d.ts.map +1 -1
  87. package/build/core/collaborator.js +3 -7
  88. package/build/core/collaborator.js.map +1 -1
  89. package/build/core/middleware/questionModel.d.ts.map +1 -1
  90. package/build/core/middleware/questionModel.js +35 -31
  91. package/build/core/middleware/questionModel.js.map +1 -1
  92. package/build/core/middleware/utils/debug/taskMigrator.js +2 -2
  93. package/build/core/middleware/utils/debug/taskMigrator.js.map +1 -1
  94. package/build/core/question.d.ts +4 -2
  95. package/build/core/question.d.ts.map +1 -1
  96. package/build/core/question.js +48 -3
  97. package/build/core/question.js.map +1 -1
  98. package/build/error/common.js +3 -3
  99. package/build/error/common.js.map +1 -1
  100. package/package.json +4 -4
  101. package/resource/package.nls.json +179 -178
  102. package/resource/package.nls.zh-cn.json +200 -329
  103. package/resource/package.nls.zh-tw.json +200 -329
  104. package/templates/core/v3Migration/csharp.app.local.yml +18 -18
  105. package/templates/core/v3Migration/csharp.app.yml +18 -18
  106. package/templates/core/v3Migration/js.ts.app.local.yml +34 -28
  107. package/templates/core/v3Migration/js.ts.app.yml +27 -25
  108. package/templates/core/v3Migration/spfx.app.yml +8 -8
  109. package/templates/fallback/common.zip +0 -0
  110. package/templates/fallback/csharp.zip +0 -0
  111. package/templates/fallback/js.zip +0 -0
  112. package/templates/fallback/ts.zip +0 -0
@@ -2,32 +2,32 @@ version: 1.0.0
2
2
 
3
3
  registerApp:
4
4
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
5
- - uses: aadApp/create # Creates a new AAD app to authenticate users if AAD_APP_CLIENT_ID environment variable is empty
5
+ - uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
6
6
  with:
7
- name: {{aadAppName}} # Note: when you run configure/aadApp, the AAD app name will be updated based on the definition of manifest. If you don't want to change the name, ensure the name in AAD manifest is same with the name defined here.
7
+ name: {{aadAppName}} # Note: when you run aadApp/update, the AAD app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in AAD manifest is the same with the name defined here.
8
8
  generateClientSecret: true # If the value is false, the action will not generate client secret for you
9
- # Output: following environment variable will be persisted in current environment's .env file.
10
- # AAD_APP_CLIENT_ID: the client id of AAD app
11
- # AAD_APP_CLIENT_SECRET: the client secret of AAD app
12
- # AAD_APP_OBJECT_ID: the object id of AAD app
13
- # AAD_APP_TENANT_ID: the tenant id of AAD app
14
- # AAD_APP_OAUTH_AUTHORITY_HOST: the host of OAUTH authority of AAD app
15
- # AAD_APP_OAUTH_AUTHORITY: the OAUTH authority of AAD app
9
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
10
+ clientId: AAD_APP_CLIENT_ID
11
+ clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
12
+ objectId: AAD_APP_OBJECT_ID
13
+ tenantId: AAD_APP_TENANT_ID
14
+ authority: AAD_APP_OAUTH_AUTHORITY
15
+ authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
16
16
  {{/if}}
17
17
  - uses: teamsApp/create # Creates a Teams app
18
18
  with:
19
19
  name: {{teamsAppName}} # Teams app name
20
- # Output: following environment variable will be persisted in current environment's .env file.
21
- # TEAMS_APP_ID: the id of Teams app
20
+ writeToEnvironmentFile:
21
+ teamsAppId: TEAMS_APP_ID
22
22
 
23
23
  {{#if activePlugins.fx-resource-bot}}
24
24
  provision:
25
25
  - uses: botAadApp/create # Creates a new AAD app for Bot Registration.
26
26
  with:
27
27
  name: {{appName}}
28
- # Output: following environment variable will be persisted in current environment's .env file.
29
- # BOT_ID: the AAD app client id created for Bot Registration.
30
- # SECRET_BOT_PASSWORD: the AAD app client secret created for Bot Registration.
28
+ writeToEnvironmentFile:
29
+ botId: BOT_ID
30
+ botPassword: SECRET_BOT_PASSWORD
31
31
  - uses: botFramework/create # Create or update the bot registration on dev.botframework.com
32
32
  with:
33
33
  botId: $\{{BOT_ID}}
@@ -86,8 +86,8 @@ configureApp:
86
86
  with:
87
87
  manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
88
88
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
89
- # Output: following environment variable will be persisted in current environment's .env file.
90
- # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
89
+ # Output: following environment variable will be persisted in current environment's .env file.
90
+ # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
91
91
  {{/if}}
92
92
  - uses: teamsApp/validateManifest # Validate using manifest schema
93
93
  with:
@@ -100,5 +100,5 @@ configureApp:
100
100
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
101
101
  with:
102
102
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
103
- # Output: following environment variable will be persisted in current environment's .env file.
104
- # TEAMS_APP_ID: the id of Teams app
103
+ writeToEnvironmentFile:
104
+ teamsAppId: TEAMS_APP_ID
@@ -6,30 +6,30 @@ environmentFolderPath: ./ {{~environmentFolder}}
6
6
 
7
7
  provision:
8
8
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
9
- - uses: aadApp/create # Creates a new AAD app to authenticate users if AAD_APP_CLIENT_ID environment variable is empty
9
+ - uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
10
10
  with:
11
- name: {{aadAppName}} # Note: when you run configure/aadApp, the AAD app name will be updated based on the definition of manifest. If you don't want to change the name, ensure the name in AAD manifest is same with the name defined here.
11
+ name: {{aadAppName}} # Note: when you run aadApp/update, the AAD app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in AAD manifest is the same with the name defined here.
12
12
  generateClientSecret: true # If the value is false, the action will not generate client secret for you
13
- # Output: following environment variable will be persisted in current environment's .env file.
14
- # AAD_APP_CLIENT_ID: the client id of AAD app
15
- # AAD_APP_CLIENT_SECRET: the client secret of AAD app
16
- # AAD_APP_OBJECT_ID: the object id of AAD app
17
- # AAD_APP_TENANT_ID: the tenant id of AAD app
18
- # AAD_APP_OAUTH_AUTHORITY_HOST: the host of OAUTH authority of AAD app
19
- # AAD_APP_OAUTH_AUTHORITY: the OAUTH authority of AAD app
13
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
14
+ clientId: AAD_APP_CLIENT_ID
15
+ clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
16
+ objectId: AAD_APP_OBJECT_ID
17
+ tenantId: AAD_APP_TENANT_ID
18
+ authority: AAD_APP_OAUTH_AUTHORITY
19
+ authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
20
20
  {{/if}}
21
21
  - uses: teamsApp/create # Creates a Teams app
22
22
  with:
23
23
  name: {{teamsAppName}} # Teams app name
24
- # Output: following environment variable will be persisted in current environment's .env file.
25
- # TEAMS_APP_ID: the id of Teams app
24
+ writeToEnvironmentFile:
25
+ teamsAppId: TEAMS_APP_ID
26
26
  {{#if activePlugins.fx-resource-bot}}
27
27
  - uses: botAadApp/create # Creates a new AAD app for Bot Registration.
28
28
  with:
29
29
  name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
30
- # Output: following environment variable will be persisted in current environment's .env file.
31
- # BOT_ID: the AAD app client id created for Bot Registration.
32
- # SECRET_BOT_PASSWORD: the AAD app client secret created for Bot Registration.
30
+ writeToEnvironmentFile:
31
+ botId: BOT_ID
32
+ botPassword: SECRET_BOT_PASSWORD
33
33
  {{/if}}
34
34
  - uses: arm/deploy # Deploy given ARM templates parallelly.
35
35
  with:
@@ -51,8 +51,8 @@ provision:
51
51
  with:
52
52
  manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
53
53
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
54
- # Output: following environment variable will be persisted in current environment's .env file.
55
- # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
54
+ # Output: following environment variable will be persisted in current environment's .env file.
55
+ # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
56
56
  {{/if}}
57
57
  - uses: teamsApp/validateManifest # Validate using manifest schema
58
58
  with:
@@ -65,8 +65,8 @@ provision:
65
65
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
66
66
  with:
67
67
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
68
- # Output: following environment variable will be persisted in current environment's .env file.
69
- # TEAMS_APP_ID: the id of Teams app
68
+ writeToEnvironmentFile:
69
+ teamsAppId: TEAMS_APP_ID
70
70
 
71
71
  deploy:
72
72
  - uses: cli/runDotnetCommand
@@ -4,25 +4,25 @@ version: 1.0.0
4
4
  provision:
5
5
  {{#registerApp}}
6
6
  {{#if aad}}
7
- - uses: aadApp/create # Creates a new AAD app to authenticate users if AAD_APP_CLIENT_ID environment variable is empty
7
+ - uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
8
8
  with:
9
- name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad # Note: when you run configure/aadApp, the AAD app name will be updated based on the definition of manifest. If you don't want to change the name, ensure the name in AAD manifest is same with the name defined here.
9
+ name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-aad # Note: when you run aadApp/update, the AAD app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in AAD manifest is the same with the name defined here.
10
10
  generateClientSecret: true # If the value is false, the action will not generate client secret for you
11
- # Output: following environment variable will be persisted in current environment's .env file.
12
- # AAD_APP_CLIENT_ID: the client id of AAD app
13
- # AAD_APP_CLIENT_SECRET: the client secret of AAD app
14
- # AAD_APP_OBJECT_ID: the object id of AAD app
15
- # AAD_APP_TENANT_ID: the tenant id of AAD app
16
- # AAD_APP_OAUTH_AUTHORITY_HOST: the host of OAUTH authority of AAD app
17
- # AAD_APP_OAUTH_AUTHORITY: the OAUTH authority of AAD app
11
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
12
+ clientId: AAD_APP_CLIENT_ID
13
+ clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
14
+ objectId: AAD_APP_OBJECT_ID
15
+ tenantId: AAD_APP_TENANT_ID
16
+ authority: AAD_APP_OAUTH_AUTHORITY
17
+ authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
18
18
 
19
19
  {{/if}}
20
20
  {{#if teamsApp}}
21
21
  - uses: teamsApp/create # Creates a Teams app
22
22
  with:
23
23
  name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}} # Teams app name
24
- # Output: following environment variable will be persisted in current environment's .env file.
25
- # TEAMS_APP_ID: the id of Teams app
24
+ writeToEnvironmentFile:
25
+ teamsAppId: TEAMS_APP_ID
26
26
  {{/if}}
27
27
 
28
28
  {{/registerApp}}
@@ -30,9 +30,9 @@ provision:
30
30
  - uses: botAadApp/create # Creates a new AAD app for bot if BOT_ID environment variable is empty
31
31
  with:
32
32
  name: $\{{CONFIG__MANIFEST__APPNAME__SHORT}}-bot
33
- # Output: following environment variable will be persisted in current environment's .env file.
34
- # BOT_ID: the AAD app client id created for bot
35
- # SECRET_BOT_PASSWORD: the AAD app client secret created for bot
33
+ writeToEnvironmentFile:
34
+ botId: BOT_ID
35
+ botPassword: SECRET_BOT_PASSWORD
36
36
 
37
37
  - uses: botFramework/create # Create or update the bot registration on dev.botframework.com
38
38
  with:
@@ -68,8 +68,8 @@ provision:
68
68
  with:
69
69
  manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
70
70
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
71
- # Output: following environment variable will be persisted in current environment's .env file.
72
- # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
71
+ # Output: following environment variable will be persisted in current environment's .env file.
72
+ # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
73
73
 
74
74
  {{/if}}
75
75
  {{#teamsApp}}
@@ -77,8 +77,8 @@ provision:
77
77
  - uses: teamsApp/update # # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
78
78
  with:
79
79
  appPackagePath: {{appPackagePath}} # Relative path to this file. This is the path for built zip file.
80
- # Output: following environment variable will be persisted in current environment's .env file.
81
- # TEAMS_APP_ID: the id of Teams app
80
+ writeToEnvironmentFile:
81
+ teamsAppId: TEAMS_APP_ID
82
82
  {{else}}
83
83
  - uses: teamsApp/validateManifest # Validate using manifest schema
84
84
  with:
@@ -93,8 +93,8 @@ provision:
93
93
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
94
94
  with:
95
95
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
96
- # Output: following environment variable will be persisted in current environment's .env file.
97
- # TEAMS_APP_ID: the id of Teams app
96
+ writeToEnvironmentFile:
97
+ teamsAppId: TEAMS_APP_ID
98
98
  {{/if}}
99
99
 
100
100
  {{/teamsApp}}
@@ -102,9 +102,9 @@ provision:
102
102
  - uses: m365Title/acquire # Upload your app to Outlook and the Microsoft 365 app
103
103
  with:
104
104
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to the built app package.
105
- # Output: following environment variable will be persisted in current environment's .env file.
106
- # M365_TITLE_ID: the id of M365 title
107
- # M365_APP_ID: the app id of M365 title
105
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
106
+ titleId: M365_TITLE_ID
107
+ appId: M365_APP_ID
108
108
 
109
109
  {{/if}}
110
110
  {{/configureApp}}
@@ -124,11 +124,17 @@ deploy:
124
124
  {{#dotnet}}
125
125
  dotnet: true
126
126
  {{/dotnet}}
127
- {{#if devCert}}
128
- # Output: following environment variable will be persisted in current environment's .env file.
129
- # SSL_CRT_FILE: certificate file
130
- # SSL_KEY_FILE: certificate key
131
- {{/if}}
127
+ writeToEnvironmentFile: # Write the information of installed dependencies into environment file for the specified environment variable(s).
128
+ {{#devCert}}
129
+ sslCertFile: SSL_CRT_FILE
130
+ sslKeyFile: SSL_KEY_FILE
131
+ {{/devCert}}
132
+ {{#func}}
133
+ funcPath: FUNC_PATH
134
+ {{/func}}
135
+ {{#dotnet}}
136
+ dotnetPath: DOTNET_PATH
137
+ {{/dotnet}}
132
138
 
133
139
  {{/tools}}
134
140
  {{#dotnetCommand}}
@@ -6,30 +6,30 @@ environmentFolderPath: ./ {{~environmentFolder}}
6
6
 
7
7
  provision:
8
8
  {{#if activePlugins.fx-resource-aad-app-for-teams}}
9
- - uses: aadApp/create # Creates a new AAD app to authenticate users if AAD_APP_CLIENT_ID environment variable is empty
9
+ - uses: aadApp/create # Creates a new Azure Active Directory (AAD) app to authenticate users if the environment variable that stores clientId is empty
10
10
  with:
11
- name: {{aadAppName}} # Note: when you run configure/aadApp, the AAD app name will be updated based on the definition of manifest. If you don't want to change the name, ensure the name in AAD manifest is same with the name defined here.
11
+ name: {{aadAppName}} # Note: when you run aadApp/update, the AAD app name will be updated based on the definition in manifest. If you don't want to change the name, make sure the name in AAD manifest is the same with the name defined here.
12
12
  generateClientSecret: true # If the value is false, the action will not generate client secret for you
13
- # Output: following environment variable will be persisted in current environment's .env file.
14
- # AAD_APP_CLIENT_ID: the client id of AAD app
15
- # SECRET_AAD_APP_CLIENT_SECRET: the client secret of AAD app
16
- # AAD_APP_OBJECT_ID: the object id of AAD app
17
- # AAD_APP_TENANT_ID: the tenant id of AAD app
18
- # AAD_APP_OAUTH_AUTHORITY_HOST: the host of OAUTH authority of AAD app
19
- # AAD_APP_OAUTH_AUTHORITY: the OAUTH authority of AAD app
13
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
14
+ clientId: AAD_APP_CLIENT_ID
15
+ clientSecret: SECRET_AAD_APP_CLIENT_SECRET # Environment variable that starts with `SECRET_` will be stored to the .env.{envName}.user environment file
16
+ objectId: AAD_APP_OBJECT_ID
17
+ tenantId: AAD_APP_TENANT_ID
18
+ authority: AAD_APP_OAUTH_AUTHORITY
19
+ authorityHost: AAD_APP_OAUTH_AUTHORITY_HOST
20
20
  {{/if}}
21
21
  - uses: teamsApp/create # Creates a Teams app
22
22
  with:
23
23
  name: {{teamsAppName}} # Teams app name
24
- # Output: following environment variable will be persisted in current environment's .env file.
25
- # TEAMS_APP_ID: the id of Teams app
24
+ writeToEnvironmentFile:
25
+ teamsAppId: TEAMS_APP_ID
26
26
  {{#if activePlugins.fx-resource-bot}}
27
27
  - uses: botAadApp/create # Creates a new AAD app for Bot Registration.
28
28
  with:
29
29
  name: {{appName}}bt$\{{RESOURCE_SUFFIX}}
30
- # Output: following environment variable will be persisted in current environment's .env file.
31
- # BOT_ID: the AAD app client id created for Bot Registration.
32
- # SECRET_BOT_PASSWORD: the AAD app client secret created for Bot Registration.
30
+ writeToEnvironmentFile:
31
+ botId: BOT_ID
32
+ botPassword: SECRET_BOT_PASSWORD
33
33
  {{/if}}
34
34
  - uses: arm/deploy # Deploy given ARM templates parallelly.
35
35
  with:
@@ -54,8 +54,8 @@ provision:
54
54
  with:
55
55
  manifestPath: ./aad.manifest.json # Relative path to this file. Environment variables in manifest will be replaced before apply to AAD app
56
56
  outputFilePath : ./build/aad.manifest.$\{{TEAMSFX_ENV}}.json
57
- # Output: following environment variable will be persisted in current environment's .env file.
58
- # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
57
+ # Output: following environment variable will be persisted in current environment's .env file.
58
+ # AAD_APP_ACCESS_AS_USER_PERMISSION_ID: the id of access_as_user permission which is used to enable SSO
59
59
  {{/if}}
60
60
  - uses: teamsApp/validateManifest # Validate using manifest schema
61
61
  with:
@@ -68,15 +68,15 @@ provision:
68
68
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
69
69
  with:
70
70
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
71
- # Output: following environment variable will be persisted in current environment's .env file.
72
- # TEAMS_APP_ID: the id of Teams app
71
+ writeToEnvironmentFile:
72
+ teamsAppId: TEAMS_APP_ID
73
73
  {{#if isM365}}
74
74
  - uses: m365Title/acquire # Upload your app to Outlook and the Microsoft 365 app
75
75
  with:
76
76
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to the built app package.
77
- # Output: following environment variable will be persisted in current environment's .env file.
78
- # M365_TITLE_ID: the id of M365 title
79
- # M365_APP_ID: the app id of M365 title
77
+ writeToEnvironmentFile: # Write the information of created resources into environment file for the specified environment variable(s).
78
+ titleId: M365_TITLE_ID
79
+ appId: M365_APP_ID
80
80
  {{/if}}
81
81
 
82
82
  deploy:
@@ -152,6 +152,8 @@ deploy:
152
152
  - uses: prerequisite/install # Install dependencies
153
153
  with:
154
154
  dotnet: true
155
+ writeToEnvironmentFile: # Write the information of installed dependencies into environment file for the specified environment variable(s).
156
+ dotnetPath: DOTNET_PATH
155
157
  - uses: cli/runNpmCommand
156
158
  name: install api dependencies
157
159
  with:
@@ -189,10 +191,10 @@ publish:
189
191
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
190
192
  with:
191
193
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
192
- # Output: following environment variable will be persisted in current environment's .env file.
193
- # TEAMS_APP_ID: the id of Teams app
194
+ writeToEnvironmentFile:
195
+ teamsAppId: TEAMS_APP_ID
194
196
  - uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
195
197
  with:
196
198
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
197
- # Output: following environment variable will be persisted in current environment's .env file.
198
- # TEAMS_APP_PUBLISHED_APP_ID: app id in Teams tenant app catalog.
199
+ writeToEnvironmentFile:
200
+ publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
@@ -6,8 +6,8 @@ provision:
6
6
  - uses: teamsApp/create # Creates a Teams app
7
7
  with:
8
8
  name: {{teamsAppName}} # Teams app name
9
- # Output: following environment variable will be persisted in current environment's .env file.
10
- # TEAMS_APP_ID: the id of Teams app
9
+ writeToEnvironmentFile:
10
+ teamsAppId: TEAMS_APP_ID
11
11
  - uses: teamsApp/validateManifest # Validate using manifest schema
12
12
  with:
13
13
  manifestPath: ./appPackage/manifest.json # Path to manifest template
@@ -19,8 +19,8 @@ provision:
19
19
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app. Will use the app id in manifest file to determine which Teams app to update.
20
20
  with:
21
21
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
22
- # Output: following environment variable will be persisted in current environment's .env file.
23
- # TEAMS_APP_ID: the id of Teams app
22
+ writeToEnvironmentFile:
23
+ teamsAppId: TEAMS_APP_ID
24
24
 
25
25
  deploy:
26
26
  - uses: cli/runNpmCommand
@@ -56,10 +56,10 @@ publish:
56
56
  - uses: teamsApp/update # Apply the Teams app manifest to an existing Teams app in Teams Developer Portal. Will use the app id in manifest file to determine which Teams app to update.
57
57
  with:
58
58
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip # Relative path to this file. This is the path for built zip file.
59
- # Output: following environment variable will be persisted in current environment's .env file.
60
- # TEAMS_APP_ID: the id of Teams app
59
+ writeToEnvironmentFile:
60
+ teamsAppId: TEAMS_APP_ID
61
61
  - uses: teamsApp/publishAppPackage # Publish the app to Teams Admin Center (https://admin.teams.microsoft.com/policies/manage-apps) for review and approval
62
62
  with:
63
63
  appPackagePath: ./build/appPackage/appPackage.$\{{TEAMSFX_ENV}}.zip
64
- # Output: following environment variable will be persisted in current environment's .env file.
65
- # TEAMS_APP_PUBLISHED_APP_ID: app id in Teams tenant app catalog.
64
+ writeToEnvironmentFile:
65
+ publishedAppId: TEAMS_APP_PUBLISHED_APP_ID
Binary file
Binary file
Binary file
Binary file