Skip to content

Commit 9b8a674

Browse files
authored
Merge pull request Azure#9 from josya/dev
Azs.Network.Admin module changes
2 parents ad7df08 + 1faff5b commit 9b8a674

18 files changed

+1411
-97
lines changed
Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default Get
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Get-AzsLoadBalancer
44
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
5+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/aps-sql-lb
6+
Location :
7+
Name : aps-sql-lb
8+
ProvisioningState : Succeeded
9+
PublicIPAddress : {}
10+
SubscriptionId : 3ff3b1de-e7f5-43ad-b057-ace4767e7d01
11+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
12+
TenantResourceUri : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/aps-sql-lb
13+
Type : Microsoft.Network.Admin/adminLoadBalancers
914
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/FrontEndServersLoadBalanc
16+
er
17+
Location :
18+
Name : FrontEndServersLoadBalancer
19+
ProvisioningState : Succeeded
20+
PublicIPAddress : {100.81.128.40}
21+
SubscriptionId : 3ff3b1de-e7f5-43ad-b057-ace4767e7d01
22+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
23+
TenantResourceUri : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/resourceGroups/AppServiceLH01/providers/Microsoft.Network/loadBalancers/FrontEndServersLoadBalanc
24+
er
25+
Type : Microsoft.Network.Admin/adminLoadBalancers
1526
```
1627

17-
{{ Add description here }}
18-
28+
Returns all of the virtual networks.
Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,44 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default Get
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Get-AzsNetworkAdminOverview
44
5-
{{ Add output here }}
5+
BackendIPUsageInUseResourceCount : 40
6+
BackendIPUsageTotalResourceCount : 282
7+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/adminOverview/
8+
LoadBalancerMuxHealthErrorResourceCount : 0
9+
LoadBalancerMuxHealthHealthyResourceCount : 2
10+
LoadBalancerMuxHealthTotalResourceCount : 2
11+
LoadBalancerMuxHealthUnknownCount : 0
12+
LoadBalancerMuxHealthWarningResourceCount : 0
13+
Location :
14+
MacAddressUsageInUseResourceCount : 95
15+
MacAddressUsageTotalResourceCount : 4063232
16+
Name :
17+
ProvisioningState : Succeeded
18+
PublicIPAddressUsageInUseResourceCount : 65
19+
PublicIPAddressUsageTotalResourceCount : 1023
20+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
21+
Type : Microsoft.Network.Admin/adminOverview
22+
VirtualGatewayHealthErrorResourceCount : 0
23+
VirtualGatewayHealthHealthyResourceCount : 2
24+
VirtualGatewayHealthTotalResourceCount : 3
25+
VirtualGatewayHealthUnknownCount : 1
26+
VirtualGatewayHealthWarningResourceCount : 0
27+
VirtualNetworkHealthErrorResourceCount : 0
28+
VirtualNetworkHealthHealthyResourceCount : 0
29+
VirtualNetworkHealthTotalResourceCount : 31
30+
VirtualNetworkHealthUnknownCount : 31
31+
VirtualNetworkHealthWarningResourceCount : 0
632
```
733

8-
{{ Add description here }}
34+
Returns an overview of Network Admin.
935

10-
### Example 2: {{ Add title here }}
36+
### Example 2: Get a specific value
1137
```powershell
12-
PS C:\> {{ Add code here }}
38+
PS C:\> (Get-AzsNetworkAdminOverview).BackendIPUsageTotalResourceCount
1339
14-
{{ Add output here }}
40+
282
1541
```
1642

