Skip to content

Commit 039bd94

Browse files
RenSilvaAUCopilotnotyashhhisra-fel
committed
Upgrade Quota service from API version 2023-02-01 to 2025-09-01 stable (#28902)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Yash <55773468+notyashhh@users.noreply.github.com> Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com>
1 parent f6e0a67 commit 039bd94

145 files changed

Lines changed: 15912 additions & 1561 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
*.psm1 text eol=crlf
1010
*.ps1xml text eol=crlf
1111
build.proj text eol=crlf
12+
13+
# Dev container scripts run in Linux containers and require LF line endings
14+
.devcontainer/*.ps1 text eol=lf
15+
.devcontainer/*.sh text eol=lf
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Quota")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.3")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.3")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/Quota/Quota.Autorest/README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ For information on how to develop for `Az.Quota`, see [how-to.md](how-to.md).
2828
2929
``` yaml
3030
# lock the commit
31-
commit: 4442e8121686218ce2951ab4dc734e489aa5bc08
31+
commit: c5e7614651632a4ab28b4b9fc499ab9eca400b40
3232
require:
3333
- $(this-folder)/../../readme.azure.noprofile.md
3434
input-file:
35-
- $(repo)/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/quota.json
35+
- $(repo)/specification/quota/resource-manager/Microsoft.Quota/Quota/stable/2025-09-01/openapi.json
3636

3737
title: Quota
3838
module-version: 0.1.0
@@ -54,10 +54,19 @@ directive:
5454
where: $
5555
transform: $ = $.replace(/global::System.Text.RegularExpressions.Regex\(\"\^\/\(\?\<scope\>\[\^\/\]\+\)/g, 'global::System.Text.RegularExpressions.Regex("^/(?<scope>.+)');
5656

57-
# Remove the set Workspace cmdlet
57+
# Remove GroupQuotaSubscriptionRequest cmdlets - no longer needed
58+
- where:
59+
subject: GroupQuotaSubscriptionRequest
60+
remove: true
61+
62+
# Keep only useful parameter set variants (Expanded, JsonFilePath, JsonString)
63+
# But preserve all variants for subscription/allocation management operations
5864
- where:
5965
variant: ^(Create|Update).*(?<!Expanded|JsonFilePath|JsonString)$
66+
subject: ^(?!GroupQuotaSubscription$).*$
6067
remove: true
68+
69+
# Remove any remaining Set verbs (for operations that have New equivalents from POST)
6170
- where:
6271
verb: Set
6372
remove: true
@@ -70,7 +79,7 @@ directive:
7079

7180
# Rename parameter
7281
- where:
73-
werb: New
82+
verb: New|Update
7483
parameter-name: NameValue
7584
set:
7685
parameter-name: Name
@@ -82,7 +91,7 @@ directive:
8291
hide: true
8392

8493
- where:
85-
werb: Get
94+
verb: Get
8695
subject: Usage
8796
parameter-name: ResourceName
8897
set:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"resourceType": "managementGroups/groupQuotas/groupQuotaRequests",
3+
"apiVersion": "2025-09-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.quota"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzQuotaGroupQuotaLimitsRequest",
10+
"description": "Get API to check the status of a GroupQuota request by requestId.",
11+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/groupQuotaRequests/{requestId}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.quota/get-azquotagroupquotalimitsrequest"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-GroupQuotaName <String>",
20+
"-ManagementGroupId <String>",
21+
"-RequestId <String>"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Get API to check the status of a GroupQuota request by requestId.",
29+
"parameters": [
30+
{
31+
"name": "-GroupQuotaName",
32+
"value": "[Path.groupQuotaName]"
33+
},
34+
{
35+
"name": "-ManagementGroupId",
36+
"value": "[Path.managementGroupId]"
37+
},
38+
{
39+
"name": "-RequestId",
40+
"value": "[Path.requestId]"
41+
}
42+
]
43+
}
44+
]
45+
}
46+
]
47+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"resourceType": "managementGroups/groupQuotas/resourceProviders/locationSettings",
3+
"apiVersion": "2025-09-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.quota"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzQuotaGroupQuotaLocationSetting",
10+
"description": "Gets the GroupQuotas enforcement settings for the ResourceProvider/location.\nThe locations, where GroupQuota enforcement is not enabled will return Not Found.",
11+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.quota/get-azquotagroupquotalocationsetting"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-GroupQuotaName <String>",
20+
"-Location <String>",
21+
"-ManagementGroupId <String>",
22+
"-ResourceProviderName <String>"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found.",
30+
"parameters": [
31+
{
32+
"name": "-GroupQuotaName",
33+
"value": "[Path.groupQuotaName]"
34+
},
35+
{
36+
"name": "-Location",
37+
"value": "[Path.location]"
38+
},
39+
{
40+
"name": "-ManagementGroupId",
41+
"value": "[Path.managementGroupId]"
42+
},
43+
{
44+
"name": "-ResourceProviderName",
45+
"value": "[Path.resourceProviderName]"
46+
}
47+
]
48+
}
49+
]
50+
}
51+
]
52+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "managementGroups/groupQuotas/subscriptions",
3+
"apiVersion": "2025-09-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.quota"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzQuotaGroupQuotaSubscription",
10+
"description": "Returns the subscriptionIds along with its provisioning state for being associated with the GroupQuota.\nIf the subscription is not a member of GroupQuota, it will return 404, else 200.",
11+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.quota/get-azquotagroupquotasubscription"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-GroupQuotaName <String>",
20+
"-ManagementGroupId <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Returns the subscriptionIds along with its provisioning state for being associated with the GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.",
29+
"parameters": [
30+
{
31+
"name": "-GroupQuotaName",
32+
"value": "[Path.groupQuotaName]"
33+
},
34+
{
35+
"name": "-ManagementGroupId",
36+
"value": "[Path.managementGroupId]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
46+
{
47+
"name": "Remove-AzQuotaGroupQuotaSubscription",
48+
"description": "Removes the subscription from GroupQuotas.\nThe request's TenantId is validated against the subscription's TenantId.",
49+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/subscriptions/{subscriptionId}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.quota/remove-azquotagroupquotasubscription"
53+
},
54+
"parameterSets": [
55+
{
56+
"parameters": [
57+
"-GroupQuotaName <String>",
58+
"-ManagementGroupId <String>",
59+
"[-SubscriptionId <String>]"
60+
]
61+
}
62+
]
63+
},
64+
"examples": [
65+
{
66+
"description": "Removes the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.",
67+
"parameters": [
68+
{
69+
"name": "-GroupQuotaName",
70+
"value": "[Path.groupQuotaName]"
71+
},
72+
{
73+
"name": "-ManagementGroupId",
74+
"value": "[Path.managementGroupId]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
}
84+
]
85+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"resourceType": "managementGroups/groupQuotas",
3+
"apiVersion": "2025-09-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.quota"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzQuotaGroupQuota",
10+
"description": "Gets the GroupQuotas for the name passed.\nIt will return the GroupQuotas properties only.\nThe details on group quota can be access from the group quota APIs.",
11+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.quota/get-azquotagroupquota"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-ManagementGroupId <String>",
20+
"-Name <String>"
21+
]
22+
}
23+
]
24+
},
25+
"examples": [
26+
{
27+
"description": "Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs.",
28+
"parameters": [
29+
{
30+
"name": "-ManagementGroupId",
31+
"value": "[Path.managementGroupId]"
32+
},
33+
{
34+
"name": "-Name",
35+
"value": "[Path.groupQuotaName]"
36+
}
37+
]
38+
}
39+
]
40+
},
41+
{
42+
"name": "Remove-AzQuotaGroupQuota",
43+
"description": "Deletes the GroupQuotas for the name passed.\nAll the remaining shareQuota in the GroupQuotas will be lost.",
44+
"path": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}",
45+
"help": {
46+
"learnMore": {
47+
"url": "https://learn.microsoft.com/powershell/module/az.quota/remove-azquotagroupquota"
48+
},
49+
"parameterSets": [
50+
{
51+
"parameters": [
52+
"-ManagementGroupId <String>",
53+
"-Name <String>"
54+
]
55+
}
56+
]
57+
},
58+
"examples": [
59+
{
60+
"description": "Deletes the GroupQuotas for the name passed. All the remaining shareQuota in the GroupQuotas will be lost.",
61+
"parameters": [
62+
{
63+
"name": "-ManagementGroupId",
64+
"value": "[Path.managementGroupId]"
65+
},
66+
{
67+
"name": "-Name",
68+
"value": "[Path.groupQuotaName]"
69+
}
70+
]
71+
}
72+
]
73+
}
74+
]
75+
}

0 commit comments

Comments
 (0)