Skip to content

Commit 2586f08

Browse files
author
Maddie Clayton
authored
Merge pull request #6922 from shanswmicrosoft/PR
Update AzureStack Compute Admin module for managed disk
2 parents cc92811 + 45de4c2 commit 2586f08

23 files changed

+5474
-607
lines changed

src/StackAdmin/Azs.Compute.Admin/Compute.json

Lines changed: 1773 additions & 271 deletions
Large diffs are not rendered by default.

src/StackAdmin/Azs.Compute.Admin/Compute.psmeta.json

Lines changed: 1001 additions & 327 deletions
Large diffs are not rendered by default.

src/StackAdmin/Azs.Compute.Admin/Help/Azs.Compute.Admin.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Locale: en-US
88

99
# Azs.Compute.Admin Module
1010
## Description
11-
Preview release of the AzureStack Compute administrator module which provides functionality to manage compute quotas, platform images, and virtual machine extensions
11+
Preview release of the AzureStack Compute administrator module which provides functionality to manage compute quotas, platform images, and virtual machine extensions, as well as managed disks migration jobs to rebalance storage.
1212

1313
## Azs.Compute.Admin Cmdlets
1414
### [Add-AzsPlatformImage](Add-AzsPlatformImage.md)
@@ -20,6 +20,12 @@ Create a new virtual machine extension image.
2020
### [Get-AzsComputeQuota](Get-AzsComputeQuota.md)
2121
Returns quotas specifying the quota limits for compute objects.
2222

23+
### [Get-AzsDisk](Get-AzsDisk.md)
24+
Returns the list of managed disks which can be migrated in the specified share.
25+
26+
### [Get-AzsDiskMigrationJob](Get-AzsDiskMigrationJob.md)
27+
Returns the list of managed disk migration jobs.
28+
2329
### [Get-AzsPlatformImage](Get-AzsPlatformImage.md)
2430
Returns virtual machine images loaded into the platform image repository.
2531

@@ -29,6 +35,9 @@ Returns virtual machine image extensions currently available.
2935
### [New-AzsComputeQuota](New-AzsComputeQuota.md)
3036
Create a new compute quota used to limit compute resources.
3137

38+
### [New-AzsDiskMigrationJob](New-AzsDiskMigrationJob.md)
39+
Starts a managed disk migration job to migrate managed disks to the specified destination share.
40+
3241
### [New-DataDiskObject](New-DataDiskObject.md)
3342
Creates a data disk which is used to create a new virtual machine platform image.
3443

@@ -44,3 +53,6 @@ Deletes a virtual machine extension image.
4453
### [Set-AzsComputeQuota](Set-AzsComputeQuota.md)
4554
Update an existing compute quota using the provided parameters.
4655