17-
{{ Add description here }}
43+
Returns the total resource count of the backend IPs.
1844

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,61 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Get by location
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Get-AzsNetworkQuota -Location northwest
44
5-
{{ Add output here }}
5+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Def
6+
ault Quota
7+
Location : northwest
8+
MaxLoadBalancersPerSubscription : 50
9+
MaxNicsPerSubscription : 100
10+
MaxPublicIpsPerSubscription : 50
11+
MaxSecurityGroupsPerSubscription : 50
12+
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
13+
MaxVirtualNetworkGatewaysPerSubscription : 1
14+
MaxVnetsPerSubscription : 50
15+
MigrationPhase : None
16+
Name : northwest/Default Quota
17+
ProvisioningState : Succeeded
18+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
19+
Type : Microsoft.Network.Admin/quotas
20+
21+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Vaa
22+
SSDKTestNetworkQuota
23+
Location : northwest
24+
MaxLoadBalancersPerSubscription : 50
25+
MaxNicsPerSubscription : 100
26+
MaxPublicIpsPerSubscription : 50
27+
MaxSecurityGroupsPerSubscription : 50
28+
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
29+
MaxVirtualNetworkGatewaysPerSubscription : 1
30+
MaxVnetsPerSubscription : 50
31+
MigrationPhase : None
32+
Name : northwest/VaaSSDKTestNetworkQuota
33+
ProvisioningState : Succeeded
34+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
35+
Type : Microsoft.Network.Admin/quotas
636
```
737

8-
{{ Add description here }}
38+
Returns all of the network quotas in northwest.
939

10-
### Example 2: {{ Add title here }}
40+
### Example 2: Get by location and name
1141
```powershell
12-
PS C:\> {{ Add code here }}
42+
PS C:\> Get-AzsNetworkQuota -Location northwest -Name VaaSSDKTestNetworkQuota
1343
14-
{{ Add output here }}
44+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Vaa
45+
SSDKTestNetworkQuota
46+
Location : northwest
47+
MaxLoadBalancersPerSubscription : 50
48+
MaxNicsPerSubscription : 100
49+
MaxPublicIpsPerSubscription : 50
50+
MaxSecurityGroupsPerSubscription : 50
51+
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
52+
MaxVirtualNetworkGatewaysPerSubscription : 1
53+
MaxVnetsPerSubscription : 50
54+
MigrationPhase : None
55+
Name : northwest/VaaSSDKTestNetworkQuota
56+
ProvisioningState : Succeeded
57+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
58+
Type : Microsoft.Network.Admin/quotas
1559
```
1660

17-
{{ Add description here }}
18-
61+
Returns network quotas in the northwest that are named VaaSSDKTestNetworkQuota.
Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,61 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default Get
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Get-AzsNetworkQuota -Location northwest
44
5-
{{ Add output here }}
5+
AllocationMethod : Dynamic
6+
IPAddress : 100.81.128.46
7+
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
8+
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
9+
Location :
10+
Name : sqlvmpubip
11+
ProvisioningState : Succeeded
12+
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
13+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
14+
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
15+
Type : Microsoft.Network.Admin/adminPublicIPAddresses
16+
17+
AllocationMethod : Dynamic
18+
IPAddress :
19+
IPPool :
20+
Id : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/cloudinittest1/providers/Microsoft.Network/publicIPAddresses/cloudinittest-ip
21+
Location :
22+
Name : cloudinittest-ip
23+
ProvisioningState : Succeeded
24+
SubscriptionId : 26f17619-330c-4db7-8699-9b012e94cb6d
25+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
26+
TenantResourceUri : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/cloudinittest1/providers/Microsoft.Network/publicIPAddresses/cloudinittest-ip
27+
Type : Microsoft.Network.Admin/adminPublicIPAddresses
28+
29+
AllocationMethod : Static
30+
IPAddress : 100.81.128.48
31+
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
32+
Id : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/kub/providers/Microsoft.Network/publicIPAddresses/vmd-publicIPtf7yd2q2ruluu
33+
Location :
34+
Name : vmd-publicIPtf7yd2q2ruluu
35+
ProvisioningState : Succeeded
36+
SubscriptionId : 26f17619-330c-4db7-8699-9b012e94cb6d
37+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
38+
TenantResourceUri : /subscriptions/26f17619-330c-4db7-8699-9b012e94cb6d/resourceGroups/kub/providers/Microsoft.Network/publicIPAddresses/vmd-publicIPtf7yd2q2ruluu
39+
Type : Microsoft.Network.Admin/adminPublicIPAddresses
640
```
741

8-
{{ Add description here }}
42+
Returns all of the public IP addresses.
943

10-
### Example 2: {{ Add title here }}
44+
### Example 2: Get by filtering
1145
```powershell
12-
PS C:\> {{ Add code here }}
46+
PS C:\> Get-AzsPublicIPAddress -Filter "Name eq 'sqlvmpubip'"
1347
14-
{{ Add output here }}
48+
AllocationMethod : Dynamic
49+
IPAddress : 100.81.128.46
50+
IPPool : 731fb401-ff66-4626-95f4-bd5d1e812c1c
51+
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
52+
Location :
53+
Name : sqlvmpubip
54+
ProvisioningState : Succeeded
55+
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
56+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
57+
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/publicIPAddresses/sqlvmpubip
58+
Type : Microsoft.Network.Admin/adminPublicIPAddresses
1559
```
1660

