Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 42 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@azure/identity": "^4.0.1",
"@azure/storage-blob": "12.16.0",
"@azure/storage-blob": "^12.16.0",
"@playwright/test": "1.40.1",
"@types/chai": "^4.3.6",
"@types/google-maps": "^3.2.3",
Expand Down
28 changes: 25 additions & 3 deletions scripts.v3/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
* --serviceName < your service name >
*/

/*
* 12.18.2025 - Added the following arguments to align with migrate.js
* --TenantId "< optional (needed if tenant ID is different > \r
* --ServicePrincipal "< optional service principal or user name. > \r
* --ServicePrincipalSecret "< optional secret or password for service principal or az login for the destination. >\n`)
*/

const path = require("path");
const { ImporterExporter } = require("./utils");

Expand All @@ -38,6 +45,21 @@ const yargs = require('yargs')
description: 'API Management service name.',
demandOption: true
})
.option('tenantId', {
type: 'string',
description: 'Azure tenant ID (optional, required if different from default).',
demandOption: false
})
.option('servicePrincipal', {
type: 'string',
description: 'service principal or user name.',
demandOption: false
})
.option('servicePrincipalSecret', {
type: 'string',
description: 'service principal secret.',
demandOption: false
})
.option('folder', {
type: 'string',
default: '../dist/snapshot',
Expand Down Expand Up @@ -79,9 +101,9 @@ async function capture() {
yargs.subscriptionId,
yargs.resourceGroupName,
yargs.serviceName,
null,
null,
null,
yargs.tenantId,
yargs.servicePrincipal,
yargs.servicePrincipalSecret,
absoluteFolder
);

Expand Down
Loading
Loading