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/active-directory-b2c/string-transformations.md
+116-1Lines changed: 116 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ manager: celestedg
9
9
ms.service: active-directory
10
10
ms.workload: identity
11
11
ms.topic: reference
12
-
ms.date: 09/10/2018
12
+
ms.date: 02/03/2020
13
13
ms.author: marsma
14
14
ms.subservice: B2C
15
15
---
@@ -588,3 +588,118 @@ For example, the following claims transformation checks if the value of **ageGro
588
588
-**isMinorResponseCode**: B2C_V1_90001
589
589
-**isMinor**: true
590
590
591
+
592
+
## StringContains
593
+
594
+
Determine whether a specified substring occurs within the input claim. The result is a new boolean ClaimType with a value of `true` or `false`. `true` if the value parameter occurs within this string, otherwise, `false`.
595
+
596
+
| Item | TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim | string | The claim type, which is to be searched. |
599
+
|InputParameter|contains|string|The value to search.|
600
+
|InputParameter|ignoreCase|string|Specifies whether this comparison should ignore the case of the string being compared.|
601
+
| OutputClaim | outputClaim | string | The ClaimType that is produced after this ClaimsTransformation has been invoked. A boolean indicator if the substring occurs within the input claim. |
602
+
603
+
Use this claims transformation to check if a string claim type contains a substring. Following example, checks whether the `roles` string claim type contains the value of **admin**.
| InputClaim | inputClaim | string | The claim type, which contains the string. |
637
+
| InputParameter | startIndex | int | The zero-based starting character position of a substring in this instance. |
638
+
| InputParameter | length | int | The number of characters in the substring. |
639
+
| OutputClaim | outputClaim | boolean | A string that is equivalent to the substring of length length that begins at startIndex in this instance, or Empty if startIndex is equal to the length of this instance and length is zero. |
Searches a claim type string for a specified value, and returns a new claim type string in which all occurrences of a specified string in the current string are replaced with another specified string.
671
+
672
+
| Item | TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim | string | The claim type, which contains the string. |
675
+
| InputParameter | oldValue | string | The string to be searched. |
676
+
| InputParameter | newValue | string | The string to replace all occurrences of `oldValue`|
677
+
| OutputClaim | outputClaim | boolean | A string that is equivalent to the current string except that all instances of oldValue are replaced with newValue. If oldValue is not found in the current instance, the method returns the current instance unchanged. |
678
+
679
+
For example, normalize a phone number, by removing the `-` characters
Copy file name to clipboardExpand all lines: articles/bastion/diagnostic-logs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
-
title: 'Enable and work with Azure Bastion diagnostic logs | Microsoft Docs'
2
+
title: 'Enable and work with Azure Bastion diagnostic logs'
3
3
description: In this article, learn how to enable and work with Azure Bastion diagnostic logs.
4
4
services: bastion
5
5
author: cherylmc
6
6
7
7
ms.service: bastion
8
8
ms.topic: conceptual
9
-
ms.date: 10/14/2019
9
+
ms.date: 02/03/2020
10
10
ms.author: cherylmc
11
11
12
12
---
13
13
14
14
# Enable and work with Bastion diagnostic logs
15
15
16
-
As users connect to workloads using Azure Bastion, Bastion can log diagnostics of the remote sessions. You can then use the diagnostics to view which users connected to which workloads, at what time, from where and other such relevant logging information. In order to use the diagnostics, you must enable diagnostics logs on Azure Bastion. This article helps you enable diagnostics logs, and then view the logs.
16
+
As users connect to workloads using Azure Bastion, Bastion can log diagnostics of the remote sessions. You can then use the diagnostics to view which users connected to which workloads, at what time, from where, and other such relevant logging information. In order to use the diagnostics, you must enable diagnostics logs on Azure Bastion. This article helps you enable diagnostics logs, and then view the logs.
0 commit comments