diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index a827dbd07de1..a84abe8571a6 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release * Added additional input validation to `Stop-AzSqlInstanceDatabaseLogReplay` cmdlet to ensure the target database was created by log replay service +* Bug fix for cmdlet `Restore-AzSqlDatabase`. The optional property `Tags` was not working as expected ## Version 3.9.0 * Added new cmdlet `Get-AzSqlInstanceEndpointCertificate` diff --git a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs index 66c2af0ff35d..f8e80e96b61b 100644 --- a/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs +++ b/src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs @@ -610,6 +610,7 @@ internal AzureSqlDatabaseModel RestoreDatabase(string resourceGroup, DateTime re LicenseType = model.LicenseType, RequestedBackupStorageRedundancy = model.RequestedBackupStorageRedundancy, ZoneRedundant = model.ZoneRedundant, + Tags = model.Tags }; // check if restore operation is cross subscription or same subscription