Skip to content

Commit c85ee14

Browse files
committed
Refresh the top Bicep articles
1 parent bca88a6 commit c85ee14

File tree

9 files changed

+27
-26
lines changed

9 files changed

+27
-26
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep file structure and syntax
33
description: Understand how to use declarative syntax to understand the structure and properties of Bicep files.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 03/25/2025
6+
ms.date: 07/25/2025
77
---
88

99
# Bicep file structure and syntax
@@ -68,7 +68,7 @@ param location string = resourceGroup().location
6868
6969
var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
7070
71-
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
71+
resource stg 'Microsoft.Storage/storageAccounts@2025-01-01' = {
7272
name: uniqueStorageName
7373
location: location
7474
sku: {
@@ -168,7 +168,7 @@ var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
168168
Apply this variable wherever you need the complex expression.
169169

170170
```bicep
171-
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
171+
resource stg 'Microsoft.Storage/storageAccounts@2025-01-01' = {
172172
name: uniqueStorageName
173173
```
174174

@@ -195,7 +195,7 @@ param storageAccountConfig storageAccountConfigType = {
195195
sku: 'Standard_LRS'
196196
}
197197
198-
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
198+
resource storageAccount 'Microsoft.Storage/storageAccounts@2025-01-01' = {
199199
name: storageAccountConfig.name
200200
location: location
201201
sku: {
@@ -228,7 +228,7 @@ Use the `resource` keyword to define a resource to deploy. Your resource declara
228228
The resource declaration includes the resource type and API version. Within the body of the resource declaration, include properties that are specific to the resource type.
229229

230230
```bicep
231-
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
231+
resource stg 'Microsoft.Storage/storageAccounts@2025-01-01' = {
232232
name: uniqueStorageName
233233
location: location
234234
sku: {
@@ -250,7 +250,7 @@ Some resources have a parent/child relationship. You can define a child resource
250250
The following example shows how to define a child resource within a parent resource. It contains a storage account with a child resource (file service) that's defined within the storage account. The file service also has a child resource (share) that's defined within it.
251251

252252
```bicep
253-
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
253+
resource storage 'Microsoft.Storage/storageAccounts@2025-01-01' = {
254254
name: 'examplestorage'
255255
location: resourceGroup().location
256256
kind: 'StorageV2'
@@ -271,7 +271,7 @@ resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
271271
The next example shows how to define a child resource outside of the parent resource. You use the parent property to identify a parent/child relationship. The same three resources are defined.
272272

273273
```bicep
274-
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
274+
resource storage 'Microsoft.Storage/storageAccounts@2025-01-01' = {
275275
name: 'examplestorage'
276276
location: resourceGroup().location
277277
kind: 'StorageV2'
@@ -373,15 +373,15 @@ Spaces and tabs are ignored when you author Bicep files.
373373
Bicep is newline sensitive. For example:
374374

375375
```bicep
376-
resource sa 'Microsoft.Storage/storageAccounts@2023-04-01' = if (newOrExisting == 'new') {
376+
resource sa 'Microsoft.Storage/storageAccounts@2025-01-01' = if (newOrExisting == 'new') {
377377
...
378378
}
379379
```
380380

381381
Can't be written as:
382382

383383
```bicep
384-
resource sa 'Microsoft.Storage/storageAccounts@2023-04-01' =
384+
resource sa 'Microsoft.Storage/storageAccounts@2025-01-01' =
385385
if (newOrExisting == 'new') {
386386
...
387387
}
@@ -397,7 +397,7 @@ The following example shows a single-line comment.
397397

398398
```bicep
399399
// This is your primary NIC.
400-
resource nic1 'Microsoft.Network/networkInterfaces@2023-11-01' = {
400+
resource nic1 'Microsoft.Network/networkInterfaces@2024-07-01' = {
401401
...
402402
}
403403
```

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Install Bicep tools
33
description: Learn how to install tools to set up Bicep development and deployment environments.
44
ms.topic: how-to
5-
ms.date: 03/25/2025
5+
ms.date: 07/25/2025
66
ms.custom: devx-track-azurepowershell, devx-track-azurecli, devx-track-bicep
77
---
88

@@ -49,19 +49,20 @@ To see the settings:
4949

5050
1. From the `View` menu, select `Extensions`.
5151
1. Select `Bicep` from the list of extensions.
52-
1. Select the `FEATURE CONTRIBUTIONS` tab:
52+
1. Select the `FEATURE` tab.
53+
1. Select **Settings**.
5354

5455
:::image type="content" source="./media/install/bicep-extension-feature-contributions-settings.png" alt-text="Screenshot of Bicep extension settings.":::
5556

5657
The Bicep extension has these settings and default values:
5758

5859
| ID | Default value | Description |
5960
|-----|-------------|---------|
60-
| bicep.decompileOnPaste | true | Automatically convert pasted JSON values, Azure Resource Manager JSON templates (ARM templates,) or resources from an ARM template into Bicep (use Undo to revert). For more information, see the [Paste JSON as Bicep command](./visual-studio-code.md#paste-json-as-bicep-command).|
61+
| bicep.completions.getAllAccessibleAzureContainerRegistries | false | When completing 'br:' module references, query Azure for all container registries accessible to the user (may be slow). If this option is off, only registries configured under moduleAliases in bicepconfig.json will be listed. |
62+
| bicep.decompileOnPaste | true | Automatically convert pasted JSON values, JSON ARM templates or resources from a JSON ARM template into Bicep (use Undo to revert).|
6163
| bicep.enableOutputTimestamps | true | Prepend each line displayed in the Bicep Operations output channel with a timestamp. |
62-
| bicep.suppressedWarnings | | Warnings that are being suppressed because a 'Don't show again' button was pressed. Remove items to reset.|
6364
| bicep.enableSurveys | true | Enable occasional surveys to collect feedback that helps us improve the Bicep extension. |
64-
| bicep.completions.getAllAccessibleAzureContainerRegistries | false | When completing 'br:' module references, query Azure for all container registries accessible to the user (might be slow). If this option is off, only registries configured under [moduleAliases](./bicep-config-modules.md#aliases-for-modules) in [_bicepconfig.json_ files](./bicep-config.md) will be listed. |
65+
| bicep.suppressedWarnings | | Warnings that are being suppressed because a 'Don't show again' button was pressed. Remove items to reset.|
6566
| bicep.trace.server | off | Configure tracing of messages sent to the Bicep language server. |
6667

6768
To configure the settings:
7.06 KB
Loading
2.61 KB
Loading
-7.41 KB
Loading
12.7 KB
Loading
-7.47 KB
Loading

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
55
ms.custom:
66
- devx-track-bicep
77
- build-2025
8-
ms.date: 05/09/2025
8+
ms.date: 07/25/2025
99
---
1010

1111
# Bicep modules
@@ -353,7 +353,7 @@ param location string
353353
354354
var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
355355
356-
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
356+
resource stg 'Microsoft.Storage/storageAccounts@2025-01-01' = {
357357
name: uniqueStorageName
358358
location: location
359359
sku: {
@@ -377,7 +377,7 @@ targetScope = 'subscription'
377377
@maxLength(11)
378378
param namePrefix string
379379
380-
resource demoRG 'Microsoft.Resources/resourceGroups@2024-03-01' existing = {
380+
resource demoRG 'Microsoft.Resources/resourceGroups@2025-04-01' existing = {
381381
name: 'demogroup1'
382382
}
383383
@@ -411,7 +411,7 @@ param location string = deployment().location
411411
412412
var resourceGroupName = '${namePrefix}rg'
413413
414-
resource newRG 'Microsoft.Resources/resourceGroups@2024-03-01' = {
414+
resource newRG 'Microsoft.Resources/resourceGroups@2025-04-01' = {
415415
name: resourceGroupName
416416
location: location
417417
}
@@ -433,11 +433,11 @@ The next example deploys storage accounts to two different resource groups. Both
433433
```bicep
434434
targetScope = 'subscription'
435435
436-
resource firstRG 'Microsoft.Resources/resourceGroups@2024-03-01' existing = {
436+
resource firstRG 'Microsoft.Resources/resourceGroups@2025-04-01' existing = {
437437
name: 'demogroup1'
438438
}
439439
440-
resource secondRG 'Microsoft.Resources/resourceGroups@2024-03-01' existing = {
440+
resource secondRG 'Microsoft.Resources/resourceGroups@2025-04-01' existing = {
441441
name: 'demogroup2'
442442
}
443443
@@ -507,7 +507,7 @@ param location string
507507
508508
var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
509509
510-
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
510+
resource stg 'Microsoft.Storage/storageAccounts@2025-01-01' = {
511511
name: uniqueStorageName
512512
location: location
513513
sku: {
@@ -531,7 +531,7 @@ targetScope = 'subscription'
531531
@maxLength(11)
532532
param namePrefix string
533533
534-
resource demoRG 'Microsoft.Resources/resourceGroups@2024-03-01' existing = {
534+
resource demoRG 'Microsoft.Resources/resourceGroups@2025-04-01' existing = {
535535
name: 'demogroup1'
536536
}
537537

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.topic: conceptual
55
ms.custom:
66
- devx-track-bicep
77
- build-2025
8-
ms.date: 05/09/2025
8+
ms.date: 07/25/2025
99
---
1010

1111
# Parameters in Bicep
@@ -228,7 +228,7 @@ To reference the value for a parameter, use the parameter name. The following ex
228228
```bicep
229229
param vaultName string = 'keyVault${uniqueString(resourceGroup().id)}'
230230
231-
resource keyvault 'Microsoft.KeyVault/vaults@2019-09-01' = {
231+
resource keyvault 'Microsoft.KeyVault/vaults@2024-11-01' = {
232232
name: vaultName
233233
...
234234
}
@@ -264,7 +264,7 @@ param vNetSettings object = {
264264
]
265265
}
266266
267-
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
267+
resource vnet 'Microsoft.Network/virtualNetworks@2024-07-01' = {
268268
name: vNetSettings.name
269269
location: vNetSettings.location
270270
properties: {

0 commit comments

Comments
 (0)