Compartilhar via


Set-AzsNetworkQuota

Create or update a quota.

Syntax

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>]
Set-AzsNetworkQuota
   -Name <String>
   -Quota \<IQuota>
   [-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.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:System.Management.Automation.PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Location of the resource.

Type:System.String
Position:Named
Default value:(Get-AzLocation)[0].Name
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxLoadBalancersPerSubscription

Maximum number of load balancers a tenant subscription can provision.

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxNicsPerSubscription

Maximum number of NICs a tenant subscription can provision.

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxPublicIpsPerSubscription

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

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxSecurityGroupsPerSubscription

Maximum number of security groups a tenant subscription can provision.

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxVirtualNetworkGatewayConnectionsPerSubscription

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

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxVirtualNetworkGatewaysPerSubscription

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

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-MaxVnetsPerSubscription

Maximum number of virtual networks a tenant subscription can provision.

Type:System.Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of the resource.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Quota

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

Type:Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.IQuota
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SubscriptionId

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

Type:System.String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

List of key value pairs.

Type:System.Collections.Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

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.