Skip to content

Commit 91d358e

Browse files
Added output type. Filled and regenerated help
1 parent 3e470a3 commit 91d358e

File tree

6 files changed

+32
-10
lines changed

6 files changed

+32
-10
lines changed

src/ResourceManager/Network/Commands.Network/Usage/GetAzureNetworkUsageCommand.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232

3333
namespace Microsoft.Azure.Commands.Network.Automation
3434
{
35-
[Cmdlet(VerbsCommon.Get, "AzureRmNetworkUsage")]
35+
[Cmdlet(VerbsCommon.Get, "AzureRmNetworkUsage"), OutputType(typeof(PSUsage))]
3636
public partial class GetAzureRmNetworkUsage : NetworkBaseCmdlet
3737
{
3838
[Parameter(
3939
Mandatory = true,
40-
ValueFromPipelineByPropertyName = true)]
40+
ValueFromPipelineByPropertyName = true,
41+
HelpMessage = "Location.")]
4142
[ValidateNotNullOrEmpty]
4243
public string Location { get; set; }
4344

src/ResourceManager/Network/Commands.Network/help/Add-AzureRmRouteFilterRuleConfig.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ The Add-AzureRmRouteFilterRuleConfig cmdlet adds a route filter rule to an Azure
3131

3232

3333

34+
35+
36+
37+
3438
```
3539
PS C:\>$RouteFilter = Get-AzureRmRouteFilter -ResourceGroupName "ResourceGroup11" -Name "routefilter01"
3640
PS C:\> Add-AzureRmRouteFilterRuleConfig -Name "rule13" -Access Allow -RouteFilterRuleType Community -RouteFilter $RouteFilter

src/ResourceManager/Network/Commands.Network/help/AzureRM.Network.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ Gets a network security group.
218218
### [Get-AzureRmNetworkSecurityRuleConfig](Get-AzureRmNetworkSecurityRuleConfig.md)
219219
Get a network security rule configuration for a network security group.
220220

221+
### [Get-AzureRmNetworkUsage](Get-AzureRmNetworkUsage.md)
222+
Lists network usages for a subscription
223+
221224
### [Get-AzureRmNetworkWatcher](Get-AzureRmNetworkWatcher.md)
222225
Gets the properties of a Network Watcher
223226

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmApplicationGatewayBackendHealth.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ The Get-AzureRmApplicationGatewayBackendHealth cmdlet gets application gateway b
3333

3434

3535

36+
37+
38+
39+
3640
```
3741
PS C:\>$BackendHealth = Get-AzureRmApplicationGatewayBackendHealth -Name ApplicationGateway01 -ResourceGroupName ResourceGroup01
3842
```
@@ -50,6 +54,10 @@ This command gets the backend health of application gateway named ApplicationGat
5054

5155

5256

57+
58+
59+
60+
5361
```
5462
PS C:\>$BackendHealth = Get-AzureRmApplicationGatewayBackendHealth -Name ApplicationGateway01 -ResourceGroupName ResourceGroup01 -ExpandResource "backendhealth/applicationgatewayresource"
5563
```

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmNetworkUsage.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ schema: 2.0.0
77
# Get-AzureRmNetworkUsage
88

99
## SYNOPSIS
10-
{{Fill in the Synopsis}}
10+
Lists network usages for a subscription
1111

1212
## SYNTAX
1313

1414
```
15-
Get-AzureRmNetworkUsage -Location <String>
15+
Get-AzureRmNetworkUsage -Location <String> [<CommonParameters>]
1616
```
1717

1818
## DESCRIPTION
19-
{{Fill in the Description}}
19+
The Get-AzureRmNetworkUsage cmdlet gets limits and current usage for Network resources.
2020

2121
## EXAMPLES
2222

2323
### Example 1
2424
```
25-
PS C:\> {{ Add example code here }}
25+
PS C:\> Get-AzureRmNetworkUsage -Location westcentralus
2626
```
2727

28-
{{ Add example description here }}
28+
Gets resources usage data in westcentralus region
2929

3030
## PARAMETERS
3131

3232
### -Location
33-
{{Fill Location Description}}
33+
The location where resource usage is queried.
3434

3535
```yaml
3636
Type: String
@@ -44,14 +44,16 @@ Accept pipeline input: True (ByPropertyName)
4444
Accept wildcard characters: False
4545
```
4646
47+
### CommonParameters
48+
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).
49+
4750
## INPUTS
4851
4952
### System.String
5053
51-
5254
## OUTPUTS
5355
54-
### System.Object
56+
### Microsoft.Azure.Commands.Network.Models.PSUsage
5557
5658
## NOTES
5759

src/ResourceManager/Network/Commands.Network/help/Test-AzureRmNetworkWatcherConnectivity.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ The Test-AzureRmNetworkWatcherConnectivity cmdlet returns connectivity informati
3434
@{paragraph=PS C:\\\>}
3535

3636

37+
38+
39+
40+
3741
```
3842
Test-AzureRmNetworkWatcherConnectivity -NetworkWatcherName NetworkWatcher -ResourceGroupName NetworkWatcherRG -SourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ContosoRG/providers/Microsoft.Compute/virtualMachines/MultiTierApp0" -DestinationAddress "bing.com" -DestinationPort 80
3943

0 commit comments

Comments
 (0)