Skip to content

Commit bda82b1

Browse files
Merge pull request #221018 from mumian/1209-object-key
remove object key quotes
2 parents 2410380 + bbbb4af commit bda82b1

File tree

7 files changed

+61
-61
lines changed

7 files changed

+61
-61
lines changed

articles/azure-resource-manager/bicep/bicep-functions-array.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the functions to use in a Bicep file for working with arr
44
author: mumian
55
ms.topic: conceptual
66
ms.author: jgao
7-
ms.date: 09/26/2022
7+
ms.date: 12/09/2022
88
---
99

1010
# Array functions for Bicep
@@ -37,8 +37,8 @@ The following example shows how to use the array function with different types.
3737
param intToConvert int = 1
3838
param stringToConvert string = 'efgh'
3939
param objectToConvert object = {
40-
'a': 'b'
41-
'c': 'd'
40+
a: 'b'
41+
c: 'd'
4242
}
4343
4444
output intOutput array = array(intToConvert)
@@ -126,9 +126,9 @@ The following example shows how to use contains with different types:
126126
```bicep
127127
param stringToTest string = 'OneTwoThree'
128128
param objectToTest object = {
129-
'one': 'a'
130-
'two': 'b'
131-
'three': 'c'
129+
one: 'a'
130+
two: 'b'
131+
three: 'c'
132132
}
133133
param arrayToTest array = [
134134
'one'
@@ -402,15 +402,15 @@ The following example shows how to use intersection with arrays and objects:
402402

403403
```bicep
404404
param firstObject object = {
405-
'one': 'a'
406-
'two': 'b'
407-
'three': 'c'
405+
one: 'a'
406+
two: 'b'
407+
three: 'c'
408408
}
409409
410410
param secondObject object = {
411-
'one': 'a'
412-
'two': 'z'
413-
'three': 'c'
411+
one: 'a'
412+
two: 'z'
413+
three: 'c'
414414
}
415415
416416
param firstArray array = [
@@ -615,10 +615,10 @@ param arrayToTest array = [
615615
]
616616
param stringToTest string = 'One Two Three'
617617
param objectToTest object = {
618-
'propA': 'one'
619-
'propB': 'two'
620-
'propC': 'three'
621-
'propD': {
618+
propA: 'one'
619+
propB: 'two'
620+
propC: 'three'
621+
propD: {
622622
'propD-1': 'sub'
623623
'propD-2': 'sub'
624624
}
@@ -955,15 +955,15 @@ The following example shows how to use union with arrays and objects:
955955

956956
```bicep
957957
param firstObject object = {
958-
'one': 'a'
959-
'two': 'b'
960-
'three': 'c1'
958+
one: 'a'
959+
two: 'b'
960+
three: 'c1'
961961
}
962962
963963
param secondObject object = {
964-
'three': 'c2'
965-
'four': 'd'
966-
'five': 'e'
964+
three: 'c2'
965+
four: 'd'
966+
five: 'e'
967967
}
968968
969969
param firstArray array = [

articles/azure-resource-manager/bicep/bicep-functions-object.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the functions to use in a Bicep file for working with obj
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 04/06/2022
7+
ms.date: 12/09/2022
88
---
99

1010
# Object functions for Bicep
@@ -37,9 +37,9 @@ The following example shows how to use contains with different types:
3737
```bicep
3838
param stringToTest string = 'OneTwoThree'
3939
param objectToTest object = {
40-
'one': 'a'
41-
'two': 'b'
42-
'three': 'c'
40+
one: 'a'
41+
two: 'b'
42+
three: 'c'
4343
}
4444
param arrayToTest array = [
4545
'one'
@@ -132,14 +132,14 @@ The following example shows how to use intersection with arrays and objects:
132132

133133
```bicep
134134
param firstObject object = {
135-
'one': 'a'
136-
'two': 'b'
137-
'three': 'c'
135+
one: 'a'
136+
two: 'b'
137+
three: 'c'
138138
}
139139
param secondObject object = {
140-
'one': 'a'
141-
'two': 'z'
142-
'three': 'c'
140+
one: 'a'
141+
two: 'z'
142+
three: 'c'
143143
}
144144
param firstArray array = [
145145
'one'
@@ -364,10 +364,10 @@ param arrayToTest array = [
364364
]
365365
param stringToTest string = 'One Two Three'
366366
param objectToTest object = {
367-
'propA': 'one'
368-
'propB': 'two'
369-
'propC': 'three'
370-
'propD': {
367+
propA: 'one'
368+
propB: 'two'
369+
propC: 'three'
370+
propD: {
371371
'propD-1': 'sub'
372372
'propD-2': 'sub'
373373
}
@@ -420,15 +420,15 @@ The following example shows how to use union with arrays and objects:
420420

421421
```bicep
422422
param firstObject object = {
423-
'one': 'a'
424-
'two': 'b'
425-
'three': 'c1'
423+
one: 'a'
424+
two: 'b'
425+
three: 'c1'
426426
}
427427
428428
param secondObject object = {
429-
'three': 'c2'
430-
'four': 'd'
431-
'five': 'e'
429+
three: 'c2'
430+
four: 'd'
431+
five: 'e'
432432
}
433433
434434
param firstArray array = [

articles/azure-resource-manager/bicep/bicep-functions-string.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes the functions to use in a Bicep file to work with strings
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 07/05/2022
7+
ms.date: 12/09/2022
88
---
99

1010
# String functions for Bicep
@@ -184,9 +184,9 @@ The following example shows how to use contains with different types:
184184
```bicep
185185
param stringToTest string = 'OneTwoThree'
186186
param objectToTest object = {
187-
'one': 'a'
188-
'two': 'b'
189-
'three': 'c'
187+
one: 'a'
188+
two: 'b'
189+
three: 'c'
190190
}
191191
param arrayToTest array = [
192192
'one'
@@ -717,10 +717,10 @@ param arrayToTest array = [
717717
]
718718
param stringToTest string = 'One Two Three'
719719
param objectToTest object = {
720-
'propA': 'one'
721-
'propB': 'two'
722-
'propC': 'three'
723-
'propD': {
720+
propA: 'one'
721+
propB: 'two'
722+
propC: 'three'
723+
propD: {
724724
'propD-1': 'sub'
725725
'propD-2': 'sub'
726726
}
@@ -1039,8 +1039,8 @@ The following example shows how to convert different types of values to strings:
10391039

10401040
```bicep
10411041
param testObject object = {
1042-
'valueA': 10
1043-
'valueB': 'Example Text'
1042+
valueA: 10
1043+
valueB: 'Example Text'
10441044
}
10451045
param testArray array = [
10461046
'a'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Data types in Bicep
33
description: Describes the data types that are available in Bicep
44
ms.topic: conceptual
5-
ms.date: 09/16/2022
5+
ms.date: 12/09/2022
66
---
77

88
# Data types in Bicep

articles/azure-resource-manager/bicep/linter-rule-outputs-should-not-contain-secrets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Linter rule - outputs should not contain secrets
33
description: Linter rule - outputs should not contain secrets
44
ms.topic: conceptual
5-
ms.date: 12/17/2021
5+
ms.date: 12/09/2022
66
---
77

88
# Linter rule - outputs should not contain secrets

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Iterative loops in Bicep
33
description: Use loops to iterate over collections in Bicep
44
ms.topic: conceptual
5-
ms.date: 11/14/2022
5+
ms.date: 12/09/2022
66
---
77

88
# Iterative loops in Bicep

articles/azure-resource-manager/bicep/operators-logical.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Describes Bicep logical operators that evaluate conditions.
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 06/01/2021
7+
ms.date: 12/09/2022
88
---
99

1010
# Bicep logical operators
@@ -152,11 +152,11 @@ The output statements return the non-null values. The output type must match the
152152

153153
```bicep
154154
param myObject object = {
155-
'isnull1': null
156-
'isnull2': null
157-
'string': 'demoString'
158-
'emptystr': ''
159-
'integer': 10
155+
isnull1: null
156+
isnull2: null
157+
string: 'demoString'
158+
emptystr: ''
159+
integer: 10
160160
}
161161
162162
output nonNullStr string = myObject.isnull1 ?? myObject.string ?? myObject.isnull2

0 commit comments

Comments
 (0)