Skip to content

Commit ad3da39

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into heidist-toc
2 parents a9ef115 + 294a84a commit ad3da39

File tree

7 files changed

+126
-11
lines changed

7 files changed

+126
-11
lines changed

articles/active-directory-b2c/string-transformations.md

Lines changed: 116 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: reference
12-
ms.date: 09/10/2018
12+
ms.date: 02/03/2020
1313
ms.author: marsma
1414
ms.subservice: B2C
1515
---
@@ -588,3 +588,118 @@ For example, the following claims transformation checks if the value of **ageGro
588588
- **isMinorResponseCode**: B2C_V1_90001
589589
- **isMinor**: true
590590

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 |
597+
| ---- | ----------------------- | --------- | ----- |
598+
| 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**.
604+
605+
```XML
606+
<ClaimsTransformation Id="CheckIsAdmin" TransformationMethod="StringContains">
607+
<InputClaims>
608+
<InputClaim ClaimTypeReferenceId="roles" TransformationClaimType="inputClaim"/>
609+
</InputClaims>
610+
<InputParameters>
611+
<InputParameter Id="contains" DataType="string" Value="admin"/>
612+
<InputParameter Id="ignoreCase" DataType="string" Value="true"/>
613+
</InputParameters>
614+
<OutputClaims>
615+
<OutputClaim ClaimTypeReferenceId="isAdmin" TransformationClaimType="outputClaim"/>
616+
</OutputClaims>
617+
</ClaimsTransformation>
618+
```
619+
620+
### Example
621+
622+
- Input claims:
623+
- **inputClaim**: "Admin, Approver, Editor"
624+
- Input parameters:
625+
- **contains**: "admin,"
626+
- **ignoreCase**: true
627+
- Output claims:
628+
- **outputClaim**: true
629+
630+
## StringSubstring
631+
632+
Extracts parts of a string claim type, beginning at the character at the specified position, and returns the specified number of characters.
633+
634+
| Item | TransformationClaimType | Data Type | Notes |
635+
| ---- | ----------------------- | --------- | ----- |
636+
| 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. |
640+
641+
For example, get the phone number country prefix.
642+
643+
644+
```XML
645+
<ClaimsTransformation Id="GetPhonePrefix" TransformationMethod="StringSubstring">
646+
<InputClaims>
647+
<InputClaim ClaimTypeReferenceId="phoneNumber" TransformationClaimType="inputClaim" />
648+
</InputClaims>
649+
<InputParameters>
650+
<InputParameter Id="startIndex" DataType="int" Value="0" />
651+
<InputParameter Id="length" DataType="int" Value="2" />
652+
</InputParameters>
653+
<OutputClaims>
654+
<OutputClaim ClaimTypeReferenceId="phonePrefix" TransformationClaimType="outputClaim" />
655+
</OutputClaims>
656+
</ClaimsTransformation>
657+
```
658+
### Example
659+
660+
- Input claims:
661+
- **inputClaim**: "+1644114520"
662+
- Input parameters:
663+
- **startIndex**: 0
664+
- **length**: 2
665+
- Output claims:
666+
- **outputClaim**: "+1"
667+
668+
## StringReplace
669+
670+
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 |
673+
| ---- | ----------------------- | --------- | ----- |
674+
| 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
680+
681+
682+
```XML
683+
<ClaimsTransformation Id="NormalizePhoneNumber" TransformationMethod="StringReplace">
684+
<InputClaims>
685+
<InputClaim ClaimTypeReferenceId="phoneNumber" TransformationClaimType="inputClaim" />
686+
</InputClaims>
687+
<InputParameters>
688+
<InputParameter Id="oldValue" DataType="string" Value="-" />
689+
<InputParameter Id="newValue" DataType="string" Value="" />
690+
</InputParameters>
691+
<OutputClaims>
692+
<OutputClaim ClaimTypeReferenceId="phoneNumber" TransformationClaimType="outputClaim" />
693+
</OutputClaims>
694+
</ClaimsTransformation>
695+
```
696+
### Example
697+
698+
- Input claims:
699+
- **inputClaim**: "+164-411-452-054"
700+
- Input parameters:
701+
- **oldValue**: "-"
702+
- **length**: ""
703+
- Output claims:
704+
- **outputClaim**: "+164411452054"
705+

articles/bastion/bastion-connect-vm-scale-set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: cherylmc
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 10/14/2019
9+
ms.date: 02/03/2020
1010
ms.author: cherylmc
1111

1212
---

articles/bastion/bastion-nsg.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: Working with VMs and NSGs in Azure Bastion | Microsoft Docs
2+
title: Working with VMs and NSGs in Azure Bastion
33
description: This article describes how to incorporate NSG access with Azure Bastion
44
services: bastion
55
author: ashjain
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 10/16/2019
9+
ms.date: 02/03/2020
1010
ms.author: ashishj
1111
---
1212
# Working with NSG access and Azure Bastion

articles/bastion/bastion-vm-copy-paste.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: 'Copy and paste to and from a virtual machine: Azure Bastion | Microsoft Docs'
2+
title: 'Copy and paste to and from a virtual machine: Azure Bastion'
33
description: In this article, learn how copy and paste to and from an Azure VM using Bastion.
44
services: bastion
55
author: cherylmc
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 10/15/2019
9+
ms.date: 02/03/2020
1010
ms.author: cherylmc
1111
# Customer intent: I want to copy and paste to and from VMs using Azure Bastion.
1212

articles/bastion/bastion-vm-full-screen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: cherylmc
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 10/15/2019
9+
ms.date: 02/03/2020
1010
ms.author: cherylmc
1111
# Customer intent: I want to manage my VM experience using Azure Bastion.
1212

articles/bastion/diagnostic-logs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
2-
title: 'Enable and work with Azure Bastion diagnostic logs | Microsoft Docs'
2+
title: 'Enable and work with Azure Bastion diagnostic logs'
33
description: In this article, learn how to enable and work with Azure Bastion diagnostic logs.
44
services: bastion
55
author: cherylmc
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 10/14/2019
9+
ms.date: 02/03/2020
1010
ms.author: cherylmc
1111

1212
---
1313

1414
# Enable and work with Bastion diagnostic logs
1515

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

1818
## <a name="enable"></a>Enable the diagnostics log
1919

articles/bastion/session-monitoring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: cherylmc
66

77
ms.service: bastion
88
ms.topic: conceptual
9-
ms.date: 11/04/2019
9+
ms.date: 02/03/2020
1010
ms.author: cherylmc
1111

1212
---

0 commit comments

Comments
 (0)