Skip to content

Commit 23ffff9

Browse files
authored
Bug fix for the Restore-AzSqlDatabase cmdlet (#18475)
* Pass Tags field in the Database model constructor * Update change log
1 parent ec74bc3 commit 23ffff9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Sql/Sql/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Added additional input validation to `Stop-AzSqlInstanceDatabaseLogReplay` cmdlet to ensure the target database was created by log replay service
22+
* Bug fix for cmdlet `Restore-AzSqlDatabase`. The optional property `Tags` was not working as expected
2223

2324
## Version 3.9.0
2425
* Added new cmdlet `Get-AzSqlInstanceEndpointCertificate`

src/Sql/Sql/Database Backup/Services/AzureSqlDatabaseBackupAdapter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ internal AzureSqlDatabaseModel RestoreDatabase(string resourceGroup, DateTime re
610610
LicenseType = model.LicenseType,
611611
RequestedBackupStorageRedundancy = model.RequestedBackupStorageRedundancy,
612612
ZoneRedundant = model.ZoneRedundant,
613+
Tags = model.Tags
613614
};
614615

615616
// check if restore operation is cross subscription or same subscription

0 commit comments

Comments
 (0)