Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model for quota #346

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Commands/quota/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# [Command] _quota create_

Create the quota limit for the specified resource

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXMve30=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotas/{} 2023-02-01 -->

#### examples

- Create quota for network
```bash
quota create --resource-name MinPublicIpInterNetworkPrefixLength --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus --limit-object value=10 --resource-type MinPublicIpInterNetworkPrefixLength
```

- Create quota for network standardSkuPublicIpAddressesResource
```bash
quota create --resource-name StandardSkuPublicIpAddresses --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus --limit-object value=10 --resource-type PublicIpAddresses
```

- Create quota for compute
```bash
quota create --resource-name standardFSv2Family --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus --limit-object value=10 --resource-type dedicated
```

- Create quota for MachineLearningServices LowPriorityResource
```bash
quota create --resource-name TotalLowPriorityCores --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearning/Services/locations/eastus --limit-object value=10 --resource-type lowPriority
```
26 changes: 26 additions & 0 deletions Commands/quota/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Command] _quota list_

List current quota limits of all resources for the specified scope.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXM=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotas 2023-02-01 -->

#### examples

- List quota limit for compute
```bash
quota list --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus
```

- List quota limit for network
```bash
quota list --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus
```

- List quota limit machine learning service
```bash
quota list --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.MachineLearningServices/locations/eastus
```
16 changes: 16 additions & 0 deletions Commands/quota/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _quota show_

Show the quota limit of a resource.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXMve30=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotas/{} 2023-02-01 -->

#### examples

- Show quota for compute
```bash
quota show --resource-name standardNDSFamily --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus
```
21 changes: 21 additions & 0 deletions Commands/quota/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _quota update_

Update the quota limit for a specific resource

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXMve30=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotas/{} 2023-02-01 -->

#### examples

- Update quota for compute
```bash
quota update --resource-name standardFSv2Family --scope /subscriptions/00000000-0000-0000-0000-0000\00000000/providers/Microsoft.Compute/locations/eastus --limit-object value=10 --resource-type dedicated
```

- Update quota for network
```bash
quota update --resource-name MinPublicIpInterNetworkPrefixLength --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus --limit-object value=10 --resource-type MinPublicIpInterNetworkPrefixLength
```
25 changes: 25 additions & 0 deletions Commands/quota/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Group] _quota_

Manag quota for Azure resource providers.

## Subgroups

- [request](/Commands/quota/request/readme.md)
: Manage quota request details and status.

- [usage](/Commands/quota/usage/readme.md)
: Manage the current usage of a resource.

## Commands

- [create](/Commands/quota/_create.md)
: Create the quota limit for the specified resource

- [list](/Commands/quota/_list.md)
: List current quota limits of all resources for the specified scope.

- [show](/Commands/quota/_show.md)
: Show the quota limit of a resource.

- [update](/Commands/quota/_update.md)
: Update the quota limit for a specific resource
16 changes: 16 additions & 0 deletions Commands/quota/request/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _quota request list_

List the specified scope, get the current quota requests for a one year period ending at the time is made. Use the **oData** filter to select quota requests.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXJlcXVlc3Rz/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotarequests 2023-02-01 -->

#### examples

- List quota request from network
```bash
quota request list --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus --top 3
```
16 changes: 16 additions & 0 deletions Commands/quota/request/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _quota request show_

Show the quota request details and status by quota request ID for the resources of the resource provider at a specific location.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS9xdW90YXJlcXVlc3RzL3t9/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/quotarequests/{} 2023-02-01 -->

#### examples

- Show quota request for network
```bash
quota request show --scope /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus --id resourcename/subRequestId
```
11 changes: 11 additions & 0 deletions Commands/quota/request/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _quota request_

Manage quota request details and status.

## Commands

- [list](/Commands/quota/request/_list.md)
: List the specified scope, get the current quota requests for a one year period ending at the time is made. Use the **oData** filter to select quota requests.

- [show](/Commands/quota/request/_show.md)
: Show the quota request details and status by quota request ID for the resources of the resource provider at a specific location.
16 changes: 16 additions & 0 deletions Commands/quota/usage/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _quota usage list_

List current usage for all resources for the scope specified.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS91c2FnZXM=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/usages 2023-02-01 -->

#### examples

- List quota usage for network
```bash
quota usage list --scope /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/eastus
```
16 changes: 16 additions & 0 deletions Commands/quota/usage/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _quota usage show_

Show the current usage of a resource.

## Versions

### [2023-02-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5xdW90YS91c2FnZXMve30=/2023-02-01.xml) **Stable**

<!-- mgmt-plane /{scope}/providers/microsoft.quota/usages/{} 2023-02-01 -->

#### examples

- Show quota usage for network
```bash
quota usage show --scope /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Network/locations/eastus --resource-name MinPublicIpInterNetworkPrefixLength
```
11 changes: 11 additions & 0 deletions Commands/quota/usage/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _quota usage_

Manage the current usage of a resource.

## Commands

- [list](/Commands/quota/usage/_list.md)
: List current usage for all resources for the scope specified.

- [show](/Commands/quota/usage/_show.md)
: Show the current usage of a resource.
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@
- [qumulo](/Commands/qumulo/readme.md)
: Manage qumulo

- [quota](/Commands/quota/readme.md)
: Manag quota for Azure resource providers.

- [redisenterprise](/Commands/redisenterprise/readme.md)
: Manage the redisenterprise cache

Expand Down
Loading