56+
### [Stop-AzsDiskMigrationJob](Stop-AzsDiskMigrationJob.md)
57+
Cancel a managed disk migration job.
58+
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
---
2+
external help file: Azs.Compute.Admin-help.xml
3+
Module Name: Azs.Compute.Admin
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-AzsDisk
9+
10+
## SYNOPSIS
11+
Returns the list of managed disks which can be migrated in the specified share.
12+
13+
## SYNTAX
14+
15+
### List (Default)
16+
```
17+
Get-AzsDisk [-Location <String>] [-Start <Int32>] [-SharePath <String>] [-Count <Int32>]
18+
[-UserSubscriptionId <String>] [-Status <String>] [<CommonParameters>]
19+
```
20+
21+
### ResourceId
22+
```
23+
Get-AzsDisk -ResourceId <String> [<CommonParameters>]
24+
```
25+
26+
### Get
27+
```
28+
Get-AzsDisk [-Location <String>] -Name <String> [<CommonParameters>]
29+
```
30+
31+
## DESCRIPTION
32+
Returns a list of disks.
33+
34+
## EXAMPLES
35+
36+
### Example 1
37+
```powershell
38+
PS C:\> Get-AzsDisk -location local
39+
```
40+
41+
Returns a list of managed disks at the location local. By default, it will the first 100 disks
42+
43+
### Example 2
44+
```
45+
Get-AzsDisk -location local -name $DiskId
46+
```
47+
48+
Get a specific managed disk.
49+
50+
## PARAMETERS
51+
52+
### -Count
53+
The maximum number of disks to return.
54+
55+
```yaml
56+
Type: Int32
57+
Parameter Sets: List
58+
Aliases:
59+
60+
Required: False
61+
Position: Named
62+
Default value: None
63+
Accept pipeline input: False
64+
Accept wildcard characters: False
65+
```
66+
67+
### -Location
68+
Location of the resource.
69+
70+
```yaml
71+
Type: String
72+
Parameter Sets: List, Get
73+
Aliases:
74+
75+
Required: False
76+
Position: Named
77+
Default value: None
78+
Accept pipeline input: False
79+
Accept wildcard characters: False
80+
```
81+
82+
### -Name
83+
The disk guid as identity.
84+
85+
```yaml
86+
Type: String
87+
Parameter Sets: Get
88+
Aliases: DiskId
89+
90+
Required: True
91+
Position: Named
92+
Default value: None
93+
Accept pipeline input: False
94+
Accept wildcard characters: False
95+
```
96+
97+
### -ResourceId
98+
The resource id.
99+
100+
```yaml
101+
Type: String
102+
Parameter Sets: ResourceId
103+
Aliases: Id
104+
105+
Required: True
106+
Position: Named
107+
Default value: None
108+
Accept pipeline input: True (ByPropertyName)
109+
Accept wildcard characters: False
110+
```
111+
112+
### -SharePath
113+
The source share which the resource belongs to.
114+
115+
```yaml
116+
Type: String
117+
Parameter Sets: List
118+
Aliases:
119+
120+
Required: False
121+
Position: Named
122+
Default value: None
123+
Accept pipeline input: False
124+
Accept wildcard characters: False
125+
```
126+
127+
### -Start
128+
The start index of disks in query.
129+
130+
```yaml
131+
Type: Int32
132+
Parameter Sets: List
133+
Aliases:
134+
135+
Required: False
136+
Position: Named
137+
Default value: None
138+
Accept pipeline input: False
139+
Accept wildcard characters: False
140+
```
141+
142+
### -Status
143+
The parameters of disk state.
144+
145+
```yaml
146+
Type: String
147+
Parameter Sets: List
148+
Aliases:
149+
150+
Required: False
151+
Position: Named
152+
Default value: None
153+
Accept pipeline input: False
154+
Accept wildcard characters: False
155+
```
156+
157+
### -UserSubscriptionId
158+
Tenant Subscription Id which the resource belongs to.
159+
160+
```yaml
161+
Type: String
162+
Parameter Sets: List
163+
Aliases:
164+
165+
Required: False
166+
Position: Named
167+
Default value: None
168+
Accept pipeline input: False
169+
Accept wildcard characters: False
170+
```
171+
172+
### CommonParameters
173+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
174+
175+
## INPUTS
176+
177+
## OUTPUTS
178+
179+
### Microsoft.AzureStack.Management.Compute.Admin.Models.Disk
180+
181+
## NOTES
182+
183+
## RELATED LINKS
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
external help file: Azs.Compute.Admin-help.xml
3+
Module Name: Azs.Compute.Admin
4+
online version:
5+
schema: 2.0.0
6+
---
7+
8+
# Get-AzsDiskMigrationJob
9+
10+
## SYNOPSIS
11+
Returns the list of managed disk migration jobs.
12+
13+
## SYNTAX
14+
15+
### List (Default)
16+
```
17+
Get-AzsDiskMigrationJob [-Status <String>] [-Location <String>] [<CommonParameters>]
18+
```
19+
20+
### ResourceId
21+
```
22+
Get-AzsDiskMigrationJob -ResourceId <String> [<CommonParameters>]
23+
```
24+
25+
### Get
26+
```
27+
Get-AzsDiskMigrationJob [-Location <String>] -Name <String> [<CommonParameters>]
28+
```
29+
30+
## DESCRIPTION
31+
Returns a list of disk migration jobs.
32+
33+
## EXAMPLES
34+
35+
### Example 1
36+
```powershell
37+
PS C:\> Get-AzsDiskMigrationJob -location local
38+
```
39+
40+
Returns a list of managed disk migration jobs at the location local.
41+
42+
### Example 2
43+
```
44+
Get-AzsDiskMigrationJob -location local -Name "mymigrationName"
45+
```
46+
47+
Get a specific managed disk migration job.
48+
49+
## PARAMETERS
50+
51+
### -Location
52+
Location of the resource.
53+
54+
```yaml
55+
Type: String
56+
Parameter Sets: List, Get
57+
Aliases:
58+
59+
Required: False
60+
Position: Named
61+
Default value: None
62+
Accept pipeline input: False
63+
Accept wildcard characters: False
64+
```
65+
66+
### -Name
67+
The migration job guid name.
68+
69+
```yaml
70+
Type: String
71+
Parameter Sets: Get
72+
Aliases: MigrationId
73+
74+
Required: True
75+
Position: Named
76+
Default value: None
77+
Accept pipeline input: False
78+
Accept wildcard characters: False
79+
```
80+
81+
### -ResourceId
82+
The resource id.
83+
84+
```yaml
85+
Type: String
86+
Parameter Sets: ResourceId
87+
Aliases: Id
88+
89+
Required: True
90+
Position: Named
91+
Default value: None
92+
Accept pipeline input: True (ByPropertyName)
93+
Accept wildcard characters: False
94+
```
95+
96+
### -Status
97+
The parameters of disk migration job status.
98+
99+
```yaml
100+
Type: String
101+
Parameter Sets: List
102+
Aliases:
103+
104+
Required: False
105+
Position: Named
106+
Default value: None
107+
Accept pipeline input: False
108+
Accept wildcard characters: False
109+
```
110+
111+
### CommonParameters
112+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
113+
114+
## INPUTS
115+
116+
## OUTPUTS
117+
118+
### Microsoft.AzureStack.Management.Compute.Admin.Models.DiskMigrationJob
119+
120+
## NOTES
121+
122+
## RELATED LINKS

0 commit comments

Comments
 (0)