Skip to content

Commit 18606b0

Browse files
committed
Adding format file to PS auto generator.
1 parent 6ca7f85 commit 18606b0

File tree

4 files changed

+395
-0
lines changed

4 files changed

+395
-0
lines changed

src/ResourceManager/Compute/Commands.Compute/Commands.Compute.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@
360360
</ProjectReference>
361361
</ItemGroup>
362362
<ItemGroup>
363+
<None Include="Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml">
364+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
365+
</None>
363366
<None Include="Microsoft.Azure.Commands.Compute.dll-Help.psd1">
364367
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
365368
</None>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,245 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
//
4+
// Copyright (c) Microsoft and contributors. All rights reserved.
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
//
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
19+
// Warning: This code was generated by a tool.
20+
//
21+
// Changes to this file may cause incorrect behavior and will be lost if the
22+
// code is regenerated.
23+
-->
24+
<Configuration>
25+
<ViewDefinitions>
26+
<View>
27+
<Name>Microsoft.Azure.Management.Compute.Models.DeleteOperationResponse</Name>
28+
<ViewSelectedBy>
29+
<TypeName>Microsoft.Azure.Management.Compute.Models.DeleteOperationResponse</TypeName>
30+
</ViewSelectedBy>
31+
<ListControl>
32+
<ListEntries>
33+
<ListEntry>
34+
<ListItems>
35+
<ListItem>
36+
<Label>EndTime</Label>
37+
<PropertyName>EndTime</PropertyName>
38+
</ListItem>
39+
<ListItem>
40+
<Label>Error</Label>
41+
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.Error, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
42+
</ListItem>
43+
<ListItem>
44+
<Label>StartTime</Label>
45+
<PropertyName>StartTime</PropertyName>
46+
</ListItem>
47+
<ListItem>
48+
<Label>Status</Label>
49+
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.Status, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
50+
</ListItem>
51+
<ListItem>
52+
<Label>TrackingOperationId</Label>
53+
<PropertyName>TrackingOperationId</PropertyName>
54+
</ListItem>
55+
<ListItem>
56+
<Label>AzureAsyncOperation</Label>
57+
<PropertyName>AzureAsyncOperation</PropertyName>
58+
</ListItem>
59+
<ListItem>
60+
<Label>RequestId</Label>
61+
<PropertyName>RequestId</PropertyName>
62+
</ListItem>
63+
<ListItem>
64+
<Label>StatusCode</Label>
65+
<PropertyName>StatusCode</PropertyName>
66+
</ListItem>
67+
</ListItems>
68+
</ListEntry>
69+
</ListEntries>
70+
</ListControl>
71+
</View>
72+
<View>
73+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetGetResponse</Name>
74+
<ViewSelectedBy>
75+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetGetResponse</TypeName>
76+
</ViewSelectedBy>
77+
<ListControl>
78+
<ListEntries>
79+
<ListEntry>
80+
<ListItems>
81+
<ListItem>
82+
<Label>VirtualMachineScaleSet</Label>
83+
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.VirtualMachineScaleSet, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
84+
</ListItem>
85+
<ListItem>
86+
<Label>RequestId</Label>
87+
<PropertyName>RequestId</PropertyName>
88+
</ListItem>
89+
<ListItem>
90+
<Label>StatusCode</Label>
91+
<PropertyName>StatusCode</PropertyName>
92+
</ListItem>
93+
</ListItems>
94+
</ListEntry>
95+
</ListEntries>
96+
</ListControl>
97+
</View>
98+
<View>
99+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetListResponse</Name>
100+
<ViewSelectedBy>
101+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetListResponse</TypeName>
102+
</ViewSelectedBy>
103+
<ListControl>
104+
<ListEntries>
105+
<ListEntry>
106+
<ListItems>
107+
<ListItem>
108+
<Label>NextLink</Label>
109+
<PropertyName>NextLink</PropertyName>
110+
</ListItem>
111+
<ListItem>
112+
<Label>VirtualMachineScaleSets.Count</Label>
113+
<ScriptBlock> if ($_.VirtualMachineScaleSets -eq $null) { 0 } else { $_.VirtualMachineScaleSets.Count }</ScriptBlock>
114+
</ListItem>
115+
<ListItem>
116+
<Label>VirtualMachineScaleSets</Label>
117+
<ScriptBlock> foreach ($item in $_.VirtualMachineScaleSets) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) } </ScriptBlock>
118+
</ListItem>
119+
<ListItem>
120+
<Label>RequestId</Label>
121+
<PropertyName>RequestId</PropertyName>
122+
</ListItem>
123+
<ListItem>
124+
<Label>StatusCode</Label>
125+
<PropertyName>StatusCode</PropertyName>
126+
</ListItem>
127+
</ListItems>
128+
</ListEntry>
129+
</ListEntries>
130+
</ListControl>
131+
</View>
132+
<View>
133+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetListSkusResponse</Name>
134+
<ViewSelectedBy>
135+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetListSkusResponse</TypeName>
136+
</ViewSelectedBy>
137+
<ListControl>
138+
<ListEntries>
139+
<ListEntry>
140+
<ListItems>
141+
<ListItem>
142+
<Label>VirtualMachineScaleSetAvailableSkus.Count</Label>
143+
<ScriptBlock> if ($_.VirtualMachineScaleSetAvailableSkus -eq $null) { 0 } else { $_.VirtualMachineScaleSetAvailableSkus.Count }</ScriptBlock>
144+
</ListItem>
145+
<ListItem>
146+
<Label>VirtualMachineScaleSetAvailableSkus</Label>
147+
<ScriptBlock> foreach ($item in $_.VirtualMachineScaleSetAvailableSkus) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) } </ScriptBlock>
148+
</ListItem>
149+
<ListItem>
150+
<Label>RequestId</Label>
151+
<PropertyName>RequestId</PropertyName>
152+
</ListItem>
153+
<ListItem>
154+
<Label>StatusCode</Label>
155+
<PropertyName>StatusCode</PropertyName>
156+
</ListItem>
157+
</ListItems>
158+
</ListEntry>
159+
</ListEntries>
160+
</ListControl>
161+
</View>
162+
<View>
163+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMGetResponse</Name>
164+
<ViewSelectedBy>
165+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMGetResponse</TypeName>
166+
</ViewSelectedBy>
167+
<ListControl>
168+
<ListEntries>
169+
<ListEntry>
170+
<ListItems>
171+
<ListItem>
172+
<Label>VirtualMachineScaleSetVM</Label>
173+
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.VirtualMachineScaleSetVM, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
174+
</ListItem>
175+
<ListItem>
176+
<Label>RequestId</Label>
177+
<PropertyName>RequestId</PropertyName>
178+
</ListItem>
179+
<ListItem>
180+
<Label>StatusCode</Label>
181+
<PropertyName>StatusCode</PropertyName>
182+
</ListItem>
183+
</ListItems>
184+
</ListEntry>
185+
</ListEntries>
186+
</ListControl>
187+
</View>
188+
<View>
189+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMGetInstanceViewResponse</Name>
190+
<ViewSelectedBy>
191+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMGetInstanceViewResponse</TypeName>
192+
</ViewSelectedBy>
193+
<ListControl>
194+
<ListEntries>
195+
<ListEntry>
196+
<ListItems>
197+
<ListItem>
198+
<Label>VirtualMachineScaleSetVMInstanceView</Label>
199+
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.VirtualMachineScaleSetVMInstanceView, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
200+
</ListItem>
201+
<ListItem>
202+
<Label>RequestId</Label>
203+
<PropertyName>RequestId</PropertyName>
204+
</ListItem>
205+
<ListItem>
206+
<Label>StatusCode</Label>
207+
<PropertyName>StatusCode</PropertyName>
208+
</ListItem>
209+
</ListItems>
210+
</ListEntry>
211+
</ListEntries>
212+
</ListControl>
213+
</View>
214+
<View>
215+
<Name>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMListResponse</Name>
216+
<ViewSelectedBy>
217+
<TypeName>Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetVMListResponse</TypeName>
218+
</ViewSelectedBy>
219+
<ListControl>
220+
<ListEntries>
221+
<ListEntry>
222+
<ListItems>
223+
<ListItem>
224+
<Label>VirtualMachineScaleSetVMs.Count</Label>
225+
<ScriptBlock> if ($_.VirtualMachineScaleSetVMs -eq $null) { 0 } else { $_.VirtualMachineScaleSetVMs.Count }</ScriptBlock>
226+
</ListItem>
227+
<ListItem>
228+
<Label>VirtualMachineScaleSetVMs</Label>
229+
<ScriptBlock> foreach ($item in $_.VirtualMachineScaleSetVMs) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) } </ScriptBlock>
230+
</ListItem>
231+
<ListItem>
232+
<Label>RequestId</Label>
233+
<PropertyName>RequestId</PropertyName>
234+
</ListItem>
235+
<ListItem>
236+
<Label>StatusCode</Label>
237+
<PropertyName>StatusCode</PropertyName>
238+
</ListItem>
239+
</ListItems>
240+
</ListEntry>
241+
</ListEntries>
242+
</ListControl>
243+
</View>
244+
</ViewDefinitions>
245+
</Configuration>

src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ FormatsToProcess = @(
7171
'.\StreamAnalytics\Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml',
7272
'.\Compute\Microsoft.Azure.Commands.Compute.format.ps1xml',
7373
'.\Compute\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
74+
'.\Compute\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml',
7475
'.\Network\Microsoft.Azure.Commands.Network.format.ps1xml',
7576
'.\Storage\Microsoft.WindowsAzure.Commands.Storage.format.ps1xml',
7677
'.\StorageManagement\Microsoft.Azure.Commands.Management.Storage.format.ps1xml',

0 commit comments

Comments
 (0)