Skip to content

Commit 7a5ebcc

Browse files
author
Maddie Clayton
authored
Merge pull request #6050 from maddieclayton/tagchange
Breaking changes to DataLakeAnalytics
2 parents 47b26ee + 44503ed commit 7a5ebcc

File tree

9 files changed

+20
-11
lines changed

9 files changed

+20
-11
lines changed

src/ResourceManager/DataLakeAnalytics/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
-->
2020
## Current Release
2121
* Set minimum dependency of module to PowerShell 5.0
22+
* Remove deprecated `Tags` alias from cmdlets
23+
- `New-AzureRmDataLakeAnalyticsAccount`
24+
- `Set-AzureRmDataLakeAnalyticsAccount`
2225

2326
## Version 4.2.3
2427
* Updated to the latest version of the Azure ClientRuntime

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/ScenarioTests/AdlaAliasTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ function Test-DataLakeAnalyticsAccount
375375

376376
# Updating Account
377377
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
378-
$accountUpdated = Set-AdlAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $accountName -Tags $tagsToUpdate
378+
$accountUpdated = Set-AdlAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $accountName -Tag $tagsToUpdate
379379

380380
Assert-AreEqual $accountName $accountUpdated.Name
381381
Assert-AreEqual $location $accountUpdated.Location
@@ -714,7 +714,7 @@ function Test-NegativeDataLakeAnalyticsAccount
714714

715715
# attempt to update a non-existent account
716716
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
717-
Assert-Throws {Set-AdlAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName -Tags $tagsToUpdate}
717+
Assert-Throws {Set-AdlAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName -Tag $tagsToUpdate}
718718

719719
# attempt to get a non-existent account
720720
Assert-Throws {Get-AdlAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName}

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics.Test/ScenarioTests/AdlaTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function Test-DataLakeAnalyticsAccount
262262

263263
# Updating Account
264264
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
265-
$accountUpdated = Set-AzureRmDataLakeAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $accountName -Tags $tagsToUpdate
265+
$accountUpdated = Set-AzureRmDataLakeAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $accountName -Tag $tagsToUpdate
266266

267267
Assert-AreEqual $accountName $accountUpdated.Name
268268
Assert-AreEqual $location $accountUpdated.Location
@@ -713,7 +713,7 @@ function Test-NegativeDataLakeAnalyticsAccount
713713

714714
# attempt to update a non-existent account
715715
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
716-
Assert-Throws {Set-AzureRmDataLakeAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName -Tags $tagsToUpdate}
716+
Assert-Throws {Set-AzureRmDataLakeAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName -Tag $tagsToUpdate}
717717

718718
# attempt to get a non-existent account
719719
Assert-Throws {Get-AzureRmDataLakeAnalyticsAccount -ResourceGroupName $resourceGroupName -Name $fakeaccountName}

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/NewAzureRmDataLakeAnalyticsAccount.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public class NewAzureDataLakeAnalyticsAccount : DataLakeAnalyticsCmdletBase
5151

5252
[Parameter(ValueFromPipelineByPropertyName = true, Position = 4, Mandatory = false,
5353
HelpMessage = "A string,string dictionary of tags associated with this account")]
54-
[Obsolete("New-AzureRmDataLakeAnalyticsAccount: -Tags will be removed in favor of -Tag in an upcoming breaking change release. Please start using the -Tag parameter to avoid breaking scripts.")]
55-
[Alias("Tags")]
5654
[ValidateNotNull]
5755
public Hashtable Tag { get; set; }
5856

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Commands/SetAzureRmDataLakeAnalyticsAccount.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public class SetAzureDataLakeAnalyticsAccount : DataLakeAnalyticsCmdletBase
3434
HelpMessage =
3535
"A string,string dictionary of tags associated with this account that should replace the current set of tags"
3636
)]
37-
[Obsolete("Set-AzureRmDataLakeAnalyticsAccount: -Tags will be removed in favor of -Tag in an upcoming breaking change release. Please start using the -Tag parameter to avoid breaking scripts.")]
38-
[Alias("Tags")]
3937
[ValidateNotNull]
4038
public Hashtable Tag { get; set; }
4139

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/help/New-AzureRmDataLakeAnalyticsAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ A string,string dictionary of tags associated with this account
162162
```yaml
163163
Type: Hashtable
164164
Parameter Sets: (All)
165-
Aliases: Tags
165+
Aliases:
166166

167167
Required: False
168168
Position: 4

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/help/Set-AzureRmDataLakeAnalyticsAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ A string,string dictionary of tags associated with this account that should repl
162162
```yaml
163163
Type: Hashtable
164164
Parameter Sets: (All)
165-
Aliases: Tags
165+
Aliases:
166166

