Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
74d0627
Add troubleshooting document
Gijsreyn Jun 29, 2025
41ebc79
Update numbers
Gijsreyn Jun 29, 2025
7e273fd
Syntax fix
Gijsreyn Jun 30, 2025
fb86cae
Update format
Gijsreyn Jul 14, 2025
38956ae
Add troubleshooting document
Gijsreyn Jun 29, 2025
057c6f3
Update numbers
Gijsreyn Jun 29, 2025
8dcc229
Syntax fix
Gijsreyn Jun 30, 2025
7e47ba5
Update format
Gijsreyn Jul 14, 2025
0088c08
Remove template
Gijsreyn Jul 14, 2025
3bb3fcd
Add troubleshooting document
Gijsreyn Jun 29, 2025
e034237
Update numbers
Gijsreyn Jun 29, 2025
8e6327f
Syntax fix
Gijsreyn Jun 30, 2025
30d48ca
Update format
Gijsreyn Jul 14, 2025
4750e39
Add troubleshooting document
Gijsreyn Jun 29, 2025
ed6f5f0
Update numbers
Gijsreyn Jun 29, 2025
a4e366d
Syntax fix
Gijsreyn Jun 30, 2025
474c77f
Update format
Gijsreyn Jul 14, 2025
1577966
Remove template
Gijsreyn Jul 14, 2025
eeee80f
Merge branch 'troubleshoot-issues' of https://github.com/Gijsreyn/ope…
Gijsreyn Jul 29, 2025
6585613
Add common issue from 965
Gijsreyn Jul 29, 2025
e5334d1
Add troubleshooting document
Gijsreyn Jun 29, 2025
49c1def
Update numbers
Gijsreyn Jun 29, 2025
33b97f2
Syntax fix
Gijsreyn Jun 30, 2025
1ac6945
Update format
Gijsreyn Jul 14, 2025
678617c
Add troubleshooting document
Gijsreyn Jun 29, 2025
23debe4
Update numbers
Gijsreyn Jun 29, 2025
c6cfa04
Syntax fix
Gijsreyn Jun 30, 2025
067d177
Update format
Gijsreyn Jul 14, 2025
91fdb3a
Remove template
Gijsreyn Jul 14, 2025
383d176
Add troubleshooting document
Gijsreyn Jun 29, 2025
b81f3f0
Update numbers
Gijsreyn Jun 29, 2025
aa5130e
Syntax fix
Gijsreyn Jun 30, 2025
42ed7b6
Update format
Gijsreyn Jul 14, 2025
a3d4b9a
Add troubleshooting document
Gijsreyn Jun 29, 2025
b53fdb1
Update numbers
Gijsreyn Jun 29, 2025
c04c62f
Syntax fix
Gijsreyn Jun 30, 2025
0221423
Update format
Gijsreyn Jul 14, 2025
0e43269
Remove template
Gijsreyn Jul 14, 2025
6378a47
Add common issue from 965
Gijsreyn Jul 29, 2025
1a5ac30
Merge branch 'troubleshoot-issues' of https://github.com/Gijsreyn/ope…
Gijsreyn Jul 29, 2025
efbb28f
Resolve remarks Mikey
Gijsreyn Jul 29, 2025
5e910ca
Remove extra line
Gijsreyn Jul 29, 2025
a017081
Small typo
Gijsreyn Jul 29, 2025
a77a268
VSCode to VS Code
Gijsreyn Jul 30, 2025
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
160 changes: 160 additions & 0 deletions docs/troubleshooting/known-issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
---
title: 'Known issues: Microsoft Desired State Configuration'
description: "Troubleshooting and known issues for Microsoft Desired State Configuration (DSC)."
author: michaeltlombardi
ms.author: mlombardi
ms.service: dsc
ms.topic: troubleshooting-known-issue
ms.date: 07/14/2025
---

# Known issues: Microsoft Desired State Configuration

This article lists known issues and troubleshooting guidance for Microsoft Desired State Configuration (DSC).

The following table lists known issues with Microsoft DSC v3:

