Skip to content

Commit 9584cf4

Browse files
committed
Remove example
1 parent b9e62ea commit 9584cf4

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

docs/reference/schemas/config/functions/coalesce.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -97,46 +97,6 @@ messages: []
9797
hadErrors: false
9898
```
9999
100-
### Example 3 - Configuration fallbacks
101-
102-
The following example shows a practical use case for providing configuration defaults.
103-
104-
```yaml
105-
# coalesce.example.3.dsc.config.yaml
106-
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
107-
parameters:
108-
customValue:
109-
type: string
110-
defaultValue: 'customValue'
111-
timeout:
112-
type: int
113-
defaultValue: 0
114-
resources:
115-
- name: Configuration with fallbacks
116-
type: Microsoft.DSC.Debug/Echo
117-
properties:
118-
output:
119-
configValue: "[coalesce(parameters('customValue'), 'default-config')]"
120-
timeout: "[coalesce(parameters('timeout'), 30)]"
121-
```
122-
123-
```bash
124-
dsc config get --file coalesce.example.3.dsc.config.yaml
125-
```
126-
127-
```yaml
128-
results:
129-
- name: Configuration with fallbacks
130-
type: Microsoft.DSC.Debug/Echo
131-
result:
132-
actualState:
133-
output:
134-
configValue: customValue
135-
timeout: 0
136-
messages: []
137-
hadErrors: false
138-
```
139-
140100
## Parameters
141101
142102
### value1, value2

0 commit comments

Comments
 (0)