Skip to content

Commit 9626770

Browse files
author
Sambit Rath
committed
Updated table output format
1 parent 71ca1e5 commit 9626770

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/RecoveryServices/RecoveryServices.Backup.Models/AzureModels/AzureItem.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ public class AzureItem : ItemBase
5252
/// </summary>
5353
public AzureItemExtendedInfo ExtendedInfo { get; set; }
5454

55-
/// <summary>
56-
/// healthstatus of the item
57-
/// </summary>
58-
public string HealthStatus { get; set; }
59-
6055
public AzureItem(ProtectedItemResource protectedItemResource,
6156
string containerName, ContainerType containerType, string policyName)
6257
: base(protectedItemResource, containerName, containerType)

src/RecoveryServices/RecoveryServices.Backup.Models/AzureVmModels/AzureVmItem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models
2323
public class AzureVmItem : AzureItem
2424
{
2525
public string VirtualMachineId { get; set; }
26-
26+
27+
public string HealthStatus { get; set; }
28+
2729
/// <summary>
2830
/// Constructor. Takes the service client object representing the protected item
2931
/// and converts it in to the PS protected item model

src/RecoveryServices/RecoveryServices.Backup/RecoveryServices.Backup.format.ps1xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@
517517
<Label>ProtectionStatus</Label>
518518
<Width>20</Width>
519519
</TableColumnHeader>
520+
<TableColumnHeader>
521+
<Label>HealthStatus</Label>
522+
<Width>20</Width>
523+
</TableColumnHeader>
520524
</TableHeaders>
521525
<TableRowEntries>
522526
<TableRowEntry>
@@ -536,6 +540,9 @@
536540
<TableColumnItem>
537541
<PropertyName>ProtectionStatus</PropertyName>
538542
</TableColumnItem>
543+
<TableColumnItem>
544+
<PropertyName>HealthStatus</PropertyName>
545+
</TableColumnItem>
539546
</TableColumnItems>
540547
</TableRowEntry>
541548
</TableRowEntries>

0 commit comments

Comments
 (0)