Skip to content

Commit da5bf6a

Browse files
authored
Merge branch 'main' into patch-2
2 parents f697daf + 2c6f7dd commit da5bf6a

File tree

2 files changed

+68
-4
lines changed

2 files changed

+68
-4
lines changed

exchange/exchange-ps/exchange/Set-AppRetentionCompliancePolicy.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,34 @@ Set-AppRetentionCompliancePolicy -Identity "Regulation 563 Marketing" -Applicati
119119

120120
This example adds a new user to the existing static scope retention policy named Regulation 563 Marketing that's set up for Teams private channels messages.
121121

122+
### Example 2
123+
```powershell
124+
$stringJson = @"
125+
[{
126+
'EmailAddress': 'SalesUser@contoso.onmicrosoft.com'
127+
}]
128+
"@
129+
Set-AppRetentionCompliancePolicy -Identity "Teams Private Channel Retention Policy" -AddExchangeLocationException "SalesUser@contoso.onmicrosoft.com" -DeletedResources $stringJson
130+
```
131+
This example excludes the specified soft-deleted mailbox or mail user from the retention policy configured for Teams private channel messages. You can identify the deleted resources using the mailbox or mail user's email address.
132+
133+
Policy exclusions must remain within the supported limits for retention policies. For more information, see [Limits for Microsoft 365 retention policies and retention label policies](https://learn.microsoft.com/purview/retention-limits#maximum-number-of-items-per-policy).
134+
135+
### Example 3
136+
```powershell
137+
$stringJson = @"
138+
[{
139+
'EmailAddress': 'SalesUser1@contoso.onmicrosoft.com'
140+
},
141+
{
142+
'EmailAddress': 'SalesUser2@contoso.onmicrosoft.com'
143+
}]
144+
"@
145+
Set-AppRetentionCompliancePolicy -Identity "Teams Private Chat Retention Policy" -AddExchangeLocationException "SalesUser1@contoso.onmicrosoft.com", "SalesUser2@contoso.onmicrosoft.com" -DeletedResources $stringJson
146+
```
147+
148+
This example is similar to Example 2, except multiple deleted resources are specified.
149+
122150
## PARAMETERS
123151

124152
### -Identity
@@ -347,7 +375,11 @@ Accept wildcard characters: False
347375
```
348376

349377
### -DeletedResources
350-
{{ Fill DeletedResources Description }}
378+
The DeletedResources parameter specifies the deleted mailbox or mail user to add as an exclusion to the respective location list. Use this parameter with the AddTeamsChatLocationException parameter for deleted mailboxes or mail users that needs to be excluded from a Teams only retention policy.
379+
380+
A valid value is a JSON string. Refer to the Examples section for syntax and usage examples of this parameter.
381+
382+
For information on the inactive mailbox scenario, see [Learn about inactive mailboxes](https://learn.microsoft.com/purview/inactive-mailboxes-in-office-365).
351383

352384
```yaml
353385
Type: String

exchange/exchange-ps/exchange/Set-RetentionCompliancePolicy.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,36 @@ Set-RetentionCompliancePolicy -Identity "Sales Policy" -RemoveModernGroupLocatio
180180

181181
This example is similar to Example 2, except multiple deleted resources are specified.
182182

183+
### Example 5
184+
```powershell
185+
$stringJson = @"
186+
[{
187+
'EmailAddress': 'SalesUser@contoso.onmicrosoft.com'
188+
}]
189+
"@
190+
191+
Set-RetentionCompliancePolicy -Identity "Teams Chat Retention Policy" -AddTeamsChatLocationException "SalesUser@contoso.onmicrosoft.com" -DeletedResources $stringJson
192+
```
193+
194+
This example excludes the specified soft-deleted mailbox or mail user from the mentioned Teams Retention Policy. You can identify the deleted resources using the mailbox or mail user's email address.
195+
Policy exclusions must remain within the supported limits for retention policies: [Limits for Microsoft 365 retention policies and retention label policies](https://learn.microsoft.com/purview/retention-limits#maximum-number-of-items-per-policy)
196+
197+
### Example 6
198+
```powershell
199+
$stringJson = @"
200+
[{
201+
'EmailAddress': 'SalesUser1@contoso.onmicrosoft.com'
202+
},
203+
{
204+
'EmailAddress': 'SalesUser2@contoso.onmicrosoft.com'
205+
}]
206+
"@
207+
208+
Set-RetentionCompliancePolicy -Identity "Teams Chat Retention Policy" -AddTeamsChatLocationException "SalesUser1@contoso.onmicrosoft.com", "SalesUser2@contoso.onmicrosoft.com" -DeletedResources $stringJson
209+
```
210+
211+
This example is similar to Example 5, except multiple deleted resources are specified.
212+
183213
## PARAMETERS
184214

185215
### -Identity
@@ -629,11 +659,13 @@ Accept wildcard characters: False
629659
```
630660

631661
### -DeletedResources
632-
The DeletedResources parameter specifies the Sharepoint sites to be removed from the list of included sites or excluded from a tenant level policy when the associated group has been deleted. You use this parameter with the AddModernGroupLocationException and RemoveModernGroupLocation parameters.
662+
The DeletedResources parameter specifies the deleted Microsoft 365 Group, mailbox, or mail user to be removed or added as an exclusion to the respective location list. Use this parameter with the AddModernGroupLocationException and RemoveModernGroupLocation parameters for deleted Microsoft 365 Groups, or with the AddTeamsChatLocationException parameter for deleted mailboxes or mail users.
663+
664+
A valid value is a JSON string. Refer to the Examples section for syntax and usage examples of this parameter.
633665

634-
A valid value is a JSON String. See the Examples section for syntax and examples using this parameter.
666+
For more information on the deleted Microsoft 365 Group scenario, see [Learn more about modern group deletion under retention hold](https://learn.microsoft.com/purview/retention-settings#what-happens-if-a-microsoft-365-group-is-deleted-after-a-policy-is-applied).
635667

636-
For more information about this scenario, see [Learn more about modern group deletion under retention hold](https://learn.microsoft.com/purview/retention-settings#what-happens-if-a-microsoft-365-group-is-deleted-after-a-policy-is-applied).
668+
For more information on the inactive mailbox scenario, see [Learn about inactive mailboxes](https://learn.microsoft.com/purview/inactive-mailboxes-in-office-365).
637669

638670
```yaml
639671
Type: String

0 commit comments

Comments
 (0)