| Issue | Description | Status | Reported on |
|:--------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:---------:|:------------:|
| [Unable to parse content from `<manifestUrl>`](#t01) | When authoring a resource manifest in VS Code, you may encounter parsing errors. | Confirmed | [#917][#917] |
| [Resource not found when using Windows PowerShell adapter](#t02) | A resource can't be found when using the `Microsoft.Windows/WindowsPowerShell` adapter. | Confirmed | [#765][#765] |
| [Validation errors when executing dsc.exe in Windows PowerShell sessions](#t03) | DSC raises input validation errors when invoked in Windows PowerShell | Confirmed | [#965][#965] |

For the most up-to-date information on known issues, see the [DSC GitHub repository issues][01].

## Unable to parse content from `<manifestUrl>`

<a id="t01"></a>

When authoring a resource manifest in Visual Studio Code (VS Code), you may encounter a parsing error:

> Unable to parse content from `<manifestUrl>`

This error occurs because canonical schema bundling isn't fully supported in VS Code. Canonical
schema bundling was introduced with the 2020-12 JSON schema specification.

### Prerequisites

- Visual Studio Code
- Microsoft DSC v3.0 or later

### Troubleshooting steps

To resolve this issue, use `manifest.vscode.json` in the schema URI for your resource manifest.
This enables enhanced authoring support in VS Code.

For more information, see [Enhanced authoring][02].

### Possible causes

- The resource manifest references a schema that isn't compatible with the VS Code JSON schema parser.
- VS Code doesn't currently support parsing canonically bundled schemas.

## Resource not found when using Windows PowerShell adapter

<a id="t02"></a>

When running DSC configurations with the `Microsoft.Windows/WindowsPowerShell` adapter, you may
encounter errors indicating that a required resource cannot be found.

### Prerequisites

- Windows PowerShell DSC (PSDSC) 1.1 (included with Windows)
- Using the `Microsoft.Windows/WindowsPowerShell` adapter in a configuration document or to
directly invoke a resource

### Issue description

The [Microsoft.Windows/WindowsPowerShell][03] adapter relies on PSDSC 1.1, which uses the Local
Configuration Manager (LCM) running as a Windows service. By design, the LCM service only accesses
resources installed in the **AllUsers** scope under the Program Files directory. If a PSDSC module
is installed for the current user only, the service cannot detect or use it, resulting in a
"resource not found" error.

This limitation is specific to the `Microsoft.Windows/WindowsPowerShell` adapter. It doesn't affect
the `Microsoft.DSC/PowerShell` adapter, which doesn't rely on PSDSC 1.1.

### Troubleshooting steps

- Ensure all PSDSC modules required by your configuration are installed in the **AllUsers** scope.
- Reinstall the PowerShell module for any missing PSDSC resources using an elevated prompt to
guarantee system-wide availability.

### Possible causes

- A PSDSC resource module is installed only for the current user, not for all users.

### Recommendation

Install all PSDSC resource modules in the **AllUsers** scope to ensure they're available for the
`Microsoft.Windows/WindowsPowerShell` adapter.

## Validation errors when executing dsc.exe in Windows PowerShell sessions

<a id="t03"></a>

When executing `dsc.exe` commands in Windows PowerShell sessions, you may encounter
validation errors when using manually crafted JSON input or the `ConvertTo-Json` cmdlet
with the `-Compress` parameter. This issue is related to how Windows PowerShell handles
string encoding and JSON formatting.

### Prerequisites

- Windows PowerShell session
- Direct execution of `dsc.exe` commands
- Use of JSON input with the `--input` parameter

### Problem details

When running `dsc.exe` commands in Windows PowerShell, validation errors may occur
when passing JSON input to resources. This typically happens when using manually
crafted JSON strings or when using PowerShell's `ConvertTo-Json` cmdlet with the `-Compress` parameter.

Commands that work correctly:

- `dsc resource get -r PSDesiredStateConfiguration/Service --input '{ "Name": "bits" }'`
- `dsc resource get -r PSDesiredStateConfiguration/Service --input (@{Name = 'bits'} | ConvertTo-Json)`

Common error symptoms include:

- JSON parsing failures when using compressed JSON output.
- Property validation errors with valid JSON input.
- Cannot validate argument on parameter `<parameterName>`. The argument is null
or empty, or an element of the argument collection contains a null value.

### Resolution steps

Recommend piping JSON over stdin with the --file - syntax:

```powershell
@{ Name = 'bits' } |
ConvertTo-Json -Compress |
dsc resource get -r PSDesiredStateConfiguration/Service --file -
```

### Root causes

- Windows PowerShell's handling of compressed JSON may introduce formatting issues.
- String encoding differences between Windows PowerShell and `dsc.exe`.
- JSON parsing inconsistencies when using the `-Compress` parameter with `ConvertTo-Json`.

### Recommendation

When executing `dsc.exe` commands in Windows PowerShell:

- Recommend piping JSON over stdin with the --file - syntax.
- Use `ConvertTo-Json` without the `-Compress` parameter.
- Consider using PowerShell 7+ for improved JSON handling compatibility.

## See also

- [Microsoft Desired State Configuration overview][04]

<!-- Link references -->
[01]: https://github.com/PowerShell/DSC/issues
[02]: ../concepts/enhanced-authoring.md
[03]: ../reference/resources/Microsoft/Windows/WindowsPowerShell/index.md
[04]: ../overview.md
[#917]: https://github.com/PowerShell/DSC/issues/917
[#765]: https://github.com/PowerShell/DSC/issues/765
[#965]: https://github.com/PowerShell/DSC/issues/965
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.