167167
Required: False
168168
Position: 1

src/ResourceManager/DataLakeAnalytics/documentation/upcoming-breaking-changes.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@
2525
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md
2626
-->
2727

28-
# Upcoming Breaking Changes
28+
# Upcoming Breaking Changes
29+
30+
The following cmdlets were affected this release:
31+
32+
**New-AzureRmDataLakeAnalyticsAccount**
33+
- The parameter alias `Tags` is being removed
34+
35+
**Set-AzureRmDataLakeAnalyticsAccount**
36+
- The parameter alias `Tags` is being removed

tools/StaticAnalysis/Exceptions/BreakingChangeIssues.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@
15151515
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultSecretAttribute","Set-AzureKeyVaultSecretAttribute","0","1050","The parameter set 'InputObject' for cmdlet 'Set-AzureKeyVaultSecretAttribute' has been removed.","Add parameter set 'InputObject' back to cmdlet 'Set-AzureKeyVaultSecretAttribute'."
15161516
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.SetAzureKeyVaultSecretAttribute","Set-AzureKeyVaultSecretAttribute","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzureKeyVaultSecretAttribute' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzureKeyVaultSecretAttribute'."
15171517
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.Commands.GetAzureKeyVaultCertificatePolicy","Get-AzureKeyVaultCertificatePolicy","0","1050","The parameter set 'VaultAndCertName' for cmdlet 'Get-AzureKeyVaultCertificatePolicy' has been removed.","Add parameter set 'VaultAndCertName' back to cmdlet 'Get-AzureKeyVaultCertificatePolicy'."
1518+
"Microsoft.Azure.Commands.DataLakeAnalytics.dll","Microsoft.Azure.Commands.DataLakeAnalytics.NewAzureDataLakeAnalyticsAccount","New-AzureRmDataLakeAnalyticsAccount","0","2010","The cmdlet 'New-AzureRmDataLakeAnalyticsAccount' no longer supports the alias 'Tags' for parameter 'Tag'.","Add the alias 'Tags' back to parameter 'Tag'."
1519+
"Microsoft.Azure.Commands.DataLakeAnalytics.dll","Microsoft.Azure.Commands.DataLakeAnalytics.SetAzureDataLakeAnalyticsAccount","Set-AzureRmDataLakeAnalyticsAccount","0","2010","The cmdlet 'Set-AzureRmDataLakeAnalyticsAccount' no longer supports the alias 'Tags' for parameter 'Tag'.","Add the alias 'Tags' back to parameter 'Tag'."
15181520
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.UpdateAzureKeyVaultManagedStorageAccountKey","Update-AzureKeyVaultManagedStorageAccountKey","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Update-AzureKeyVaultManagedStorageAccountKey' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Update-AzureKeyVaultManagedStorageAccountKey'."
15191521
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultManagedStorageAccount","Remove-AzureKeyVaultManagedStorageAccount","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzureKeyVaultManagedStorageAccount' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzureKeyVaultManagedStorageAccount'."
15201522
"Microsoft.Azure.Commands.KeyVault.dll","Microsoft.Azure.Commands.KeyVault.RemoveAzureKeyVaultSasDefinition","Remove-AzureKeyVaultManagedStorageSasDefinition","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Remove-AzureKeyVaultManagedStorageSasDefinition' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Remove-AzureKeyVaultManagedStorageSasDefinition'."

0 commit comments

Comments
 (0)