MigrationTable failure
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start in Extensions/MSGraph.psm1 around line 2108 and trace how MigrationTable files are generated and consumed during export and import. Compare the Conditional Access path with Settings Catalog and Endpoint Security, then reproduce the MS Graph createInstance failure and missing JSON file error. Done means the affected policy exports produce the required migration data and import without these errors.
Written by the indexing model from the issue text.
Description
As I want to have an template of policys from a demo tenant I apply to loads of different tenants I use the import export feature a lot.
Then I export Conditional Access rules, it always create an MigrationTable. But then I export Settings Catalog or Endpoint Security policys it doesnt create an MigrationTable.
I have tried manually creating a MigrationTable which matches the one from the Conditional Access export.
Which does make it import some of the rules, but not all of them.
The rest fails with:
Failed to invoke MS Graph with URL https://graph.microsoft.com/beta/deviceManagement/templates//createInstance (Request ID: XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX). Status code: BadRequest
Get-Item : Could not find item C:\M365 - Defender Endpoint Protection\JSON\Endpoint Security Section\Conecto Ba
seline Security Windows - Defender ASR.json.
At C:\VSCode\IntuneManagement\Extensions\MSGraph.psm1:2108 char:23
+ foreach($file in (Get-Item -path "$path\*.json" @params))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\***\On...le content.json:String) [Get-Item], IOException
+ FullyQualifiedErrorId : ItemNotFound,Microsoft.PowerShell.Commands.GetItemCommand
- Dominant language
- PowerShell
- Stars
- 2.1k
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Micke-K/IntuneManagement
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Micke-K/IntuneManagement#428 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Micke-K/IntuneManagement#410 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 50/100
Micke-K/IntuneManagement#436 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Micke-K/IntuneManagement#435 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Micke-K/IntuneManagement#432 · 1 comment ·
All issues in Micke-K/IntuneManagement
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·