Share via


Set-AzsNetworkQuota

Create or update a quota.

Syntax

UpdateExpanded (Default)

Set-AzsNetworkQuota
    -Name <String>
    [-Location <String>]
    [-SubscriptionId <String>]
    [-MaxLoadBalancersPerSubscription <Int64>]
    [-MaxNicsPerSubscription <Int64>]
    [-MaxPublicIpsPerSubscription <Int64>]
    [-MaxSecurityGroupsPerSubscription <Int64>]
    [-MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64>]
    [-MaxVirtualNetworkGatewaysPerSubscription <Int64>]
    [-MaxVnetsPerSubscription <Int64>]
    [-Tag <Hashtable>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Update

Set-AzsNetworkQuota
    -Name <String>
    -Quota
    [-Location <String>]
    [-SubscriptionId <String>]
    [-DefaultProfile <PSObject>]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Description

Create or update a quota.

Examples

-------------------------- EXAMPLE 1 --------------------------

Set-AzsNetworkQuota -Name NetworkQuota1 -MaxVnetsPerSubscription 20

Update a network quota by name.

-------------------------- EXAMPLE 2 --------------------------

Set-AzsNetworkQuota -Name NetworkQuota1 -MaxPublicIpsPerSubscription 75 -MaxNicsPerSubscription 100

Update a network quota by name.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:System.Management.Automation.PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Location

Location of the resource.

Parameter properties

Type:System.String
Default value:(Get-AzLocation)[0].Name
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxLoadBalancersPerSubscription

Maximum number of load balancers a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxNicsPerSubscription

Maximum number of NICs a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxPublicIpsPerSubscription

Maximum number of public IP addresses a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxSecurityGroupsPerSubscription

Maximum number of security groups a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxVirtualNetworkGatewayConnectionsPerSubscription

Maximum number of virtual network gateway Connections a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxVirtualNetworkGatewaysPerSubscription

Maximum number of virtual network gateways a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MaxVnetsPerSubscription

Maximum number of virtual networks a tenant subscription can provision.

Parameter properties

Type:System.Int64
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the resource.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Quota

Network quota resource. To construct, see NOTES section for QUOTA properties and create a hash table.

Parameter properties

Type:Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Update
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Parameter properties

Type:System.String
Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Tag

List of key value pairs.

Parameter properties

Type:System.Collections.Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

UpdateExpanded
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota

Outputs

Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota

Notes

COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

QUOTA <IQuota>: Network quota resource.

  • [Tag \<IResourceTags>]: List of key value pairs.
    • [(Any) <String>]: This indicates any property can be added to this object.
  • [MaxLoadBalancersPerSubscription <Int64?>]: Maximum number of load balancers a tenant subscription can provision.
  • [MaxNicsPerSubscription <Int64?>]: Maximum number of NICs a tenant subscription can provision.
  • [MaxPublicIpsPerSubscription <Int64?>]: Maximum number of public IP addresses a tenant subscription can provision.
  • [MaxSecurityGroupsPerSubscription <Int64?>]: Maximum number of security groups a tenant subscription can provision.
  • [MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64?>]: Maximum number of virtual network gateway Connections a tenant subscription can provision.
  • [MaxVirtualNetworkGatewaysPerSubscription <Int64?>]: Maximum number of virtual network gateways a tenant subscription can provision.
  • [MaxVnetsPerSubscription <Int64?>]: Maximum number of virtual networks a tenant subscription can provision.