|
1 | 1 | ---
|
2 | 2 | title: Use MSBuild to convert Bicep to JSON
|
3 | 3 | description: Use MSBuild to convert a Bicep file to Azure Resource Manager template (ARM template) JSON.
|
4 |
| -ms.date: 07/14/2022 |
| 4 | +ms.date: 09/26/2022 |
5 | 5 | ms.topic: quickstart
|
6 | 6 | author: davidsmatlak
|
7 | 7 | ms.author: davidsmatlak
|
@@ -148,7 +148,7 @@ For [Microsoft.Build.NoTargets](/dotnet/core/project-sdk/overview#project-files)
|
148 | 148 |
|
149 | 149 | The following example converts Bicep to JSON inside a classic project file that's not SDK-based. Only use the classic example if the previous examples don't work for you. Replace `__LATEST_VERSION__` with the latest version of the Bicep NuGet packages.
|
150 | 150 |
|
151 |
| -In this example, the `ProjectGuid`, `RootNamespace` and `AssemblyName` properties contain placeholder values. When you create a project file, a unique GUID is created and the name values match your project's name. |
| 151 | +In this example, the `ProjectGuid`, `RootNamespace` and `AssemblyName` properties contain placeholder values. When you create a project file, a unique GUID is created, and the name values match your project's name. |
152 | 152 |
|
153 | 153 | ```xml
|
154 | 154 | <?xml version="1.0" encoding="utf-8"?>
|
@@ -316,7 +316,7 @@ param location string = resourceGroup().location
|
316 | 316 |
|
317 | 317 | var storageAccountName = 'storage${uniqueString(resourceGroup().id)}'
|
318 | 318 |
|
319 |
| -resource storageAccount 'Microsoft.Storage/storageAccounts@2021-09-01' = { |
| 319 | +resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = { |
320 | 320 | name: storageAccountName
|
321 | 321 | location: location
|
322 | 322 | sku: {
|
@@ -394,7 +394,7 @@ Run MSBuild to convert the Bicep file to JSON.
|
394 | 394 | "resources": [
|
395 | 395 | {
|
396 | 396 | "type": "Microsoft.Storage/storageAccounts",
|
397 |
| - "apiVersion": "2021-09-01", |
| 397 | + "apiVersion": "2022-05-01", |
398 | 398 | "name": "[variables('storageAccountName')]",
|
399 | 399 | "location": "[parameters('location')]",
|
400 | 400 | "sku": {
|
|
0 commit comments