From 2daf7e91f6f06d0ca74b7e36a8d16cd33fb524b0 Mon Sep 17 00:00:00 2001 From: huajiezhang Date: Thu, 26 Oct 2023 15:40:24 +0800 Subject: [PATCH] fix: revert cli name for v2 --- docs/cicd/azdo/cd.azure.yml | 2 +- docs/cicd/azdo/provision.azure.yml | 2 +- docs/cicd/jenkins/Jenkinsfile.azure.cd | 2 +- docs/cicd/jenkins/Jenkinsfile.azure.provision | 2 +- docs/cicd/others/cd.azure.sh | 2 +- docs/cicd/others/provision.azure.sh | 2 +- .../jenkins-cd-template.Jenkinsfile | 2 +- .../cicd_insider/others-script-cd-template.sh | 2 +- docs/cli/user-manual.md | 58 +++++++++---------- packages/cli/src/commands/models/account.ts | 4 +- .../src/commands/models/m365Sideloading.ts | 4 +- .../cli/src/commands/models/m365Unacquire.ts | 4 +- .../cli/src/commands/models/permission.ts | 4 +- packages/cli/src/commonlib/common/constant.ts | 6 +- packages/cli/tests/unit/commands.tests.ts | 24 ++++---- packages/tests/src/commonlib/cliHelper.ts | 2 +- packages/tests/src/e2e/README.md | 2 +- .../src/e2e/collaboration/Permission.tests.ts | 6 +- .../e2e/collaboration/PermissionSPFX.tests.ts | 6 +- .../src/e2e/command/accountCommand.tests.ts | 4 +- .../tests/src/e2e/command/helpInfo.tests.ts | 4 +- packages/tests/src/ui-test/cliHelper.ts | 2 +- packages/tests/src/utils/executor.ts | 2 +- .../default-bot-message-extension/README.md | 2 +- .../js/non-sso-tab-default-bot/bot/README.md | 2 +- .../js/non-sso-tab-default-bot/tab/README.md | 2 +- .../js/sso-tab-with-obo-flow/api/README.md | 2 +- .../default-bot-message-extension/README.md | 2 +- .../ts/non-sso-tab-default-bot/bot/README.md | 2 +- .../ts/non-sso-tab-default-bot/tab/README.md | 2 +- templates/ts/office-addin/README.md | 2 +- .../ts/sso-tab-with-obo-flow/api/README.md | 2 +- 32 files changed, 83 insertions(+), 83 deletions(-) diff --git a/docs/cicd/azdo/cd.azure.yml b/docs/cicd/azdo/cd.azure.yml index 3adedf0db4..6d65871686 100644 --- a/docs/cicd/azdo/cd.azure.yml +++ b/docs/cicd/azdo/cd.azure.yml @@ -44,7 +44,7 @@ steps: # npm run test # Login Azure by service principal - npx teamsapp auth login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID) + npx teamsfx account login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID) # Deploy to hosting environment. npx teamsfx deploy --env ${TEAMSFX_ENV_NAME} \ No newline at end of file diff --git a/docs/cicd/azdo/provision.azure.yml b/docs/cicd/azdo/provision.azure.yml index 9adce2a5a6..c1196ee9e6 100644 --- a/docs/cicd/azdo/provision.azure.yml +++ b/docs/cicd/azdo/provision.azure.yml @@ -37,7 +37,7 @@ steps: npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION} # Login Azure by service principal - npx teamsapp auth login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID) + npx teamsfx account login azure --service-principal --username $(AZURE_SERVICE_PRINCIPAL_NAME) --password $(AZURE_SERVICE_PRINCIPAL_PASSWORD) --tenant $(AZURE_TENANT_ID) # We suggest to do the `teamsfx provision` step manually or in a separate workflow. The following steps are for your reference. # After provisioning, you should commit necessary files under teamsfx into the repository. diff --git a/docs/cicd/jenkins/Jenkinsfile.azure.cd b/docs/cicd/jenkins/Jenkinsfile.azure.cd index 17e9b91fa3..55c17035da 100644 --- a/docs/cicd/jenkins/Jenkinsfile.azure.cd +++ b/docs/cicd/jenkins/Jenkinsfile.azure.cd @@ -57,7 +57,7 @@ pipeline { TENANT_ID = credentials('AZURE_TENANT_ID') } steps { - sh 'npx teamsapp auth login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' + sh 'npx teamsfx account login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' } } diff --git a/docs/cicd/jenkins/Jenkinsfile.azure.provision b/docs/cicd/jenkins/Jenkinsfile.azure.provision index 4a5ba8288a..1e579bed5c 100644 --- a/docs/cicd/jenkins/Jenkinsfile.azure.provision +++ b/docs/cicd/jenkins/Jenkinsfile.azure.provision @@ -42,7 +42,7 @@ pipeline { TENANT_ID = credentials('AZURE_TENANT_ID') } steps { - sh 'npx teamsapp auth login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' + sh 'npx teamsfx account login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' } } diff --git a/docs/cicd/others/cd.azure.sh b/docs/cicd/others/cd.azure.sh index 2a387febc3..c11c52aede 100644 --- a/docs/cicd/others/cd.azure.sh +++ b/docs/cicd/others/cd.azure.sh @@ -41,7 +41,7 @@ npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION} # npm run test # Login Azure by service principal -npx teamsapp auth login azure --service-principal --username ${AZURE_SERVICE_PRINCIPAL_NAME} --password ${AZURE_SERVICE_PRINCIPAL_PASSWORD} --tenant ${AZURE_TENANT_ID} +npx teamsfx account login azure --service-principal --username ${AZURE_SERVICE_PRINCIPAL_NAME} --password ${AZURE_SERVICE_PRINCIPAL_PASSWORD} --tenant ${AZURE_TENANT_ID} # Deploy to hosting environment. npx teamsfx deploy --env ${TEAMSFX_ENV_NAME} \ No newline at end of file diff --git a/docs/cicd/others/provision.azure.sh b/docs/cicd/others/provision.azure.sh index 1260428688..9b7eeac11a 100644 --- a/docs/cicd/others/provision.azure.sh +++ b/docs/cicd/others/provision.azure.sh @@ -30,7 +30,7 @@ cd {FolderName} npm install @microsoft/teamsfx-cli@${TEAMSFX_CLI_VERSION} # Login Azure by service principal -npx teamsapp auth login azure --service-principal --username ${AZURE_SERVICE_PRINCIPAL_NAME} --password ${AZURE_SERVICE_PRINCIPAL_PASSWORD} --tenant ${AZURE_TENANT_ID} +npx teamsfx account login azure --service-principal --username ${AZURE_SERVICE_PRINCIPAL_NAME} --password ${AZURE_SERVICE_PRINCIPAL_PASSWORD} --tenant ${AZURE_TENANT_ID} # We suggest to do the `teamsfx provision` step manually or in a separate workflow. The following steps are for your reference. # After provisioning, you should commit necessary files into the repository. diff --git a/docs/cicd_insider/jenkins-cd-template.Jenkinsfile b/docs/cicd_insider/jenkins-cd-template.Jenkinsfile index 67e9e2a3e5..565932fc86 100644 --- a/docs/cicd_insider/jenkins-cd-template.Jenkinsfile +++ b/docs/cicd_insider/jenkins-cd-template.Jenkinsfile @@ -65,7 +65,7 @@ pipeline { TENANT_ID = credentials('AZURE_TENANT_ID') } steps { - sh 'npx teamsapp auth login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' + sh 'npx teamsfx account login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID}' } } diff --git a/docs/cicd_insider/others-script-cd-template.sh b/docs/cicd_insider/others-script-cd-template.sh index 5939b10d8d..09d42a2e77 100644 --- a/docs/cicd_insider/others-script-cd-template.sh +++ b/docs/cicd_insider/others-script-cd-template.sh @@ -46,7 +46,7 @@ cd tabs && npm run test && cd - npx teamsfx config set -g interactive false # Login Azure by service principal -npx teamsapp auth login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID} +npx teamsfx account login azure --service-principal --username ${SP_NAME} --password ${SP_PASSWORD} --tenant ${TENANT_ID} # We suggest to do the provision steps by case manually or in a separated workflow, so just comment the following steps for references. # After provisioning, you should commit necessary files under .fx into the repository. diff --git a/docs/cli/user-manual.md b/docs/cli/user-manual.md index 09e8f26761..2f4af0cf53 100644 --- a/docs/cli/user-manual.md +++ b/docs/cli/user-manual.md @@ -19,7 +19,7 @@ Let's start by installing `teamsfx-cli` from `npm` and run `teamsfx -h` to check | `teamsfx` Commands | Descriptions | |:---------------- |:-------------| | `teamsfx new` | Create a new Teams application. | -| `teamsapp auth` | Manage cloud service accounts. The supported cloud services are 'Azure' and 'Microsoft 365'. | +| `teamsfx account` | Manage cloud service accounts. The supported cloud services are 'Azure' and 'Microsoft 365'. | | `teamsfx env` | Manage the environments. | | `teamsfx capability`| Add new capabilities to the current application. | | `teamsfx resource` | Manage the resources in the current application. | @@ -30,7 +30,7 @@ Let's start by installing `teamsfx-cli` from `npm` and run `teamsfx -h` to check | `teamsfx publish` | Publish the app to Teams. | | `teamsfx preview` | Preview the current application. | | `teamsfx config` | Manage the configuration data. | -| `teamsapp collaborator`| Collaborate with other developers in same project.| +| `teamsfx permission`| Collaborate with other developers in same project.| ## `teamsfx new` @@ -77,16 +77,16 @@ teamsfx new --interactive false --app-name newtabbotapp --capability tab bot --p teamsfx new --interactive false app-name newapp --azure-resources sql function --programming-language typescript ``` -## `teamsapp auth` +## `teamsfx account` Manage cloud service accounts. The supported cloud services are `Azure` and `Microsoft 365`. -| `teamsapp auth` Commands | Descriptions | +| `teamsfx account` Commands | Descriptions | |:---------------- |:-------------| -| `teamsapp auth show` | Display all connected cloud accounts information. | -| `teamsapp auth login ` | Log in to the selected cloud service. | -| `teamsapp auth logout ` | log out of selected cloud service. | -| `teamsapp auth set --subscription` | Update account settings to set a subscription ID. | +| `teamsfx account show` | Display all connected cloud accounts information. | +| `teamsfx account login ` | Log in to the selected cloud service. | +| `teamsfx account logout ` | log out of selected cloud service. | +| `teamsfx account set --subscription` | Update account settings to set a subscription ID. | ## `teamsfx env` @@ -313,57 +313,57 @@ teamsfx config get --env dev teamsfx config set fx-resource-aad-app-for-teams.clientSecret xxx --env dev ``` -## `teamsapp collaborator` +## `teamsfx permission` -TeamsFx CLI provides `teamsapp collaborator` Commands for collaboration scenario. +TeamsFx CLI provides `teamsfx permission` Commands for collaboration scenario. -| `teamsapp collaborator` Commands | Descriptions | +| `teamsfx permission` Commands | Descriptions | |:------------------------------|-------------| -| `teamsapp collaborator grant --env --email` | Grant permission for collaborator's Microsoft 365 account for the project of a specified environment. | -| `teamsapp collaborator status` | Show permission status for the project | +| `teamsfx permission grant --env --email` | Grant permission for collaborator's Microsoft 365 account for the project of a specified environment. | +| `teamsfx permission status` | Show permission status for the project | -### Parameters for `teamsapp collaborator grant` +### Parameters for `teamsfx permission grant` | Parameters | Required | Descriptions | |:---------------- |:-------------|:-------------| |`--env`| Yes | Provide env name. | |`--email`| Yes | Provide collaborator's Microsoft 365 email address. Note that the collaborator's account should be in the same tenant with creator. | -### Parameters for `teamsapp collaborator status` +### Parameters for `teamsfx permission status` | Parameters | Required | Descriptions | |:---------------- |:-------------|:-------------| |`--env`| Yes | Provide env name. | |`--list-all-collaborators` | No | With this flag, Teams Toolkit CLI will print out all collaborators for this project. | -### Scenarios for `teamsapp collaborator` +### Scenarios for `teamsfx permission` Here are some examples, for better handling permission for `TeamsFx` projects. #### Grant Permission -Project creator and collaborators can use `teamsapp collaborator grant` command to add a new collaborator to the project: +Project creator and collaborators can use `teamsfx permission grant` command to add a new collaborator to the project: ```bash -teamsapp collaborator grant --env dev --email user-email@user-tenant.com +teamsfx permission grant --env dev --email user-email@user-tenant.com ``` After successfully granted permission, project creator and collaborators can share the project with the new collaborator by Github, and the new collaborator will have all permission for Microsoft 365 account. #### Show Permission Status -Project creator and collaborators can use `teamsapp collaborator status` command to view his Microsoft 365 account permission for specific env: +Project creator and collaborators can use `teamsfx permission status` command to view his Microsoft 365 account permission for specific env: ```bash -teamsapp collaborator status --env dev +teamsfx permission status --env dev ``` #### List All Collaborators -Project creator and collaborators can use `teamsapp collaborator status` command to view all collaborators for specific env: +Project creator and collaborators can use `teamsfx permission status` command to view all collaborators for specific env: ```bash -teamsapp collaborator status --env dev --list-all-collaborators +teamsfx permission status --env dev --list-all-collaborators ``` #### E2E Collaboration work flow in CLI @@ -379,8 +379,8 @@ As a project creator: - Login Microsoft 365 account and Azure account. ```bash - teamsapp auth login azure - teamsapp auth login Microsoft 365 + teamsfx account login azure + teamsfx account login Microsoft 365 ``` - Provision your project. @@ -392,14 +392,14 @@ As a project creator: - View collaborators. You should see yourself here. ```bash - teamsapp collaborator status --env dev --list-all-collaborators + teamsfx permission status --env dev --list-all-collaborators ``` ![list-all-collaborators](./images/permission-status-all.png) - Add another account as collaborator. Note that the added account must under the same tenant: ```bash - teamsapp collaborator grant --env dev --email user-email@user-tenant.com + teamsfx permission grant --env dev --email user-email@user-tenant.com ``` ![add-new-collaborator](./images/permission-grant.png) @@ -411,19 +411,19 @@ As a Project Collaborator: - Login Microsoft 365 account. Note that the Microsoft 365 account should be the same as added above: ```bash - teamsapp auth login Microsoft 365 + teamsfx account login Microsoft 365 ``` - Login Azure account which has contributor permission for all the Azure resources. ```bash - teamsapp auth login azure + teamsfx account login azure ``` - Check permission status. You should find yourself have the owner permission of the project: ```bash - teamsapp collaborator status --env dev + teamsfx permission status --env dev ``` ![permission status](./images/permission-status.png) diff --git a/packages/cli/src/commands/models/account.ts b/packages/cli/src/commands/models/account.ts index 8899ff1b06..458a78772b 100644 --- a/packages/cli/src/commands/models/account.ts +++ b/packages/cli/src/commands/models/account.ts @@ -7,8 +7,8 @@ import { accountLogoutCommand } from "./accountLogout"; import { accountShowCommand } from "./accountShow"; export const accountCommand: CLICommand = { - name: "auth", - aliases: ["account"], + name: "account", + aliases: ["auth"], description: "Manage Microsoft 365 and Azure accounts.", commands: [accountShowCommand, accountLoginCommand, accountLogoutCommand], }; diff --git a/packages/cli/src/commands/models/m365Sideloading.ts b/packages/cli/src/commands/models/m365Sideloading.ts index 4c24469bfb..c68f5ef7ba 100644 --- a/packages/cli/src/commands/models/m365Sideloading.ts +++ b/packages/cli/src/commands/models/m365Sideloading.ts @@ -11,8 +11,8 @@ export const sideloadingServiceEndpoint = process.env.SIDELOADING_SERVICE_ENDPOINT ?? serviceEndpoint; export const m365SideloadingCommand: CLICommand = { - name: "install", - aliases: ["sideloading"], + name: "sideloading", + aliases: ["install"], description: "Sideloading an M365 App with corresponding information specified in the given manifest package.", options: [ diff --git a/packages/cli/src/commands/models/m365Unacquire.ts b/packages/cli/src/commands/models/m365Unacquire.ts index 267332aaed..a5bb8a2e06 100644 --- a/packages/cli/src/commands/models/m365Unacquire.ts +++ b/packages/cli/src/commands/models/m365Unacquire.ts @@ -9,8 +9,8 @@ import { TelemetryEvent } from "../../telemetry/cliTelemetryEvents"; import { sideloadingServiceEndpoint } from "./m365Sideloading"; export const m365UnacquireCommand: CLICommand = { - name: "uninstall", - aliases: ["unacquire"], + name: "unacquire", + aliases: ["uninstall"], description: "Remove an acquired M365 App.", options: [ { diff --git a/packages/cli/src/commands/models/permission.ts b/packages/cli/src/commands/models/permission.ts index e1f6b2ba69..d958974df1 100644 --- a/packages/cli/src/commands/models/permission.ts +++ b/packages/cli/src/commands/models/permission.ts @@ -5,8 +5,8 @@ import { permissionGrantCommand } from "./permissionGrant"; import { permissionStatusCommand } from "./permissionStatus"; export const permissionCommand: CLICommand = { - name: "collaborator", - aliases: ["permission"], + name: "permission", + aliases: ["collaborator"], description: "Check, grant and list permissions for who can access and manage Microsoft Teams application and Azure Active Directory application.", commands: [permissionStatusCommand, permissionGrantCommand], diff --git a/packages/cli/src/commonlib/common/constant.ts b/packages/cli/src/commonlib/common/constant.ts index 7ce37379fe..a3d62e0668 100644 --- a/packages/cli/src/commonlib/common/constant.ts +++ b/packages/cli/src/commonlib/common/constant.ts @@ -35,7 +35,7 @@ export const m365LoginMessage = "Log in to your Microsoft 365 account - opening default web browser at "; export const changeLoginTenantMessage = - "The following tenants require Multi-Factor Authentication (MFA). Use 'teamsapp auth login azure --tenant TENANT_ID' to explicitly login to a tenant."; + "The following tenants require Multi-Factor Authentication (MFA). Use 'teamsfx account login azure --tenant TENANT_ID' to explicitly login to a tenant."; export const MFACode = "AADSTS50076"; export const noSubscriptionFound = "NoSubscriptionFound"; @@ -50,7 +50,7 @@ export const envDefaultJsonFile = "env.default.json"; export const sendFileTimeout = "Send success page timeout."; export const usageError = "UsageError"; export const servicePrincipalLoginFormat = - "teamsapp auth login azure --service-principal --username NAME --password SECRET --tenant TENANT"; -export const codeFlowLoginFormat = "teamsapp auth login azure"; + "teamsfx account login azure --service-principal --username NAME --password SECRET --tenant TENANT"; +export const codeFlowLoginFormat = "teamsfx account login azure"; export const m365CacheName = "appStudio"; diff --git a/packages/cli/tests/unit/commands.tests.ts b/packages/cli/tests/unit/commands.tests.ts index 70acf8b712..b9d3903e1f 100644 --- a/packages/cli/tests/unit/commands.tests.ts +++ b/packages/cli/tests/unit/commands.tests.ts @@ -211,7 +211,7 @@ describe("CLI commands", () => { sandbox.stub(AzureTokenProvider, "signout"); sandbox.stub(accountUtils, "outputAzureInfo").resolves(); const ctx: CLIContext = { - command: { ...accountLoginAzureCommand, fullName: "teamsapp auth login azure" }, + command: { ...accountLoginAzureCommand, fullName: "teamsfx account login azure" }, optionValues: { "service-principal": false }, globalOptionValues: {}, argumentValues: [], @@ -224,7 +224,7 @@ describe("CLI commands", () => { sandbox.stub(AzureTokenProvider, "signout"); sandbox.stub(accountUtils, "outputAzureInfo").resolves(); const ctx: CLIContext = { - command: { ...accountLoginAzureCommand, fullName: "teamsapp auth login azure" }, + command: { ...accountLoginAzureCommand, fullName: "teamsfx account login azure" }, optionValues: { "service-principal": true }, globalOptionValues: {}, argumentValues: [], @@ -237,7 +237,7 @@ describe("CLI commands", () => { sandbox.stub(AzureTokenProvider, "signout"); sandbox.stub(accountUtils, "outputAzureInfo").resolves(); const ctx: CLIContext = { - command: { ...accountLoginAzureCommand, fullName: "teamsapp auth login azure" }, + command: { ...accountLoginAzureCommand, fullName: "teamsfx account login azure" }, optionValues: { "service-principal": false, username: "abc" }, globalOptionValues: {}, argumentValues: [], @@ -252,7 +252,7 @@ describe("CLI commands", () => { sandbox.stub(M365TokenProvider, "signout"); sandbox.stub(accountUtils, "outputM365Info").resolves(); const ctx: CLIContext = { - command: { ...accountLoginM365Command, fullName: "teamsapp auth login m365" }, + command: { ...accountLoginM365Command, fullName: "teamsfx account login m365" }, optionValues: { "service-principal": false }, globalOptionValues: {}, argumentValues: [], @@ -911,7 +911,7 @@ describe("CLI read-only commands", () => { sandbox.stub(AzureTokenProvider, "getStatus").resolves({ status: signedOut }); messages = []; const ctx: CLIContext = { - command: { ...accountShowCommand, fullName: "teamsapp auth show" }, + command: { ...accountShowCommand, fullName: "teamsfx account show" }, optionValues: {}, globalOptionValues: {}, argumentValues: [], @@ -928,7 +928,7 @@ describe("CLI read-only commands", () => { const outputAzureInfo = sandbox.stub(accountUtils, "outputAzureInfo").resolves(); messages = []; const ctx: CLIContext = { - command: { ...accountShowCommand, fullName: "teamsapp auth show" }, + command: { ...accountShowCommand, fullName: "teamsfx account show" }, optionValues: {}, globalOptionValues: {}, argumentValues: [], @@ -950,7 +950,7 @@ describe("CLI read-only commands", () => { const outputAccountInfoOffline = sandbox.stub(accountUtils, "outputAccountInfoOffline"); messages = []; const ctx: CLIContext = { - command: { ...accountShowCommand, fullName: "teamsapp auth show" }, + command: { ...accountShowCommand, fullName: "teamsfx account show" }, optionValues: {}, globalOptionValues: {}, argumentValues: [], @@ -964,7 +964,7 @@ describe("CLI read-only commands", () => { sandbox.stub(M365TokenProvider, "getStatus").resolves(err(new UserCancelError())); messages = []; const ctx: CLIContext = { - command: { ...accountShowCommand, fullName: "teamsapp auth show" }, + command: { ...accountShowCommand, fullName: "teamsfx account show" }, optionValues: {}, globalOptionValues: {}, argumentValues: [], @@ -979,7 +979,7 @@ describe("CLI read-only commands", () => { it("azure success", async () => { sandbox.stub(AzureTokenProvider, "signout").resolves(true); const ctx: CLIContext = { - command: { ...accountLogoutCommand, fullName: "teamsapp auth logout" }, + command: { ...accountLogoutCommand, fullName: "teamsfx account logout" }, optionValues: {}, globalOptionValues: {}, argumentValues: ["azure"], @@ -992,7 +992,7 @@ describe("CLI read-only commands", () => { it("azure fail", async () => { sandbox.stub(AzureTokenProvider, "signout").resolves(false); const ctx: CLIContext = { - command: { ...accountLogoutCommand, fullName: "teamsapp auth logout" }, + command: { ...accountLogoutCommand, fullName: "teamsfx account logout" }, optionValues: {}, globalOptionValues: {}, argumentValues: ["azure"], @@ -1005,7 +1005,7 @@ describe("CLI read-only commands", () => { it("m365 success", async () => { sandbox.stub(M365TokenProvider, "signout").resolves(true); const ctx: CLIContext = { - command: { ...accountLogoutCommand, fullName: "teamsapp auth logout" }, + command: { ...accountLogoutCommand, fullName: "teamsfx account logout" }, optionValues: {}, globalOptionValues: {}, argumentValues: ["m365"], @@ -1017,7 +1017,7 @@ describe("CLI read-only commands", () => { it("m365 fail", async () => { sandbox.stub(M365TokenProvider, "signout").resolves(false); const ctx: CLIContext = { - command: { ...accountLogoutCommand, fullName: "teamsapp auth logout" }, + command: { ...accountLogoutCommand, fullName: "teamsfx account logout" }, optionValues: {}, globalOptionValues: {}, argumentValues: ["m365"], diff --git a/packages/tests/src/commonlib/cliHelper.ts b/packages/tests/src/commonlib/cliHelper.ts index 29b34339e9..429fbf0511 100644 --- a/packages/tests/src/commonlib/cliHelper.ts +++ b/packages/tests/src/commonlib/cliHelper.ts @@ -17,7 +17,7 @@ export class CliHelper { projectPath: string, processEnv?: NodeJS.ProcessEnv ) { - const command = `teamsapp auth set --subscription ${subscription}`; + const command = `teamsfx account set --subscription ${subscription}`; const timeout = 100000; try { const result = await execAsync(command, { diff --git a/packages/tests/src/e2e/README.md b/packages/tests/src/e2e/README.md index 9dea824a6b..e367e81b5e 100644 --- a/packages/tests/src/e2e/README.md +++ b/packages/tests/src/e2e/README.md @@ -229,7 +229,7 @@ describe("teamsfx new sample", function () { #### setSubscription ```bash -teamsapp auth set --subscription ${subscription} +teamsfx account set --subscription ${subscription} ``` #### addEnv diff --git a/packages/tests/src/e2e/collaboration/Permission.tests.ts b/packages/tests/src/e2e/collaboration/Permission.tests.ts index f617fc1f37..5c07b70b3f 100644 --- a/packages/tests/src/e2e/collaboration/Permission.tests.ts +++ b/packages/tests/src/e2e/collaboration/Permission.tests.ts @@ -66,7 +66,7 @@ describe("Collaboration", function () { // Check Permission const checkPermissionResult = await execAsyncWithRetry( - `teamsapp collaborator status --env dev --interactive false --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json`, + `teamsfx permission status --env dev --interactive false --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json`, { cwd: projectPath, env: process.env, @@ -82,7 +82,7 @@ describe("Collaboration", function () { // Grant Permission const grantCollaboratorResult = await execAsyncWithRetry( - `teamsapp collaborator grant --email ${collaborator} --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json --interactive false`, + `teamsfx permission grant --email ${collaborator} --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json --interactive false`, { cwd: projectPath, env: process.env, @@ -99,7 +99,7 @@ describe("Collaboration", function () { console.log("[Successfully] grant permission"); const listCollaboratorResult = await execAsync( - `teamsapp collaborator status --all --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json --interactive false`, + `teamsfx permission status --all --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --aad-manifest-file ${projectPath}/aad.manifest.json --interactive false`, { cwd: projectPath, env: process.env, diff --git a/packages/tests/src/e2e/collaboration/PermissionSPFX.tests.ts b/packages/tests/src/e2e/collaboration/PermissionSPFX.tests.ts index daa9d901a2..b618cdeff1 100644 --- a/packages/tests/src/e2e/collaboration/PermissionSPFX.tests.ts +++ b/packages/tests/src/e2e/collaboration/PermissionSPFX.tests.ts @@ -64,7 +64,7 @@ describe("Collaboration", function () { appId = solutionConfig["solution"]["id"]; const checkPermissionResult = await execAsyncWithRetry( - `teamsapp collaborator status --env dev --interactive false --teams-manifest-file ${projectPath}/appPackage/manifest.json`, + `teamsfx permission status --env dev --interactive false --teams-manifest-file ${projectPath}/appPackage/manifest.json`, { cwd: projectPath, env: process.env, @@ -78,7 +78,7 @@ describe("Collaboration", function () { console.log("[Successfully] check permission"); const grantCollaboratorResult = await execAsyncWithRetry( - `teamsapp collaborator grant --email ${collaborator} --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --interactive false`, + `teamsfx permission grant --email ${collaborator} --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --interactive false`, { cwd: projectPath, env: process.env, @@ -93,7 +93,7 @@ describe("Collaboration", function () { console.log("[Successfully] grant permission"); const listCollaboratorResult = await execAsync( - `teamsapp collaborator status --all --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --interactive false`, + `teamsfx permission status --all --env dev --teams-manifest-file ${projectPath}/appPackage/manifest.json --interactive false`, { cwd: projectPath, env: process.env, diff --git a/packages/tests/src/e2e/command/accountCommand.tests.ts b/packages/tests/src/e2e/command/accountCommand.tests.ts index a1d4a53ecc..f56b3bf819 100644 --- a/packages/tests/src/e2e/command/accountCommand.tests.ts +++ b/packages/tests/src/e2e/command/accountCommand.tests.ts @@ -18,7 +18,7 @@ describe("account command", function () { `account show `, { testPlanCaseId: 15232246, author: "zhiyou@microsoft.com" }, async function () { - stdlog = await execAsync(`teamsapp auth show`, { + stdlog = await execAsync(`teamsfx account show`, { env: process.env, timeout: 0, }); @@ -31,7 +31,7 @@ describe("account command", function () { `account logout`, { testPlanCaseId: 15232255, author: "zhiyou@microsoft.com" }, async function () { - stdlog = await execAsync(`teamsapp auth logout azure`, { + stdlog = await execAsync(`teamsfx account logout azure`, { env: process.env, timeout: 0, }); diff --git a/packages/tests/src/e2e/command/helpInfo.tests.ts b/packages/tests/src/e2e/command/helpInfo.tests.ts index 114628021f..0113f11041 100644 --- a/packages/tests/src/e2e/command/helpInfo.tests.ts +++ b/packages/tests/src/e2e/command/helpInfo.tests.ts @@ -11,10 +11,10 @@ import { execAsync } from "../commonUtils"; describe("teamsfx command help", function () { it( - `teamsapp auth show -h`, + `teamsfx account show -h`, { testPlanCaseId: 15685961, author: "zhiyou@microsoft.com" }, async function () { - const result = await execAsync(`teamsapp auth show -h`, { + const result = await execAsync(`teamsfx account show -h`, { env: process.env, timeout: 0, }); diff --git a/packages/tests/src/ui-test/cliHelper.ts b/packages/tests/src/ui-test/cliHelper.ts index 97aca43bfd..05c7a0f3b8 100644 --- a/packages/tests/src/ui-test/cliHelper.ts +++ b/packages/tests/src/ui-test/cliHelper.ts @@ -26,7 +26,7 @@ export class CliHelper { projectPath: string, processEnv?: NodeJS.ProcessEnv ) { - const command = `teamsapp auth set --subscription ${subscription}`; + const command = `teamsfx account set --subscription ${subscription}`; const timeout = 100000; try { const result = await execAsync(command, { diff --git a/packages/tests/src/utils/executor.ts b/packages/tests/src/utils/executor.ts index 225fcde969..071efb24f8 100644 --- a/packages/tests/src/utils/executor.ts +++ b/packages/tests/src/utils/executor.ts @@ -270,7 +270,7 @@ export class Executor { projectPath: string, processEnv?: NodeJS.ProcessEnv ) { - const command = `teamsapp auth set --subscription ${subscription}`; + const command = `teamsfx account set --subscription ${subscription}`; return this.execute(command, projectPath, processEnv); } diff --git a/templates/js/default-bot-message-extension/README.md b/templates/js/default-bot-message-extension/README.md index 647715f3d4..140078c359 100644 --- a/templates/js/default-bot-message-extension/README.md +++ b/templates/js/default-bot-message-extension/README.md @@ -44,7 +44,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/js/non-sso-tab-default-bot/bot/README.md b/templates/js/non-sso-tab-default-bot/bot/README.md index d63cd8e018..885db7a584 100644 --- a/templates/js/non-sso-tab-default-bot/bot/README.md +++ b/templates/js/non-sso-tab-default-bot/bot/README.md @@ -44,7 +44,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/js/non-sso-tab-default-bot/tab/README.md b/templates/js/non-sso-tab-default-bot/tab/README.md index e5038488bd..9c45b3f517 100644 --- a/templates/js/non-sso-tab-default-bot/tab/README.md +++ b/templates/js/non-sso-tab-default-bot/tab/README.md @@ -30,7 +30,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEVELOPMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEVELOPMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/js/sso-tab-with-obo-flow/api/README.md b/templates/js/sso-tab-with-obo-flow/api/README.md index 2e5f16ae33..61458fbe13 100644 --- a/templates/js/sso-tab-with-obo-flow/api/README.md +++ b/templates/js/sso-tab-with-obo-flow/api/README.md @@ -73,7 +73,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the command palette and select: `Teams: Provision`.
  • Open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsapp auth set --subscription `.
  • Run command `teamsfx provision`.
  • Run command `teamsfx deploy`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the command palette and select: `Teams: Provision`.
  • Open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx account set --subscription `.
  • Run command `teamsfx provision`.
  • Run command `teamsfx deploy`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/ts/default-bot-message-extension/README.md b/templates/ts/default-bot-message-extension/README.md index a281d7169f..cba03782ea 100644 --- a/templates/ts/default-bot-message-extension/README.md +++ b/templates/ts/default-bot-message-extension/README.md @@ -44,7 +44,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/ts/non-sso-tab-default-bot/bot/README.md b/templates/ts/non-sso-tab-default-bot/bot/README.md index 2e36b54fd4..d56398885a 100644 --- a/templates/ts/non-sso-tab-default-bot/bot/README.md +++ b/templates/ts/non-sso-tab-default-bot/bot/README.md @@ -44,7 +44,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEPLOYMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/ts/non-sso-tab-default-bot/tab/README.md b/templates/ts/non-sso-tab-default-bot/tab/README.md index e5038488bd..9c45b3f517 100644 --- a/templates/ts/non-sso-tab-default-bot/tab/README.md +++ b/templates/ts/non-sso-tab-default-bot/tab/README.md @@ -30,7 +30,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEVELOPMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from DEVELOPMENT section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx provision --env dev`.
  • Run command: `teamsfx deploy --env dev`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. diff --git a/templates/ts/office-addin/README.md b/templates/ts/office-addin/README.md index 2103610b58..f8ae2c7d32 100644 --- a/templates/ts/office-addin/README.md +++ b/templates/ts/office-addin/README.md @@ -26,7 +26,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from LIFECYCLE section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • (Optional)Set environment variable AZURE_SUBSCRIPTION_ID to your subscription id in env/.env.dev or in your current shell envrionment if you are using non-interactive mode of `teamsfx` CLI.
  • Run command `teamsfx provision`.
  • Run command: `teamsfx deploy`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the Teams Toolkit and click `Provision` from LIFECYCLE section or open the command palette and select: `Teams: Provision`.
  • Open the Teams Toolkit and click `Deploy` or open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • (Optional)Set environment variable AZURE_SUBSCRIPTION_ID to your subscription id in env/.env.dev or in your current shell envrionment if you are using non-interactive mode of `teamsfx` CLI.
  • Run command `teamsfx provision`.
  • Run command: `teamsfx deploy`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription. To sideload the deployed add-in: diff --git a/templates/ts/sso-tab-with-obo-flow/api/README.md b/templates/ts/sso-tab-with-obo-flow/api/README.md index c3872ed5c1..fcb70526e9 100644 --- a/templates/ts/sso-tab-with-obo-flow/api/README.md +++ b/templates/ts/sso-tab-with-obo-flow/api/README.md @@ -73,7 +73,7 @@ Deploy your project to Azure by following these steps: | From Visual Studio Code | From TeamsFx CLI | | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the command palette and select: `Teams: Provision`.
  • Open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsapp auth login azure`.
  • Run command `teamsapp auth set --subscription `.
  • Run command `teamsfx provision`.
  • Run command `teamsfx deploy`.
| +|
  • Open Teams Toolkit, and sign into Azure by clicking the `Sign in to Azure` under the `ACCOUNTS` section from sidebar.
  • After you signed in, select a subscription under your account.
  • Open the command palette and select: `Teams: Provision`.
  • Open the command palette and select: `Teams: Deploy`.
|
  • Run command `teamsfx account login azure`.
  • Run command `teamsfx account set --subscription `.
  • Run command `teamsfx provision`.
  • Run command `teamsfx deploy`.
| > Note: Provisioning and deployment may incur charges to your Azure Subscription.