Skip to content

Commit b54853c

Browse files
author
unknown
committed
Add Regions to Get-AzureVMAvailableExtension output
1 parent 4560019 commit b54853c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/Common/VirtualMachineExtensionImageContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ public class VirtualMachineExtensionImageContext : ManagementOperationContext
3737
public string SupportedOS { get; set; }
3838
public DateTime? PublishedDate { get; set; }
3939
public string CompanyName { get; set; }
40+
public string Regions { get; set; }
4041
}
4142
}

src/ServiceManagement/Compute/Commands.ServiceManagement/Microsoft.WindowsAzure.Commands.ServiceManagement.format.ps1xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,30 @@
129129
<Label>PublishedDate</Label>
130130
<PropertyName>PublishedDate</PropertyName>
131131
</ListItem>
132-
<ListItem>
132+
<ListItem>
133133
<Label>CompanyName</Label>
134134
<PropertyName>CompanyName</PropertyName>
135135
</ListItem>
136+
<ListItem>
137+
<Label>Regions</Label>
138+
<ScriptBlock>
139+
if ($_.Regions -ne $null)
140+
{
141+
if ($_.Regions.Length -gt 0)
142+
{
143+
$_.Regions;
144+
}
145+
else
146+
{
147+
'All regions';
148+
}
149+
}
150+
else
151+
{
152+
$_.Regions;
153+
}
154+
</ScriptBlock>
155+
</ListItem>
136156
</ListItems>
137157
</ListEntry>
138158
</ListEntries>

0 commit comments

Comments
 (0)