Skip to content

Exposed PausedDate and ResumedDate for cmdlet Get-AzSqlDatabase #19534

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
Sep 21, 2022
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
1 change: 1 addition & 0 deletions src/Sql/Sql/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Removed the warning messages for MSGraph migration [#18856]
* Moved SQL Server and SQL Instance from ActiveDirectoryClient to MicrosoftGraphClient
* Supported cross-subscription Failover Group creation using `PartnerSubscriptionId` parameter in `New-AzSqlDatabaseFailoverGroup` cmdlet
* Added `PausedDate` and `ResumedDate` for cmdlet `Get-AzSqlDatabase`

## Version 3.10.0
* Added `GeoZone` option to `BackupStorageRedundancy` parameter to `New-AzSqlDatabase`, `Set-AzSqlDatabase`, `New-AzSqlDatabaseCopy`, `New-AzSqlDatabaseSecondary`, and `Restore-AzSqlDatabase` to enable create, update, copy, geo secondary and PITR support for GeoZone hyperscale databases
Expand Down
14 changes: 14 additions & 0 deletions src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ public class AzureSqlDatabaseModel
/// </summary>
public bool? EnableLedger { get; set; }

/// <summary>
/// Gets or sets the PausedDate
/// </summary>
public DateTime? PausedDate { get; set; }

/// <summary>
/// Gets or sets the ResumeDate
/// </summary>
public DateTime? ResumedDate { get; set; }

/// <summary>
/// Construct AzureSqlDatabaseModel
/// </summary>
Expand Down Expand Up @@ -269,6 +279,8 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management
SecondaryType = null;
MaintenanceConfigurationId = null;
EnableLedger = false;
PausedDate = null;
ResumedDate = null;
}

/// <summary>
Expand Down Expand Up @@ -325,6 +337,8 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management
SecondaryType = database.SecondaryType;
MaintenanceConfigurationId = database.MaintenanceConfigurationId;
EnableLedger = database.IsLedgerOn;
PausedDate = database.PausedDate;
ResumedDate = database.ResumedDate;
}

/// <summary>
Expand Down