Skip to content

Commit cc6adbd

Browse files
author
Dan Guilliams
committed
Updating mapping and command names for cross tenant migration jobs
1 parent e5474e6 commit cc6adbd

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Migrations
2+
3+
This directory contains common [AutoREST.PowerShell](https://github.com/Azure/autorest.powershell) configurations for Migrations v1.0 and/or beta modules.
4+
5+
## AutoRest Configuration
6+
7+
> see <https://aka.ms/autorest>
8+
9+
``` yaml
10+
require:
11+
- $(this-folder)/../readme.graph.md
12+
```
13+
14+
### Directives
15+
16+
> see https://github.com/Azure/autorest/blob/master/docs/powershell/directives.md
17+
18+
``` yaml
19+
# Directives go here!
20+
21+
# Rename commands with 'SolutionMigrationCrossTenantMigrationJob' CrossTenantMigrationJob<>
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
41+
```

0 commit comments

Comments
 (0)