17-
{{ Add description here }}
18-
61+
Returns public IP addresses that are named sqlvmpubip.
Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,58 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default Get
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Get-AzsVirtualNetwork
44
5-
{{ Add output here }}
5+
ConfigurationStateHostError : {}
6+
ConfigurationStateLastUpdatedTime : 2/10/2020 11:44:06 PM
7+
ConfigurationStateStatus : Success
8+
ConfigurationStateVirtualNetworkInterfaceError : {}
9+
Id : /subscriptions/074e4440-77f1-422a-8622-0d146946698c/resourceGroups/vaasrg468c/providers/Microsoft.Network/virtualNetwork
10+
s/vnetc4b363rprjk3q
11+
Location :
12+
Name : vnetc4b363rprjk3q
13+
ProvisioningState : Succeeded
14+
SubscriptionId : 074e4440-77f1-422a-8622-0d146946698c
15+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
16+
TenantResourceUri : /subscriptions/074e4440-77f1-422a-8622-0d146946698c/resourceGroups/vaasrg468c/providers/Microsoft.Network/virtualNetwork
17+
s/vnetc4b363rprjk3q
18+
Type : Microsoft.Network.Admin/adminVirtualNetworks
19+
20+
ConfigurationStateHostError : {}
21+
ConfigurationStateLastUpdatedTime : 2/10/2020 11:44:07 PM
22+
ConfigurationStateStatus : Success
23+
ConfigurationStateVirtualNetworkInterfaceError : {}
24+
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
25+
irtualNetworks/4wxzf2ukegiemvnet
26+
Location :
27+
Name : 4wxzf2ukegiemvnet
28+
ProvisioningState : Succeeded
29+
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
30+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
31+
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
32+
irtualNetworks/4wxzf2ukegiemvnet
33+
Type : Microsoft.Network.Admin/adminVirtualNetworks
634
```
735

8-
{{ Add description here }}
36+
Returns all of the virtual networks.
937

10-
### Example 2: {{ Add title here }}
38+
### Example 2: Get by filtering
1139
```powershell
12-
PS C:\> {{ Add code here }}
40+
PS C:\> Get-AzsVirtualNetwork -Filter "Name eq '4wxzf2ukegiemvnet'"
1341
14-
{{ Add output here }}
42+
ConfigurationStateHostError : {}
43+
ConfigurationStateLastUpdatedTime : 2/10/2020 11:49:20 PM
44+
ConfigurationStateStatus : Success
45+
ConfigurationStateVirtualNetworkInterfaceError : {}
46+
Id : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
47+
irtualNetworks/4wxzf2ukegiemvnet
48+
Location :
49+
Name : 4wxzf2ukegiemvnet
50+
ProvisioningState : Succeeded
51+
SubscriptionId : 0c4ca7ea-4314-4940-a5dc-29886cfe7c42
52+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
53+
TenantResourceUri : /subscriptions/0c4ca7ea-4314-4940-a5dc-29886cfe7c42/resourceGroups/microsoft.iothubstaging/providers/Microsoft.Network/v
54+
irtualNetworks/4wxzf2ukegiemvnet
55+
Type : Microsoft.Network.Admin/adminVirtualNetworks
1556
```
1657

17-
{{ Add description here }}
18-
58+
Returns virtual networks that are named 4wxzf2ukegiemvnet.
Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default New
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> New-AzsNetworkQuota -Name NetworkQuotaDefaultValues
44
5-
{{ Add output here }}
5+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Net
6+
workQuotaDefaultValues
7+
Location : northwest
8+
MaxLoadBalancersPerSubscription : 50
9+
MaxNicsPerSubscription : 100
10+
MaxPublicIpsPerSubscription : 50
11+
MaxSecurityGroupsPerSubscription : 50
12+
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
13+
MaxVirtualNetworkGatewaysPerSubscription : 1
14+
MaxVnetsPerSubscription : 50
15+
MigrationPhase : None
16+
Name : northwest/NetworkQuotaDefaultValues
17+
ProvisioningState : Succeeded
18+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
19+
Type : Microsoft.Network.Admin/quotas
620
```
721

8-
{{ Add description here }}
22+
Create a new network quota with all the default values. Returns the created object's values.
923

10-
### Example 2: {{ Add title here }}
24+
### Example 2: Create new Quota with parameters
1125
```powershell
12-
PS C:\> {{ Add code here }}
26+
PS C:\> New-AzsNetworkQuota -Name NetworkQuota1 -MaxNicsPerSubscription 150 -MaxPublicIpsPerSubscription 150
1327
14-
{{ Add output here }}
28+
Id : /subscriptions/3ff3b1de-e7f5-43ad-b057-ace4767e7d01/providers/Microsoft.Network.Admin/locations/northwest/quotas/Net
29+
workQuota1
30+
Location : northwest
31+
MaxLoadBalancersPerSubscription : 50
32+
MaxNicsPerSubscription : 150
33+
MaxPublicIpsPerSubscription : 150
34+
MaxSecurityGroupsPerSubscription : 50
35+
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
36+
MaxVirtualNetworkGatewaysPerSubscription : 1
37+
MaxVnetsPerSubscription : 50
38+
MigrationPhase : None
39+
Name : northwest/NetworkQuota1
40+
ProvisioningState : Succeeded
41+
Tag : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
42+
Type : Microsoft.Network.Admin/quotas
1543
```
1644

17-
{{ Add description here }}
18-
45+
Create a new network quota with non default values for quota.
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Default Delete
22
```powershell
3-
PS C:\> {{ Add code here }}
3+
PS C:\> Remove-AzsNetworkQuota -Name NetworkQuota1
4+
45
5-
{{ Add output here }}
66
```
77

8-
{{ Add description here }}
8+
Remove a network quota by name.
99

10-
### Example 2: {{ Add title here }}
10+
### Example 2: Create new Quota with parameters
1111
```powershell
12-
PS C:\> {{ Add code here }}
12+
PS C:\> Get-AzsNetworkQuota -Name NetworkQuota1 | Remove-AzsNetworkQuota
1313
14-
{{ Add output here }}
15-
```
1614
17-
{{ Add description here }}
15+
```
1816

17+
Remove a network quota using a pipe.

0 commit comments

Comments
 (0)