From ca856be9e75143a4a5013f3c892dfc9b6337a2c9 Mon Sep 17 00:00:00 2001 From: rupareddy5 Date: Fri, 2 Dec 2022 16:17:38 +0530 Subject: [PATCH] create SWA in user-provided Resource Group --- docs/www/docs/cli/swa-deploy.md | 2 +- docs/www/docs/cli/swa-login.md | 2 +- src/cli/commands/login.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/www/docs/cli/swa-deploy.md b/docs/www/docs/cli/swa-deploy.md index a850dfe6..ee863d14 100644 --- a/docs/www/docs/cli/swa-deploy.md +++ b/docs/www/docs/cli/swa-deploy.md @@ -163,7 +163,7 @@ Here are the options you can use with `swa deploy`: - `-pt, --print-token`: print the deployment token (default: `false`) - `--env [environment]`: the type of deployment environment where to deploy the project (default: "`preview`") - `-S, --subscription-id `: Azure subscription ID used by this project (default: `process.env.AZURE_SUBSCRIPTION_ID`) -- `-R, --resource-group `: Azure resource group used by this project +- `-R, --resource-group-name `: Azure resource group used by this project - `-T, --tenant-id `: Azure tenant ID (default: `process.env.AZURE_TENANT_ID`) - `-C, --client-id `: Azure client ID - `-CS, --client-secret `: Azure client secret diff --git a/docs/www/docs/cli/swa-login.md b/docs/www/docs/cli/swa-login.md index 675233bb..7717da45 100644 --- a/docs/www/docs/cli/swa-login.md +++ b/docs/www/docs/cli/swa-login.md @@ -20,7 +20,7 @@ This command is used to authenticate with Azure and get a deployment token that Here are the options you can use with `swa login`: - `-S, --subscription-id `: Azure subscription ID used by this project (default: `process.env.AZURE_SUBSCRIPTION_ID`) -- `-R, --resource-group `: Azure resource group used by this project +- `-R, --resource-group-name `: Azure resource group used by this project - `-T, --tenant-id `: Azure tenant ID (default: `process.env.AZURE_TENANT_ID`) - `-C, --client-id `: Azure client ID - `-CS, --client-secret `: Azure client secret diff --git a/src/cli/commands/login.ts b/src/cli/commands/login.ts index 87985a4f..7214a743 100644 --- a/src/cli/commands/login.ts +++ b/src/cli/commands/login.ts @@ -15,7 +15,7 @@ const { readFile, writeFile } = fsPromises; export function addSharedLoginOptionsToCommand(command: Command) { command .option("-S, --subscription-id ", "Azure subscription ID used by this project", DEFAULT_CONFIG.subscriptionId) - .option("-R, --resource-group ", "Azure resource group used by this project", DEFAULT_CONFIG.resourceGroupName) + .option("-R, --resource-group-name ", "Azure resource group used by this project", DEFAULT_CONFIG.resourceGroupName) .option("-T, --tenant-id ", "Azure tenant ID", DEFAULT_CONFIG.tenantId) .option("-C, --client-id ", "Azure client ID", DEFAULT_CONFIG.clientId) .option("-CS, --client-secret ", "Azure client secret", DEFAULT_CONFIG.clientSecret)