Skip to content

Get-AzsNetworkQuota -Name gives 404 error for the Name of the format location\quotaname #11

@TheOnlyWei

Description

@TheOnlyWei

Wrong name for Network Quota objects. E.g., when you call Get-AzsNetworkQuota, something like the following is returned:

Id                                                 : /subscriptions/42e35284-3ed7-44d1-9d2e-57fdf2de58fc/providers/Microsoft.Network.Admin/locations/local/quotas/Default 
                                                     Quota
Location                                           : local
MaxLoadBalancersPerSubscription                    : 50
MaxNicsPerSubscription                             : 100
MaxPublicIpsPerSubscription                        : 50
MaxSecurityGroupsPerSubscription                   : 50
MaxVirtualNetworkGatewayConnectionsPerSubscription : 2
MaxVirtualNetworkGatewaysPerSubscription           : 1
MaxVnetsPerSubscription                            : 50
MigrationPhase                                     : None
Name                                               : local/Default Quota
ProvisioningState                                  : Succeeded
Tag                                                : Microsoft.Azure.PowerShell.Cmdlets.NetworkAdmin.Models.Api20150615.ResourceTags
Type                                               : Microsoft.Network.Admin/quotas

Note in particular the "Name" is wrong because it includes "local/", which is not expected. If you try to get the object using that name, it will throw a 404 error because the HTTP request will interpret the slash in "local/" as the beginning of a new path segment. The correct name should be "Default Quota" in this case.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions