Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
16c574a
upgraded devcontainer
RenSilvaAU Nov 11, 2025
7e360ff
updated group quota version
RenSilvaAU Nov 11, 2025
2dabe68
ran autorest for quota
RenSilvaAU Nov 11, 2025
569fde2
updated and ran quota tests - created initial group quota tests
RenSilvaAU Nov 11, 2025
ffd8044
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 11, 2025
88c3559
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 18, 2025
665b705
adding quota tests
RenSilvaAU Nov 18, 2025
1346d40
added more quota tests
RenSilvaAU Nov 18, 2025
382951e
further tests in quota
RenSilvaAU Nov 18, 2025
69412e9
quota tests passed
RenSilvaAU Nov 18, 2025
3d641a6
all quota tests passed
RenSilvaAU Nov 18, 2025
a25bae5
all quota tests passed - 2nd time
RenSilvaAU Nov 18, 2025
afc588e
updated examples
RenSilvaAU Nov 19, 2025
74b033a
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 19, 2025
4af7708
built examples quota
RenSilvaAU Nov 19, 2025
9e421f7
quota examples tested
RenSilvaAU Nov 19, 2025
ba17659
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 19, 2025
8225e7a
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 19, 2025
10c3c6a
reran all quota tests. 2 failed
RenSilvaAU Nov 19, 2025
4b3180a
Merge branch 'resilv/group-quota-sept' of https://github.com/RenSilva…
RenSilvaAU Nov 19, 2025
e866318
all tests in qutoa addressed
RenSilvaAU Nov 20, 2025
5f07bb4
addressed remaining quota tests - only one problem remains
RenSilvaAU Nov 20, 2025
201d50a
reran all quota tests - one still failing
RenSilvaAU Nov 20, 2025
46c8a90
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 25, 2025
098a7f2
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Nov 26, 2025
1b390d3
corrected devcontainer to work on arm64 computers
RenSilvaAU Nov 26, 2025
d2a8529
Update .devcontainer/post-create.sh
RenSilvaAU Nov 26, 2025
bc262d1
removed execution policy from devcontainers - not needed and crashes
RenSilvaAU Nov 26, 2025
3d7a63b
updated devcontainer
RenSilvaAU Nov 26, 2025
9e2de0c
updated quota change log
RenSilvaAU Nov 26, 2025
7112bda
added missing example for group quota usage
RenSilvaAU Nov 27, 2025
9d6641f
Remove version 0.1.4 from ChangeLog
notyashhh Nov 27, 2025
1af42ab
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Jan 20, 2026
7fa830a
reran quota tests
RenSilvaAU Jan 20, 2026
6ee8081
reworking Quota Group tests
RenSilvaAU Jan 22, 2026
d7b8b7d
reworking Quota Group tests
RenSilvaAU Jan 22, 2026
ac6b6cc
quota - renamed partial class files to avoid collisions
RenSilvaAU Jan 22, 2026
6b728c5
rebuilt quota group
RenSilvaAU Jan 22, 2026
c17e340
updated and resolved test issues for quota group
RenSilvaAU Jan 23, 2026
9b6c43b
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Jan 23, 2026
1e5b0c8
corrected incorrect samples parameters for quota module
RenSilvaAU Jan 23, 2026
a1f62cc
Merge branch 'resilv/group-quota-sept' of https://github.com/RenSilva…
RenSilvaAU Jan 23, 2026
e386a08
removed devcontainer changes to isoloate in separate change
RenSilvaAU Jan 27, 2026
293118b
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Jan 27, 2026
d38e688
addressing PR comments for Quota
RenSilvaAU Jan 27, 2026
1c7b91d
rerecorded Quota tests
RenSilvaAU Jan 27, 2026
56de1ac
updated readme for Quota, removing manual version update
RenSilvaAU Jan 27, 2026
d0094ef
temporarily removed tests recordings for quota
RenSilvaAU Jan 27, 2026
f71fb60
Merge branch 'Azure:main' into resilv/group-quota-sept
RenSilvaAU Jan 27, 2026
d6f7664
rerecorded Quota tests
RenSilvaAU Jan 27, 2026
d503667
reworked Quota tests with non-random keys
RenSilvaAU Jan 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
239 changes: 239 additions & 0 deletions generated/Quota/Quota.Autorest/exports/Get-AzQuotaGroupQuota.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@

