You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/data-types.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,15 +102,15 @@ When you specify integer values, don't use quotation marks.
102
102
param exampleInt int = 1
103
103
```
104
104
105
-
Bicep integers are 64-bit integers. When passed as inline parameters, the range of values might be limited by the SDK or command-line tool you use for deployment. For example, when you use PowerShell to deploy a Bicep, integer types might range from -2147483648 to 2147483647. To avoid this limitation, specify large integer values in a [parameter file](parameter-files.md). Resource types apply their own limits for integer properties.
105
+
Bicep integers are 64-bit integers. When they're passed as inline parameters, the SDK or command-line tool you use for deployment can limit the range of values. For example, when you use PowerShell to deploy Bicep, integer types can range from -2147483648 to 2147483647. To avoid this limitation, specify large integer values in a [parameter file](parameter-files.md). Resource types apply their own limits for integer properties.
106
106
107
-
Bicep supports an integer literal type that refers to a specific value that's an exact integer. In the following example, _1_ is an integer literal type, and _foo_ can only be assigned the value _1_ and no other value.
107
+
Bicep supports an integer literal type that refers to a specific value that's an exact integer. In the following example, `1` is an integer literal type, and `foo` can only be assigned the value `1` and no other value.
108
108
109
109
```bicep
110
110
output foo 1 = 1
111
111
```
112
112
113
-
You can declare an integer literal type as either inline, as shown in the preceding example, or in a [`type` statement](./user-defined-data-types.md).
113
+
You can declare an integer literal type either inline, as shown in the preceding example, or in a [`type` statement](./user-defined-data-types.md).
In Bicep, strings are marked with single quotation marks, and you must declare them on a single line. All Unicode characters with code points between _0_ and _10FFFF_ are allowed.
222
+
In Bicep, strings are marked with single quotation marks, and you must declare them on a single line. All Unicode characters with code points between `0` and `10FFFF` are allowed.
223
223
224
224
```bicep
225
225
param exampleString string = 'test value'
@@ -234,21 +234,21 @@ The following table lists the set of reserved characters that you must escape by
234
234
|`\n`| Line feed (LF) ||
235
235
|`\r`| Carriage return (CR) ||
236
236
|`\t`| Tab character ||
237
-
|`\u{x}`| Unicode code point `x`| The *x* represents a hexadecimal code point value between _0_ and _10FFFF_ (both inclusive). Leading zeros are allowed. Code points above _FFFF_ are emitted as a surrogate pair. |
237
+
|`\u{x}`| Unicode code point `x`| The `x` represents a hexadecimal code point value between `0` and `10FFFF` (both inclusive). Leading zeros are allowed. Code points above `FFFF` are emitted as a surrogate pair. |
238
238
|`\$`|`$`| Only escape when followed by `{`. |
239
239
240
240
```bicep
241
241
// evaluates to "what's up?"
242
242
var myVar = 'what\'s up?'
243
243
```
244
244
245
-
Bicep supports string literal type that refers to a specific string value. In the following example, _red_ is a string literal type, _redColor_ can only be assigned the value _red_ and no other value.
245
+
Bicep supports a string literal type that refers to a specific string value. In the following example, `red` is a string literal type. You can only assign the value `red` to `redColor`.
246
246
247
247
```bicep
248
248
output redColor 'red' = 'red'
249
249
```
250
250
251
-
You can declare a string literal type either as inline, as shown in the preceding example, or in a [`type` statement](./user-defined-data-types.md).
251
+
You can declare a string literal type either inline, as shown in the preceding example, or in a [`type` statement](./user-defined-data-types.md).
252
252
253
253
```bicep
254
254
type redColor = 'red'
@@ -276,10 +276,10 @@ var storageName = 'storage${uniqueString(resourceGroup().id)}'
276
276
277
277
### Multiline strings
278
278
279
-
In Bicep, multiline strings are defined between three single quotation mark characters (`'''`) followed optionally by a newline (the opening sequence) and three single quotation mark characters (`'''`- the closing sequence). Characters that are entered between the opening and closing sequence are read verbatim. Escaping isn't necessary or possible.
279
+
In Bicep, multiline strings are defined between three single quotation marks (`'''`) followed optionally by a newline (the opening sequence) and three single quotation marks (`'''`is the closing sequence). Characters that are entered between the opening and closing sequence are read verbatim. Escaping isn't necessary or possible.
280
280
281
281
> [!NOTE]
282
-
> Because the Bicep parser reads all characters as is, depending on the line endings of your Bicep file, newlines can be interpreted as either `\r\n` or `\n`.
282
+
> The Bicep parser reads all characters as is. Depending on the line endings of your Bicep file, newlines are interpreted as either `\r\n` or `\n`.
283
283
>
284
284
> Interpolation isn't currently supported in multiline strings. Because of this limitation, you might need to use the [`concat`](./bicep-functions-string.md#concat) function instead of using [interpolation](#strings).
285
285
>
@@ -319,7 +319,7 @@ is ${blocked}'''
319
319
320
320
## Union types
321
321
322
-
In Bicep, a union type allows the creation of a combined type that consists of a set of subtypes. An assignment is valid if any of the individual subtype assignments are permitted. The `|` character separates individual subtypes that use an _or_ condition. For example, the syntax `a | b` means that a valid assignment could be either `a` or `b`. Union types are translated into the [allowed-value](../templates/definitions.md#allowed-values) constraint in Bicep, so only literals are permitted as members. Unions can include any number of literal-typed expressions.
322
+
In Bicep, a union type allows the creation of a combined type that consists of a set of subtypes. An assignment is valid if any of the individual subtype assignments are permitted. The `|` character separates individual subtypes that use an `or` condition. For example, the syntax `a | b` means that a valid assignment could be either `a` or `b`. Union types are translated into the [allowed-value](../templates/definitions.md#allowed-values) constraint in Bicep, so only literals are permitted as members. Unions can include any number of literal-typed expressions.
323
323
324
324
```bicep
325
325
type color = 'Red' | 'Blue' | 'White'
@@ -372,14 +372,14 @@ The parameter value is validated based on the discriminated property value. For
372
372
373
373
The union type has some limitations:
374
374
375
-
* Union types must be reducible to a single Azure Resource Manager (ARM) type. The following definition is invalid:
375
+
-Union types must be reducible to a single Azure Resource Manager type. The following definition is invalid:
376
376
377
-
```bicep
378
-
type foo = 'a' | 1
379
-
```
377
+
```bicep
378
+
type foo = 'a' | 1
379
+
```
380
380
381
-
* Only literals are permitted as members.
382
-
* All literals must be of the same primitive data type (for example, all strings or all integers).
381
+
- Only literals are permitted as members.
382
+
- All literals must be of the same primitive data type (for example, all strings or all integers).
383
383
384
384
You can use the union type syntax in [user-defined data types](./user-defined-data-types.md).
0 commit comments