Skip to content

Commit 8cbe578

Browse files
committed
adding resources view file changes
1 parent 187764d commit 8cbe578

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/Resources/Resources/Resources.format.ps1xml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -510,23 +510,9 @@
510510
<Label>Name</Label>
511511
<PropertyName>name</PropertyName>
512512
</ListItem>
513-
<ListItem>
514-
<Label>ProvisioningState</Label>
515-
<PropertyName>provisioningState</PropertyName>
516-
</ListItem>
517-
<ListItem>
518-
<Label>Parameters</Label>
519-
<ItemSelectionCondition>
520-
<ScriptBlock>$_.Parameters -ne $null -And $_.Parameters.Keys.Count -ne 0</ScriptBlock>
521-
</ItemSelectionCondition>
522-
<ScriptBlock>$s = ""; foreach($v in $_.Parameters.Keys) { $n = ""; if ($s -ne "") { $n = "`n"; } $s = $s + $n + "{" + "Name: " + $v + ", Type: " + $_.Parameters[$v].Type + ", " + "Value: " + $_.Parameters[$v].Value + "}"} $s;</ScriptBlock>
523-
</ListItem>
524513
<ListItem>
525-
<Label>Tags</Label>
526-
<ItemSelectionCondition>
527-
<ScriptBlock>$_.Tags -ne $null -And $_.Tags.Keys.Count -ne 0</ScriptBlock>
528-
</ItemSelectionCondition>
529-
<ScriptBlock>$_.Tags</ScriptBlock>
514+
<Label>ProvisioningState</Label>
515+
<PropertyName>provisioningState</PropertyName>
530516
</ListItem>
531517
<ListItem>
532518
<Label>ResourcesCleanupAction</Label>
@@ -578,13 +564,6 @@
578564
</ItemSelectionCondition>
579565
<ScriptBlock>$_.snapshotId</ScriptBlock>
580566
</ListItem>
581-
<ListItem>
582-
<Label>Outputs</Label>
583-
<ItemSelectionCondition>
584-
<ScriptBlock>$_.Outputs -ne $null -And $_.Outputs.Keys.Count -ne 0</ScriptBlock>
585-
</ItemSelectionCondition>
586-
<ScriptBlock>$s = ""; foreach($v in $_.Outputs.Keys) { $n = ""; if ($s -ne "") { $n = "`n"; } $s = $s + $n + "{" + "Name: " + $v + ", Type: " + $_.Outputs[$v].Type + ", " + "Value: " + $_.Outputs[$v].Value + "}"} $s;</ScriptBlock>
587-
</ListItem>
588567
<ListItem>
589568
<Label>Resources</Label>
590569
<ItemSelectionCondition>
@@ -618,7 +597,28 @@
618597
<ItemSelectionCondition>
619598
<ScriptBlock>$_.error -ne $null</ScriptBlock>
620599
</ItemSelectionCondition>
621-
<ScriptBlock>$e=$_.error; while($e.Details -ne $null){$e = $e.Details[0]}$e.Code + " - " +$e.Message</ScriptBlock>
600+
<ScriptBlock>$_.GetFormattedErrorString()</ScriptBlock>
601+
</ListItem>
602+
<ListItem>
603+
<Label>Tags</Label>
604+
<ItemSelectionCondition>
605+
<ScriptBlock>$_.Tags -ne $null -And $_.Tags.Keys.Count -ne 0</ScriptBlock>
606+
</ItemSelectionCondition>
607+
<ScriptBlock>$_.GetFormattedTagTable()</ScriptBlock>
608+
</ListItem>
609+
<ListItem>
610+
<Label>Parameters</Label>
611+
<ItemSelectionCondition>
612+
<ScriptBlock>$_.Parameters -ne $null -And $_.Parameters.Keys.Count -ne 0</ScriptBlock>
613+
</ItemSelectionCondition>
614+
<ScriptBlock>$_.GetFormattedParameterTable()</ScriptBlock>
615+
</ListItem>
616+
<ListItem>
617+
<Label>Outputs</Label>
618+
<ItemSelectionCondition>
619+
<ScriptBlock>$_.Outputs -ne $null -And $_.Outputs.Keys.Count -ne 0</ScriptBlock>
620+
</ItemSelectionCondition>
621+
<ScriptBlock>$_.GetFormattedOutputTable()</ScriptBlock>
622622
</ListItem>
623623
</ListItems>
624624
</ListEntry>

0 commit comments

Comments
 (0)