New-AzsNetworkQuota

Create or update a quota.

Syntax

New-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>]
New-AzsNetworkQuota
   -Name <String>
   -Quota \<IQuota>
   [-Location <String>]
   [-SubscriptionId <String>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzsNetworkQuota
   -INPUTOBJECT \<INetworkAdminIdentity>
   -Quota \<IQuota>
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzsNetworkQuota
   -INPUTOBJECT \<INetworkAdminIdentity>
   [-MaxLoadBalancersPerSubscription <Int64>]
   [-MaxNicsPerSubscription <Int64>]
   [-MaxPublicIpsPerSubscription <Int64>]
   [-MaxSecurityGroupsPerSubscription <Int64>]
   [-MaxVirtualNetworkGatewayConnectionsPerSubscription <Int64>]
   [-MaxVirtualNetworkGatewaysPerSubscription <Int64>]
   [-MaxVnetsPerSubscription <Int64>]
   [-Tag <Hashtable>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Create or update a quota.

Examples

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

New-AzsNetworkQuota -Name NetworkQuotaDefaultValues

Create a new network quota with all the default values.

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

New-AzsNetworkQuota -Name NetworkQuota1 -MaxNicsPerSubscription 150 -MaxPublicIpsPerSubscription 150

Create a new network quota with non default values for quota.

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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
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:50
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:100
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:50
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:50
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:2
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:1
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:50
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

Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.INetworkAdminIdentity

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.

INPUTOBJECT <INetworkAdminIdentity>: Identity Parameter

  • [Id <String>]: Resource identity path
  • [Location <String>]: Location of the resource.
  • [ResourceName <String>]: Name of the resource.
  • [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

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.