Skip to content

Commit 3b590f1

Browse files
committed
update
1 parent cf225f2 commit 3b590f1

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

articles/azure-resource-manager/bicep/bicep-cli.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -287,60 +287,60 @@ Content-Length: 72\r\n\r\n{"jsonrpc": "2.0", "id": 0, "method": "bicep/version",
287287

288288
The following methods are available through the JSON-RPC interface:
289289

290-
- **bicep/version**
290+
* **bicep/format**
291291

292-
Returns the version of the Bicep CLI.
292+
Formats a Bicep file.
293293

294294
* The request:
295295

296296
```json
297297
{
298298
"jsonrpc": "2.0",
299-
"id": 0,
300-
"method": "bicep/version",
301-
"params": {}
299+
"id": 1,
300+
"method": "bicep/format",
301+
"params": {
302+
"path": "/path/to/file.bicep"
303+
}
302304
}
303305
```
304-
306+
305307
* The response:
306308

307309
```json
308310
{
309311
"jsonrpc": "2.0",
310-
"id": 0,
312+
"id": 1,
311313
"result": {
312-
"version": "0.24.211"
314+
"success": true,
315+
"diagnostics": [],
316+
"contents": "param foo string\n\nresource storage 'Microsoft.Storage/storageAccounts@2025-01-01' = {\n name: 'mystorageaccount'\n location: 'East US'\n}\n"
313317
}
314318
}
315319
```
316-
317-
- **bicep/format**
318320

319-
Formats a Bicep file.
321+
* **bicep/version**
322+
323+
Returns the version of the Bicep CLI.
320324

321325
* The request:
322326

323327
```json
324328
{
325329
"jsonrpc": "2.0",
326-
"id": 1,
327-
"method": "bicep/format",
328-
"params": {
329-
"path": "/path/to/file.bicep"
330-
}
330+
"id": 0,
331+
"method": "bicep/version",
332+
"params": {}
331333
}
332334
```
333-
335+
334336
* The response:
335337

336338
```json
337339
{
338340
"jsonrpc": "2.0",
339-
"id": 1,
341+
"id": 0,
340342
"result": {
341-
"success": true,
342-
"diagnostics": [],
343-
"contents": "param foo string\n\nresource storage 'Microsoft.Storage/storageAccounts@2025-01-01' = {\n name: 'mystorageaccount'\n location: 'East US'\n}\n"
343+
"version": "0.24.211"
344344
}
345345
}
346346
```
@@ -366,7 +366,7 @@ N/A
366366

367367
---
368368

369-
To connect to a named pipe on OSX/Linux :
369+
To connect to a named pipe on OSX/Linux:
370370

371371
# [Bicep CLI](#tab/bicep-cli)
372372

@@ -380,7 +380,7 @@ N/A
380380

381381
---
382382

383-
To connect to a named pipe on Windows :
383+
To connect to a named pipe on Windows:
384384

385385
# [Bicep CLI](#tab/bicep-cli)
386386

0 commit comments

Comments
 (0)