From 558fad7be193c3a002355dbba43c326584ebced5 Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Tue, 20 Sep 2022 17:13:26 -0700 Subject: [PATCH 1/2] Exposed `PausedDate` and `ResumedDate` for cmdlet `Get-AzSqlDatabase` --- src/Sql/Sql/ChangeLog.md | 1 + .../Sql/Database/Model/AzureSqlDatabaseModel.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md index ea355db92405..d4852c0808c5 100644 --- a/src/Sql/Sql/ChangeLog.md +++ b/src/Sql/Sql/ChangeLog.md @@ -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 diff --git a/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs b/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs index 1d3817ca39dd..2df212219160 100644 --- a/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs +++ b/src/Sql/Sql/Database/Model/AzureSqlDatabaseModel.cs @@ -210,6 +210,16 @@ public class AzureSqlDatabaseModel /// public bool? EnableLedger { get; set; } + /// + /// Gets or sets the PausedDate + /// + public DateTime? PausedDate { get; set; } + + /// + /// Gets or sets the ResumeDate + /// + public DateTime? ResumedDate { get; set; } + /// /// Construct AzureSqlDatabaseModel /// @@ -269,6 +279,8 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management SecondaryType = null; MaintenanceConfigurationId = null; EnableLedger = false; + PausedDate = null; + ResumedDate = null; } /// @@ -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; } /// From bd1a5ae8808afdf308f54dfe0dccc4b8854d83ed Mon Sep 17 00:00:00 2001 From: SaurabhSharma-MSFT <38112130+SaurabhSharma-MSFT@users.noreply.github.com> Date: Sat, 1 Oct 2022 09:14:00 -0700 Subject: [PATCH 2/2] Update ScriptString parameter description Update ScriptString parameter description. Fixes. --- src/Compute/Compute/help/Invoke-AzVMRunCommand.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compute/Compute/help/Invoke-AzVMRunCommand.md b/src/Compute/Compute/help/Invoke-AzVMRunCommand.md index 0818592603ea..298b3de34790 100644 --- a/src/Compute/Compute/help/Invoke-AzVMRunCommand.md +++ b/src/Compute/Compute/help/Invoke-AzVMRunCommand.md @@ -170,7 +170,7 @@ Accept wildcard characters: False ``` ### -ScriptString -{{ Fill ScriptString Description }} +The script to be executed as a string. ```yaml Type: System.String