Skip to content

[SQL] Deprecate Get/Set LTR vault cmdlets #7029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void TestRestorePointInTimeBackup()
RunPowerShellTest("Test-RestorePointInTimeBackup");
}
}
#if !NETSTANDARD
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestServerBackupLongTermRetentionVault()
Expand All @@ -78,6 +79,7 @@ public void TestServerBackupLongTermRetentionVault()
RunPowerShellTest("Test-ServerBackupLongTermRetentionVault");
}
}
#endif
[Fact(Skip = "LTR-V1 restore service is retiring in Prod.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRestoreLongTermRetentionBackup()
Expand Down
2 changes: 0 additions & 2 deletions src/ResourceManager/Sql/Commands.Sql/Az.Sql.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ CmdletsToExport = 'Get-AzSqlDatabaseTransparentDataEncryption',
'Remove-AzSqlDatabaseLongTermRetentionBackup',
'Get-AzSqlDeletedDatabaseBackup',
'Get-AzSqlDatabaseGeoBackup',
'Get-AzSqlServerBackupLongTermRetentionVault',
'Restore-AzSqlDatabase',
'Set-AzSqlServerBackupLongTermRetentionVault',
'Get-AzSqlDatabaseRestorePoints',
'Get-AzSqlDatabaseAuditingPolicy',
'Get-AzSqlServerAuditingPolicy',
Expand Down
3 changes: 3 additions & 0 deletions src/ResourceManager/Sql/Commands.Sql/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-->
## Current Release
* Fixed issue with default resource groups not being set.
* Deprecated unsupported LongTermRetention cmdlets:
* Get-AzureRmSqlServerBackupLongTermRetentionVault
* Set-AzureRmSqlServerBackupLongTermRetentionVault

## Version 4.11.1
* Updated to the latest version of the Azure ClientRuntime.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
using System.Management.Automation;
using Microsoft.Azure.Commands.Sql.Backup.Model;
using Microsoft.Azure.Commands.Sql.Database.Model;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet
{
[CmdletDeprecation]
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerBackupLongTermRetentionVault", SupportsShouldProcess = true)]
[OutputType(typeof(AzureSqlServerBackupLongTermRetentionVaultModel))]
public class GetAzureSqlServerBackupLongTermRetentionVault : AzureSqlServerBackupLongTermRetentionVaultCmdletBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
using System.Management.Automation;
using Microsoft.Azure.Commands.Sql.Backup.Model;
using Microsoft.Azure.Commands.Sql.Database.Model;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

namespace Microsoft.Azure.Commands.Sql.Backup.Cmdlet
{
/// <summary>
/// Cmdlet to create or update a new Azure Sql Server backup archival vault
/// </summary>
[CmdletDeprecation]
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerBackupLongTermRetentionVault",SupportsShouldProcess = true,ConfirmImpact = ConfirmImpact.Low), OutputType(typeof(AzureSqlServerBackupLongTermRetentionVaultModel))]
public class SetAzureSqlServerBackupLongTermRetentionVault : AzureSqlServerBackupLongTermRetentionVaultCmdletBase
{
Expand Down