Skip to content

Commit 8c4f6f3

Browse files
danguilliamsDan Guilliamsramsessanchez
authored
Migrations module Autorest configuration updates for Cross Tenant Migration Jobs (#3447)
* Updating mapping and command names for cross tenant migration jobs * Fixing comments for Migrations module autorest config --------- Co-authored-by: Dan Guilliams <daguilli@microsoft.com> Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com>
1 parent 337306d commit 8c4f6f3

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

config/ModulesMapping.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Identity.Partner": "^tenantRelationships.delegatedAdminRelationship$|^tenantRelationships.delegatedAdminCustomer$",
2727
"Mail": "^users.inferenceClassification$|^users.mailFolder$|^users.message$",
2828
"ManagedTenants": "^tenantRelationships.managedTenant$",
29-
"Migrations": "^solutions.migrations",
29+
"Migrations": "^solutions.migrationsRoot",
3030
"NetworkAccess": "^networkAccess\\.",
3131
"Notes": "^users.onenote$|^groups.onenote$|^sites.onenote$",
3232
"People": "^users.person$|^users.profile$|^users.officeGraphInsights$|^users.userAnalytics$",

src/Migrations/Migrations.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,25 @@ require:
1717
1818
``` yaml
1919
# Directives go here!
20+
21+
# Rename commands with 'SolutionMigrationCrossTenantMigrationJob<x>' to 'CrossTenantMigrationJob<x>'
22+
directive:
23+
- where:
24+
subject: (^SolutionMigrationCrossTenantMigrationJob)(.*)
25+
set:
26+
subject: CrossTenantMigrationJob$2
27+
# Remove all the 'DisplayName','SolutionMigration', and 'Count' commands, they are redundant/unsupported
28+
- where:
29+
subject: (DisplayName$|SolutionMigration$|Count$)
30+
remove: true
31+
# Remove extra 'Remove' commands, only jobs can be removed
32+
- where:
33+
verb: Remove
34+
subject: CrossTenantMigrationJob.+$
35+
remove: true
36+
# Remove New/Update-CrossTenantMigrationJobUser, they are not supported operations
37+
- where:
38+
verb: (New|Update)
39+
subject: CrossTenantMigrationJobUser$
40+
remove: true
2041
```

0 commit comments

Comments
 (0)