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
| baseUri |Yes |string |The base uri string. Take care to observe the behavior regarding the handling of the trailing slash ('/'), as described following this table. |
1392
1392
| relativeUri |Yes |string |The relative uri string to add to the base uri string. |
1393
1393
1394
-
* If **baseUri** ends in a trailing slash, the result is simply
1395
-
**baseUri** followed by **relativeUri**.
1394
+
* If `baseUri` ends with a trailing slash, the result is simply `baseUri` followed by `relativeUri`. If `relativeUri` also begins with a leading slash, the trailing slash and the leading slash will be combined into one.
1396
1395
1397
-
* If **baseUri** does not end in a trailing slash one of two things
1396
+
* If `baseUri` does not end in a trailing slash one of two things
1398
1397
happens.
1399
1398
1400
-
* If **baseUri** has no slashes at all (aside from the "//" near
1401
-
the front) the result is simply **baseUri** followed by **relativeUri**.
1399
+
* If `baseUri` has no slashes at all (aside from the "//" near
1400
+
the front) the result is simply `baseUri` followed by `relativeUri`.
1402
1401
1403
-
* If **baseUri** has some slashes, but doesn't end with a slash,
1404
-
everything from the last slash onward is removed from **baseUri**
1405
-
and the result is **baseUri** followed by **relativeUri**.
1402
+
* If `baseUri` has some slashes, but doesn't end with a slash,
1403
+
everything from the last slash onward is removed from `baseUri`
1404
+
and the result is `baseUri` followed by `relativeUri`.
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to work with strings.
4
4
ms.topic: reference
5
5
ms.custom: devx-track-arm-template
6
-
ms.date: 01/31/2024
6
+
ms.date: 07/02/2024
7
7
---
8
8
9
9
# String functions for ARM templates
@@ -205,7 +205,7 @@ In Bicep, use the [contains](../bicep/bicep-functions-string.md#contains) functi
205
205
206
206
### Return value
207
207
208
-
**True** if the item is found; otherwise, **False**.
208
+
`True` if the item is found; otherwise, `False`.
209
209
210
210
### Examples
211
211
@@ -302,7 +302,7 @@ In Bicep, use the [empty](../bicep/bicep-functions-string.md#empty) function.
302
302
303
303
### Return value
304
304
305
-
Returns **True** if the value is empty; otherwise, **False**.
305
+
Returns `True` if the value is empty; otherwise, `False`.
306
306
307
307
### Examples
308
308
@@ -335,7 +335,7 @@ In Bicep, use the [endsWith](../bicep/bicep-functions-string.md#endswith) functi
335
335
336
336
### Return value
337
337
338
-
**True** if the last character or characters of the string match the value; otherwise, **False**.
338
+
`True` if the last character or characters of the string match the value; otherwise, `False`.
339
339
340
340
### Examples
341
341
@@ -841,7 +841,7 @@ In Bicep, use the [startsWith](../bicep/bicep-functions-string.md#startswith) fu
841
841
842
842
### Return value
843
843
844
-
**True** if the first character or characters of the string match the value; otherwise, **False**.
844
+
`True` if the first character or characters of the string match the value; otherwise, `False`.
845
845
846
846
### Examples
847
847
@@ -1142,28 +1142,29 @@ In Bicep, use the [uri](../bicep/bicep-functions-string.md#uri) function.
1142
1142
| baseUri |Yes |string |The base uri string. Take care to observe the behavior about the handling of the trailing slash (`/`), as described following this table. |
1143
1143
| relativeUri |Yes |string |The relative uri string to add to the base uri string. |
1144
1144
1145
-
* If **baseUri** ends in a trailing slash, the result is **baseUri** followed by **relativeUri**.
1145
+
* If `baseUri` ends with a trailing slash, the result is simply `baseUri` followed by `relativeUri`. If `relativeUri` also begins with a leading slash, the trailing slash and the leading slash will be combined into one.
1146
1146
1147
-
* If **baseUri** doesn't end in a trailing slash one of two things
1147
+
* If `baseUri` doesn't end in a trailing slash one of two things
1148
1148
happens.
1149
1149
1150
-
* If **baseUri** has no slashes at all (aside from the `//` near
1151
-
the front) the result is **baseUri** followed by **relativeUri**.
1150
+
* If `baseUri` has no slashes at all (aside from the `//` near
1151
+
the front) the result is `baseUri` followed by `relativeUri`.
1152
1152
1153
-
* If **baseUri** has some slashes, but doesn't end with a slash,
1154
-
everything from the last slash onward is removed from **baseUri**
1155
-
and the result is **baseUri** followed by **relativeUri**.
1153
+
* If `baseUri` has some slashes, but doesn't end with a slash,
1154
+
everything from the last slash onward is removed from `baseUri`
1155
+
and the result is `baseUri` followed by `relativeUri`.
0 commit comments