Skip to content

Commit ad5cb54

Browse files
committed
edit pass: six-bicep-articles
1 parent b60741f commit ad5cb54

File tree

2 files changed

+53
-53
lines changed

2 files changed

+53
-53
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ When you specify integer values, don't use quotation marks.
102102
param exampleInt int = 1
103103
```
104104

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.
106106

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.
108108

109109
```bicep
110110
output foo 1 = 1
111111
```
112112

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).
114114

115115
```bicep
116116
type oneType = 1
@@ -219,7 +219,7 @@ output bar bool = contains(objectToTest, 'four') && objectToTest.four == 4
219219

220220
## Strings
221221

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.
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.
223223

224224
```bicep
225225
param exampleString string = 'test value'
@@ -234,21 +234,21 @@ The following table lists the set of reserved characters that you must escape by
234234
| `\n` | Line feed (LF) ||
235235
| `\r` | Carriage return (CR) ||
236236
| `\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. |
238238
| `\$` | `$` | Only escape when followed by `{`. |
239239

240240
```bicep
241241
// evaluates to "what's up?"
242242
var myVar = 'what\'s up?'
243243
```
244244

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`.
246246

247247
```bicep
248248
output redColor 'red' = 'red'
249249
```
250250

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).
252252

253253
```bicep
254254
type redColor = 'red'
@@ -276,10 +276,10 @@ var storageName = 'storage${uniqueString(resourceGroup().id)}'
276276

277277
### Multiline strings
278278

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.
280280

281281
> [!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`.
283283
>
284284
> 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).
285285
>
@@ -319,7 +319,7 @@ is ${blocked}'''
319319

320320
## Union types
321321

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.
323323

324324
```bicep
325325
type color = 'Red' | 'Blue' | 'White'
@@ -372,14 +372,14 @@ The parameter value is validated based on the discriminated property value. For
372372

373373
The union type has some limitations:
374374

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:
376376

377-
```bicep
378-
type foo = 'a' | 1
379-
```
377+
```bicep
378+
type foo = 'a' | 1
379+
```
380380
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).
383383
384384
You can use the union type syntax in [user-defined data types](./user-defined-data-types.md).
385385

0 commit comments

Comments
 (0)