This directory contains the PowerShell module for the Quota service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.Quota
, see how-to.md.
# lock the commit
commit: 4442e8121686218ce2951ab4dc734e489aa5bc08
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/quota/resource-manager/Microsoft.Quota/stable/2023-02-01/quota.json
title: Quota
module-version: 0.1.0
identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true
auto-switch-view: false
inlining-threshold: 50
use-extension:
"@autorest/powershell": "4.x"
directive:
# The regex(^/(?<scope>[^/]+)/) mathch failed because the scope inlcude '/' character.
# Replace regex to fixed it.
- from: source-file-csharp
where: $
transform: $ = $.replace(/global::System.Text.RegularExpressions.Regex\(\"\^\/\(\?\<scope\>\[\^\/\]\+\)/g, 'global::System.Text.RegularExpressions.Regex("^/(?<scope>.+)');
# Remove the set Workspace cmdlet
- where:
variant: ^(Create|Update).*(?<!Expanded|JsonFilePath|JsonString)$
remove: true
- where:
verb: Set
remove: true
- where:
verb: Get
subject: RequestStatus|Usage
variant: ^GetViaIdentity$
remove: true
# Rename parameter
- where:
werb: New
parameter-name: NameValue
set:
parameter-name: Name
# Hide parameter
# future extendibility. It’s not used currently
- where:
verb: New|Update
parameter-name: AnyProperty
hide: true
- where:
werb: Get
subject: Usage
parameter-name: ResourceName
set:
parameter-name: Name
- where:
model-name: CurrentQuotaLimitBase
set:
format-table:
properties:
- Name
- NameLocalizedValue
- LimitObjectType
- Unit
- ETag
- where:
model-name: CurrentUsagesBase
set:
format-table:
properties:
- Name
- NameLocalizedValue
- UsageUsagesType
- UsageValue
- ETag
- where:
model-name: QuotaRequestDetails
set:
format-table:
properties:
- Name
- ProvisioningState
- ErrorMessage
- Code
- no-inline:
- LimitJsonObject
- model-cmdlet:
- model-name: LimitObject
cmdlet-name: New-AzQuotaLimitObject