Skip to content

Commit 22ed488

Browse files
committed
Fix examples for Netowrk, Storage and Update
1 parent c4140ac commit 22ed488

38 files changed

+63
-444
lines changed

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsLoadBalancer.ps1

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,6 @@ Licensed under the MIT License. See License.txt in the project root for license
2929
3030
PS C:\>Get-AzsLoadBalancer
3131
32-
PublicIpAddresses : {}
33-
ProvisioningState :
34-
SubscriptionId :
35-
TenantResourceUri :
36-
Id : /subscriptions/a35a3f50-9f21-4f04-a978-01bc4ad7aa4f/providers/Microsoft.Network.Admin/adminLoadBala
37-
ncers/lb1
38-
Name : lb1
39-
Type : Microsoft.Network.Admin/adminLoadBalancers
40-
Location :
41-
Tags :
42-
...
43-
4432
Get a list of all load balancers.
4533
#>
4634
function Get-AzsLoadBalancer {

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsNetworkAdminOverview.ps1

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,12 @@ Licensed under the MIT License. See License.txt in the project root for license
1414
1515
PS C:\> Get-AzsNetworkAdminOverview
1616
17-
ProvisioningState : Succeeded
18-
VirtualNetworkHealth : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceHealth
19-
LoadBalancerMuxHealth : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceHealth
20-
VirtualGatewayHealth : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceHealth
21-
PublicIpAddressUsage : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceUsage
22-
BackendIpUsage : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceUsage
23-
MacAddressUsage : Microsoft.AzureStack.Management.Network.Admin.Models.AdminOverviewResourceUsage
24-
Id : /subscriptions/df5abebb-3edc-40c5-9155-b4ab239d79d3/providers/Microsoft.Network.Admin/adminOverview/
25-
Name :
26-
Type : Microsoft.Network.Admin/adminOverview
27-
Location :
28-
Tags :
29-
3017
Get network admin overview.
3118
3219
.EXAMPLE
3320
3421
PS C:\> (Get-AzsNetworkAdminOverview).PublicIpAddressUsage
3522
36-
TotalResourceCount InUseResourceCount
37-
------------------ ------------------
38-
255 31
39-
4023
Get public ip address usage.
4124
#>
4225
function Get-AzsNetworkAdminOverview {

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsNetworkQuota.ps1

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,17 @@ Licensed under the MIT License. See License.txt in the project root for license
2222
.PARAMETER ResourceId
2323
The resource id.
2424
25+
.EXAMPLE
26+
27+
PS C:\> Get-AzsNetworkQuota
28+
29+
Lists all the network quotas.
30+
2531
.EXAMPLE
2632
2733
PS C:\> Get-AzsNetworkQuota -Name NetworkQuota1
2834
29-
MaxPublicIpsPerSubscription : 50
30-
MaxVnetsPerSubscription : 50
31-
MaxVirtualNetworkGatewaysPerSubscription : 1
32-
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
33-
MaxLoadBalancersPerSubscription : 50
34-
MaxNicsPerSubscription : 50
35-
MaxSecurityGroupsPerSubscription : 50
36-
MigrationPhase : None
37-
Id : /subscriptions/df5abebb-3edc-40c5-9155-b4ab239d79d3/providers/Microsoft.Network.Admin/locations/local/quotas/Networ
38-
kQuota1
39-
Name : NetworkQuota1
40-
Type : Microsoft.Network.Admin/quotas
41-
Location :
42-
Tags :
43-
44-
Get the specified network quota.
35+
Gets the specified network quota.
4536
#>
4637
function Get-AzsNetworkQuota {
4738
[OutputType([Microsoft.AzureStack.Management.Network.Admin.Models.Quota])]

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsPublicIPAddress.ps1

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ Licensed under the MIT License. See License.txt in the project root for license
2929
3030
PS C:\> Get-AzsPublicIPAddress
3131
32-
IpAddress :
33-
IpPool :
34-
AllocationMethod : Dynamic
35-
ProvisioningState :
36-
SubscriptionId :
37-
TenantResourceUri :
38-
Id : /subscriptions/a35a3f50-9f21-4f04-a978-01bc4ad7aa4f/providers/Microsoft.Network.Admin/adminPublicIPAddresses/publicIp1
39-
Name : publicIp1
40-
Type : Microsoft.Network.Admin/adminPublicIPAddresses
41-
Location :
42-
Tags :
43-
...
44-
4532
Get the list of public ip addresses, either allocated or not allocated.
4633
4734
#>

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsVirtualNetwork.ps1

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ Licensed under the MIT License. See License.txt in the project root for license
2929
3030
PS C:\> Get-AzsVirtualNetwork
3131
32-
ConfigurationState : Microsoft.AzureStack.Management.Network.Admin.Models.VirtualNetworkConfigurationState
33-
ProvisioningState :
34-
SubscriptionId :
35-
TenantResourceUri :
36-
Id : /subscriptions/a35a3f50-9f21-4f04-a978-01bc4ad7aa4f/providers/Microsoft.Network.Admin/adminVirtualNetworks/vnet1
37-
Name : vnet1
38-
Type : Microsoft.Network.Admin/adminVirtualNetworks
39-
Location :
40-
Tags :
41-
...
42-
4332
Return a list of virtual networks for the Azure Stack stamp.
4433
4534
#>

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/New-AzsNetworkQuota.ps1

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,16 @@ Licensed under the MIT License. See License.txt in the project root for license
3737
.PARAMETER MaxLoadBalancersPerSubscription
3838
The maximum number of load balancers allowed per subscription.
3939
40+
.EXAMPLE
41+
42+
PS C:\> New-AzsNetworkQuota -Name NetworkQuotaDefaultValues
43+
44+
Create a new network quota with all the default values.
4045
.EXAMPLE
4146
4247
PS C:\> New-AzsNetworkQuota -Name NetworkQuota1 -MaxNicsPerSubscription 150 -MaxPublicIpsPerSubscription 150
4348
44-
MaxPublicIpsPerSubscription : 150
45-
MaxVnetsPerSubscription : 150
46-
MaxVirtualNetworkGatewaysPerSubscription : 1
47-
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
48-
MaxLoadBalancersPerSubscription : 50
49-
MaxNicsPerSubscription : 50
50-
MaxSecurityGroupsPerSubscription : 50
51-
MigrationPhase : None
52-
Id : /subscriptions/df5abebb-3edc-40c5-9155-b4ab239d79d3/providers/Microsoft.Network.Admin/locations/local/quotas/Networ
53-
kQuota1
54-
Name : NetworkQuota1
55-
Type : Microsoft.Network.Admin/quotas
56-
Location :
57-
Tags :
58-
59-
Create a new network quota.
49+
Create a new network quota with non default values for quota.
6050
#>
6151
function New-AzsNetworkQuota {
6252
[OutputType([Microsoft.AzureStack.Management.Network.Admin.Models.Quota])]

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Remove-AzsNetworkQuota.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ Licensed under the MIT License. See License.txt in the project root for license
1919
.PARAMETER ResourceId
2020
The resource id.
2121
22+
.EXAMPLE
23+
24+
PS C:\> Remove-AzsNetworkQuota -Name NetworkQuota1
25+
26+
Remove a network quota by name.
27+
2228
.EXAMPLE
2329
2430
PS C:\> Get-AzsNetworkQuota -Name NetworkQuota1 | Remove-AzsNetworkQuota

src/StackAdmin/Azs.Network.Admin/Module/Azs.Network.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Set-AzsNetworkQuota.ps1

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -47,42 +47,12 @@ Licensed under the MIT License. See License.txt in the project root for license
4747
4848
PS C:\> Set-AzsNetworkQuota -Name NetworkQuota1 -MaxVnetsPerSubscription 20
4949
50-
MaxPublicIpsPerSubscription : 150
51-
MaxVnetsPerSubscription : 20
52-
MaxVirtualNetworkGatewaysPerSubscription : 1
53-
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
54-
MaxLoadBalancersPerSubscription : 50
55-
MaxNicsPerSubscription : 50
56-
MaxSecurityGroupsPerSubscription : 50
57-
MigrationPhase : None
58-
Id : /subscriptions/df5abebb-3edc-40c5-9155-b4ab239d79d3/providers/Microsoft.Network.Admin/locations/local/quotas/Networ
59-
kQuota1
60-
Name : NetworkQuota1
61-
Type : Microsoft.Network.Admin/quotas
62-
Location :
63-
Tags :
64-
6550
Update a network quota by name.
6651
6752
.EXAMPLE
6853
6954
PS C:\> Set-AzsNetworkQuota -Name NetworkQuota1 -MaxPublicIpsPerSubscription 75 -MaxNicsPerSubscription 100
7055
71-
MaxPublicIpsPerSubscription : 75
72-
MaxVnetsPerSubscription : 20
73-
MaxVirtualNetworkGatewaysPerSubscription : 1
74-
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
75-
MaxLoadBalancersPerSubscription : 50
76-
MaxNicsPerSubscription : 100
77-
MaxSecurityGroupsPerSubscription : 50
78-
MigrationPhase : None
79-
Id : /subscriptions/df5abebb-3edc-40c5-9155-b4ab239d79d3/providers/Microsoft.Network.Admin/locations/local/quotas/Networ
80-
kQuota1
81-
Name : NetworkQuota1
82-
Type : Microsoft.Network.Admin/quotas
83-
Location :
84-
Tags :
85-
8656
Update a network quota by name.
8757
#>
8858
function Set-AzsNetworkQuota {

src/StackAdmin/Azs.Storage.Admin/Module/Azs.Storage.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsBlobService.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ Licensed under the MIT License. See License.txt in the project root for license
1818
1919
.EXAMPLE
2020
21-
PS C:\> Get-AzsBlobService -ResourceGroupName "system.local" -FarmName f9b8e2e2-e4b4-44e0-9d92-6a848b1a5376
22-
23-
Name Location Version HealthStatus
24-
---- -------- ------- ------------
25-
f9b8e2e2-e4b... local 1.0
21+
PS C:\> Get-AzsBlobService -FarmName f9b8e2e2-e4b4-44e0-9d92-6a848b1a5376
2622
2723
Get the blob service.
2824

src/StackAdmin/Azs.Storage.Admin/Module/Azs.Storage.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Get-AzsBlobServiceMetric.ps1

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,7 @@ Licensed under the MIT License. See License.txt in the project root for license
2424
2525
.EXAMPLE
2626
27-
PS C:\> Get-AzsBlobServiceMetric -ResourceGroupName "system.local" -FarmName f9b8e2e2-e4b4-44e0-9d92-6a848b1a5376
28-
29-
TimeGrain MetricUnit StartTime EndTime
30-
--------- ---------- --------- -------
31-
P1D CountPerSecond 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
32-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
33-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
34-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
35-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
36-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
37-
P1D CountPerSecond 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
38-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
39-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
40-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
41-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
42-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
43-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
44-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
45-
P1D Count 2/27/2018 12:00:00 AM 3/6/2018 2:20:39 AM
27+
PS C:\> Get-AzsBlobServiceMetric -FarmName f9b8e2e2-e4b4-44e0-9d92-6a848b1a5376
4628
4729
Get a list of metrics for blob service.
4830
#>

0 commit comments

Comments
 (0)