From 31eb01fdebff7219651318dba3d44e6c8217af61 Mon Sep 17 00:00:00 2001 From: "NORTHAMERICA\\imadan" Date: Fri, 10 Jun 2022 12:06:33 -0700 Subject: [PATCH 1/2] Pass Tags field in the Database model constructor --- .../Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs | 1 + 1 file changed, 1 insertion(+) 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 From 5b8eb265b4dd10a07dbb5a9d8248f5148b61c8af Mon Sep 17 00:00:00 2001 From: "NORTHAMERICA\\imadan" Date: Fri, 10 Jun 2022 12:34:42 -0700 Subject: [PATCH 2/2] Update change log --- src/Sql/Sql/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) 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`