Skip to content

Commit 1747ed1

Browse files
committed
update
1 parent 219a813 commit 1747ed1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/azure-resource-manager/bicep/data-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var index = 1
6666
output secondElement int = exampleArray[index] // 2
6767
```
6868

69-
Starting with [Bicep CLI version 0.34.x](https://github.com/Azure/bicep/releases/tag/v0.34.1), you can use the `array[^index]` syntax to access elements from the end of an array `^1` refers to the last element, `^2` to the second-to-last, and so on.
69+
Starting with [Bicep CLI version 0.34.x](https://github.com/Azure/bicep/releases/tag/v0.34.1), you can use the `array[^index]` syntax to access elements from the end of an array - `^1` refers to the last element, `^2` to the second-to-last, and so on.
7070

7171
```bicep
7272
var exampleArray = [1, 2, 3]

articles/azure-resource-manager/bicep/user-defined-data-types.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ resourceOutput<'type@version'>
430430

431431
`resourceOutput<>`: Represents the readable properties of a resource type, stripping away any properties marked as WriteOnly in the ARM template schema. It matches the type of value returned after the resource is provisioned.
432432

433-
You can apply `resourceInput<>` or `resourceOutput<>` to extract only a part of a resource schema. For example, to strongly type a variable or parameter based on just the `kind` or `properties` of a storage account:
433+
You can apply `resourceInput<>` or `resourceOutput<>` to extract only a part of a resource schema. For example, to type a variable or parameter based on just the `kind` or `properties` of a storage account:
434434

435435
```bicep
436436
type accountKind = resourceInput<'Microsoft.Storage/storageAccounts@2024-01-01'>.kind
@@ -442,18 +442,18 @@ The preceding example is equivalent to:
442442
type accountKind = 'BlobStorage' | 'BlockBlobStorage' | 'FileStorage' | 'Storage' | 'StorageV2'
443443
```
444444

445-
The following example shows how to use `resourceInput<>` to create a strongly typed parameter based on the `properties` of a storage account resource. This allows you to define a parameter that matches the writable properties of a storage account, such as `accessTier`, `minimumTlsVersion`, and others:
445+
The following example shows how to use `resourceInput<>` to create a typed parameter based on the `properties` of a storage account resource. This allows you to define a parameter that matches the writable properties of a storage account, such as `accessTier`, `minimumTlsVersion`, and others:
446446

447447
```bicep
448-
// Strongly typed variable using the .properties path of a storage account
448+
// Typed parameter using the .properties path of a storage account
449449
param storageAccountProps resourceInput<'Microsoft.Storage/storageAccounts@2023-01-01'>.properties = {
450450
accessTier: 'Hot'
451451
minimumTlsVersion: 'TLS1_2'
452452
allowBlobPublicAccess: false
453453
supportsHttpsTrafficOnly: true
454454
}
455455
456-
// Resource declaration using the strongly typed properties variable
456+
// Resource declaration using the typed parameter
457457
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
458458
name: 'mystorageacct123'
459459
location: resourceGroup().location
@@ -465,7 +465,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
465465
}
466466
```
467467

468-
The following example shows how to use `resourceOutput<>` to create a strongly typed output based on the `primaryEndPoints` of a storage account resource.
468+
The following example shows how to use `resourceOutput<>` to create a typed output based on the `primaryEndPoints` of a storage account resource.
469469

470470
```bicep
471471
output storageEndpoints resourceOutput<'Microsoft.Storage/storageAccounts@2024-01-01'>.properties.primaryEndpoints = ...

0 commit comments

Comments
 (0)