Skip to content

Commit dcaee72

Browse files
authored
Merge pull request MicrosoftDocs#9774 from MicrosoftDocs/CloudAttach-chrisda
CloudAttach-chrisda to Main
2 parents d44e5ed + 4e9428b commit dcaee72

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

exchange/exchange-ps/exchange/New-RetentionCompliancePolicy.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ This example creates a retention policy named "Regulation 123 Compliance" for th
9292

9393
The next step is to use the New-RetentionComplianceRule cmdlet to add a retention rule to the retention policy.
9494

95+
### Example 2
96+
```powershell
97+
New-RetentionCompliancePolicy -Name "Marketing Department" -Enabled $true -SharePointLocation https://contoso.sharepoint.com -RetainCloudAttachment $true -Comment "Regulatory compliance for Marketing Dept."
98+
```
99+
100+
This example creates a new cloud attachment policy named Marketing Department with the specified details.
101+
95102
## PARAMETERS
96103

97104
### -Name
@@ -427,7 +434,22 @@ Accept wildcard characters: False
427434
```
428435

429436
### -RetainCloudAttachment
430-
This parameter is reserved for internal Microsoft use.
437+
**Note**: This parameter is currently in Preview, is not available in all organizations, and is subject to change.
438+
439+
The RetainCloudAttachment parameter specifies that this is a cloud attachment policy. Valid values are:
440+
441+
- $true: The policy is a cloud attachment policy.
442+
- $false: The policy is not a cloud attachment policy. This is the default value.
443+
444+
For the value $true, you can only use the following location parameters:
445+
446+
- SharePointLocation and SharePointLocationException
447+
- OneDriveLocation and OneDriveLocationException
448+
- ModernGroupLocation and ModernGroupLocationException
449+
450+
A tag that uses a cloud attachment policy to create a rule can be a record label or a regulatory label. You can't use a publishing tag for a cloud attachment policy to create a rule; only apply tags are supported.
451+
452+
The RetainCloudAttachment parameter is not available on the Set-RetentionCompliancePolicy cmdlet.
431453

432454
```yaml
433455
Type: Boolean

exchange/exchange-ps/exchange/New-RetentionComplianceRule.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ The PublishComplianceTag parameter specifies the label that's published for the
142142
143143
You view and create labels by using the Get-ComplianceTag and New-ComplianceTag cmdlets.
144144
145-
You can't use this parameter with the Name or ApplyComplianceTag parameters.
145+
You can't use this parameter in the following scenarios:
146146
147-
You can't use this parameter for Teams retention rules.
147+
- With the Name or ApplyComplianceTag parameters.
148+
- For Teams retention rules.
149+
- With cloud attachment policies.
148150
149151
```yaml
150152
Type: String

0 commit comments

Comments
 (0)