Skip to content

Commit 177e479

Browse files
committed
[DataProtection] Fixed non-ASCII U+2013 characters failed module import in WindowsPowerShell (#29513)
1 parent 9c3788d commit 177e479

13 files changed

Lines changed: 16 additions & 16 deletions

src/DataProtection/DataProtection.Autorest/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataProtection")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.9.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("2.9.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26-
[assembly: System.CLSCompliantAttribute(false)]
27-
26+
[assembly: System.CLSCompliantAttribute(false)]

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject {
4646
{
4747
throw "Removing Default Retention Rule is not allowed. Please try again with different rule name."
4848
}
49-
$filteredRules = $Policy.PolicyRule | Where-Object { $_.Name ne $Name }
49+
$filteredRules = $Policy.PolicyRule | Where-Object { $_.Name -ne $Name }
5050
$Policy.PolicyRule = $filteredRules
5151
return $Policy
5252
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Edit-AzDataProtectionPolicyTagClientObject{
6464
{
6565
if($parameterSetName -eq "RemoveTag")
6666
{
67-
$filteredTags = $Policy.PolicyRule[$backupRuleIndex].Trigger.TaggingCriterion | Where-Object { $_.TagInfoTagName ne $Name }
67+
$filteredTags = $Policy.PolicyRule[$backupRuleIndex].Trigger.TaggingCriterion | Where-Object { $_.TagInfoTagName -ne $Name }
6868
$Policy.PolicyRule[$backupRuleIndex].Trigger.TaggingCriterion = $filteredTags
6969
return $Policy
7070
}

src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Edit-AzDataProtectionPolicyTriggerClientObject{
2727
$parameterSetName = $PsCmdlet.ParameterSetName
2828

2929
if($parameterSetName -eq "RemoveBackupSchedule"){
30-
$filteredRules = $Policy.PolicyRule | Where-Object { $_.ObjectType ne "AzureBackupRule" }
30+
$filteredRules = $Policy.PolicyRule | Where-Object { $_.ObjectType -ne "AzureBackupRule" }
3131
$Policy.PolicyRule = $filteredRules
3232
return $Policy
3333
}

src/DataProtection/DataProtection.Autorest/docs/Az.DataProtection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DataProtection
3-
Module Guid: 1b18256c-690e-40a8-882c-7d045b84092e
3+
Module Guid: 32742951-b1bb-42ff-a84c-b3ee5174d267
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.dataprotection
55
Help Version: 1.0.0.0
66
Locale: en-US

src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Accept wildcard characters: False
111111
Specifies whether to modify an existing LifeCycle.
112112
113113
```yaml
114-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
114+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
115115
Parameter Sets: AddRetention
116116
Aliases:
117117

src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Accept wildcard characters: False
294294
Use system assigned identity
295295
296296
```yaml
297-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
297+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
298298
Parameter Sets: (All)
299299
Aliases:
300300

src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionRestoreRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Accept wildcard characters: False
567567
Use system assigned identity
568568
569569
```yaml
570-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
570+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
571571
Parameter Sets: (All)
572572
Aliases:
573573

src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupConfigurationClientObject.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Boolean parameter to decide whether cluster scope resources are included for bac
206206
By default this is taken as true.
207207
208208
```yaml
209-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
209+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
210210
Parameter Sets: (All)
211211
Aliases:
212212

@@ -267,7 +267,7 @@ Boolean parameter to decide whether snapshot volumes are included for backup.
267267
By default this is taken as true.
268268
269269
```yaml
270-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
270+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
271271
Parameter Sets: (All)
272272
Aliases:
273273

src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRestoreConfigurationClientObject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Boolean parameter to decide whether cluster scope resources are included for res
110110
By default this is taken as true.
111111
112112
```yaml
113-
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
113+
Type: System.Nullable`1[[System.Boolean, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
114114
Parameter Sets: (All)
115115
Aliases:
116116

0 commit comments

Comments
 (0)