# ----------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------

<#
.Synopsis
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.
.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.
.Example
Get-AzQuotaGroupQuota -ManagementGroupId "mgId"
.Example
Get-AzQuotaGroupQuota -ManagementGroupId "mgId" -GroupQuotaName "test2"

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IGroupQuotasEntity
.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 <IQuotaIdentity>: Identity Parameter
[AllocationId <String>]: Request Id.
[GroupQuotaName <String>]: The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
[Id <String>]: Quota request ID.
[Id1 <String>]: Resource identity path
[Location <String>]: The name of the Azure region.
[ManagementGroupId <String>]: The management group ID.
[RequestId <String>]: Request Id.
[ResourceName <String>]: Resource name for a given resource provider. For example: - SKU name for Microsoft.Compute - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
[ResourceProviderName <String>]: The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.
[Scope <String>]: The fully qualified Azure Resource manager identifier of the resource.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.

MANAGEMENTGROUPINPUTOBJECT <IQuotaIdentity>: Identity Parameter
[AllocationId <String>]: Request Id.
[GroupQuotaName <String>]: The GroupQuota name. The name should be unique for the provided context tenantId/MgId.
[Id <String>]: Quota request ID.
[Id1 <String>]: Resource identity path
[Location <String>]: The name of the Azure region.
[ManagementGroupId <String>]: The management group ID.
[RequestId <String>]: Request Id.
[ResourceName <String>]: Resource name for a given resource provider. For example: - SKU name for Microsoft.Compute - SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
[ResourceProviderName <String>]: The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.
[Scope <String>]: The fully qualified Azure Resource manager identifier of the resource.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
.Link
https://learn.microsoft.com/powershell/module/az.quota/get-azquotagroupquota
#>
function Get-AzQuotaGroupQuota {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IGroupQuotasEntity])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Path')]
[System.String]
# The management group ID.
${ManagementGroupId},

[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='GetViaIdentityManagementGroup', Mandatory)]
[Alias('GroupQuotaName')]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Path')]
[System.String]
# The GroupQuota name.
# The name should be unique for the provided context tenantId/MgId.
${Name},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaIdentity]
# Identity Parameter
${InputObject},

[Parameter(ParameterSetName='GetViaIdentityManagementGroup', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Models.IQuotaIdentity]
# Identity Parameter
${ManagementGroupInputObject},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Azure')]
[System.Management.Automation.PSObject]
# The DefaultProfile parameter is not functional.
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Wait for .NET debugger to attach
${Break},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be appended to the front of the pipeline
${HttpPipelineAppend},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[System.Uri]
# The URI for the proxy server to use
${Proxy},

[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[System.Management.Automation.PSCredential]
# Credentials for a proxy server to use for the remote call
${ProxyCredential},

[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Use the default credentials for the proxy
${ProxyUseDefaultCredentials}
)

begin {
try {
$outBuffer = $null
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName

$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }

$context = Get-AzContext
if (-not $context -and -not $testPlayback) {
throw "No Azure login detected. Please run 'Connect-AzAccount' to log in."
}

if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
}
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
if ($preTelemetryId -eq '') {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
[Microsoft.Azure.PowerShell.Cmdlets.Quota.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
} else {
$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
if ($internalCalledCmdlets -eq '') {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
} else {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
}
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
}

$mapping = @{
Get = 'Az.Quota.private\Get-AzQuotaGroupQuota_Get';
GetViaIdentity = 'Az.Quota.private\Get-AzQuotaGroupQuota_GetViaIdentity';
GetViaIdentityManagementGroup = 'Az.Quota.private\Get-AzQuotaGroupQuota_GetViaIdentityManagementGroup';
List = 'Az.Quota.private\Get-AzQuotaGroupQuota_List';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
[Microsoft.Azure.PowerShell.Cmdlets.Quota.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
if ($wrappedCmd -eq $null) {
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
}
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}

process {
try {
$steppablePipeline.Process($_)
} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}

finally {
$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
}

}
end {
try {
$steppablePipeline.End()

[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
if ($preTelemetryId -eq '') {
[Microsoft.Azure.PowerShell.Cmdlets.Quota.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
}
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId

} catch {
[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
throw
}
}
}
Loading