Skip to content
Open
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
16 changes: 16 additions & 0 deletions Commands/computelimit/guest-subscription/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit guest-subscription add_

Add a subscription as a guest to consume the compute limits shared by the host subscription.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L2d1ZXN0c3Vic2NyaXB0aW9ucy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions/{} 2025-08-15 -->

#### examples

- Add a guest subscription
```bash
computelimit guest-subscription add --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
Copy link

@danielli90 danielli90 Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"computelimit" should be replaced with "compute-limit" ((kebab-case)). Right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually both are accepted. This files shows all the commands that are there, https://github.com/parthshah2305/aaz/blob/6995fad7672a090a2be998932eb2a2930156b25f/Commands/readme.md

Image

Do we have preference for kebab-case? I aligned it with the resource provider name ComputeLimit for simplicity.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed -

Image

```
16 changes: 16 additions & 0 deletions Commands/computelimit/guest-subscription/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit guest-subscription list_

List all guest subscriptions added to the host subscription in a location.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L2d1ZXN0c3Vic2NyaXB0aW9ucw==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions 2025-08-15 -->

#### examples

- List all guest subscriptions
```bash
computelimit guest-subscription list --location eastus
```
16 changes: 16 additions & 0 deletions Commands/computelimit/guest-subscription/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit guest-subscription remove_

Remove a subscription as a guest to stop consuming the compute limits shared by the host subscription.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L2d1ZXN0c3Vic2NyaXB0aW9ucy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions/{} 2025-08-15 -->

#### examples

- Remove a guest subscription
```bash
computelimit guest-subscription remove --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
```
16 changes: 16 additions & 0 deletions Commands/computelimit/guest-subscription/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit guest-subscription show_

Get a guest subscription added to the host subscription

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L2d1ZXN0c3Vic2NyaXB0aW9ucy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions/{} 2025-08-15 -->

#### examples

- Get a guest subscription
```bash
computelimit guest-subscription show --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
```
17 changes: 17 additions & 0 deletions Commands/computelimit/guest-subscription/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _computelimit guest-subscription_

Manage Guest Subscription

## Commands

- [add](/Commands/computelimit/guest-subscription/_add.md)
: Add a subscription as a guest to consume the compute limits shared by the host subscription.

- [list](/Commands/computelimit/guest-subscription/_list.md)
: List all guest subscriptions added to the host subscription in a location.

- [remove](/Commands/computelimit/guest-subscription/_remove.md)
: Remove a subscription as a guest to stop consuming the compute limits shared by the host subscription.

- [show](/Commands/computelimit/guest-subscription/_show.md)
: Get a guest subscription added to the host subscription
11 changes: 11 additions & 0 deletions Commands/computelimit/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _computelimit_

Manage compute shared limit resources

## Subgroups

- [guest-subscription](/Commands/computelimit/guest-subscription/readme.md)
: Manage Guest Subscription

- [shared-limit](/Commands/computelimit/shared-limit/readme.md)
: Manage Shared Limit
16 changes: 16 additions & 0 deletions Commands/computelimit/shared-limit/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit shared-limit add_

Enable a compute limit to be shared by the host subscription with its guest subscriptions.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L3NoYXJlZGxpbWl0cy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/sharedlimits/{} 2025-08-15 -->

#### examples

- Enable a shared limit
```bash
computelimit shared-limit add --location eastus --name StandardDSv3Family
```
16 changes: 16 additions & 0 deletions Commands/computelimit/shared-limit/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit shared-limit list_

List all compute limits shared by the host subscription with its guest subscriptions.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L3NoYXJlZGxpbWl0cw==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/sharedlimits 2025-08-15 -->

#### examples

- List all shared limits
```bash
computelimit shared-limit list --location eastus
```
16 changes: 16 additions & 0 deletions Commands/computelimit/shared-limit/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit shared-limit remove_

Disable sharing of a compute limit by the host subscription with its guest subscriptions.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L3NoYXJlZGxpbWl0cy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/sharedlimits/{} 2025-08-15 -->

#### examples

- Disable a shared limit
```bash
computelimit shared-limit remove --location eastus --name StandardDSv3Family
```
16 changes: 16 additions & 0 deletions Commands/computelimit/shared-limit/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _computelimit shared-limit show_

Get a compute limit shared by the host subscription with its guest subscriptions.

## Versions

### [2025-08-15](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlbGltaXQvbG9jYXRpb25zL3t9L3NoYXJlZGxpbWl0cy97fQ==/2025-08-15.xml) **Preview**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.computelimit/locations/{}/sharedlimits/{} 2025-08-15 -->

#### examples

- Get a shared limit
```bash
computelimit shared-limit show --location eastus --name StandardDSv3Family
```
17 changes: 17 additions & 0 deletions Commands/computelimit/shared-limit/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _computelimit shared-limit_

Manage Shared Limit

## Commands

- [add](/Commands/computelimit/shared-limit/_add.md)
: Enable a compute limit to be shared by the host subscription with its guest subscriptions.

- [list](/Commands/computelimit/shared-limit/_list.md)
: List all compute limits shared by the host subscription with its guest subscriptions.

- [remove](/Commands/computelimit/shared-limit/_remove.md)
: Disable sharing of a compute limit by the host subscription with its guest subscriptions.

- [show](/Commands/computelimit/shared-limit/_show.md)
: Get a compute limit shared by the host subscription with its guest subscriptions.
3 changes: 3 additions & 0 deletions Commands/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
- [compute-recommender](/Commands/compute-recommender/readme.md)
: Manage sku/zone/region recommender info for compute resources

- [computelimit](/Commands/computelimit/readme.md)
: Manage compute shared limit resources

- [computeschedule](/Commands/computeschedule/readme.md)
: Computeschedule batch virtual machine operations

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions", "version": "2025-08-15", "swagger": "mgmt-plane/computelimit/ResourceProviders/Microsoft.ComputeLimit/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVMaW1pdC9sb2NhdGlvbnMve2xvY2F0aW9ufS9ndWVzdFN1YnNjcmlwdGlvbnM=/V/MjAyNS0wOC0xNQ=="}], "commandGroups": [{"name": "computelimit guest-subscription", "commands": [{"name": "list", "version": "2025-08-15", "resources": [{"id": "/subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions", "version": "2025-08-15", "swagger": "mgmt-plane/computelimit/ResourceProviders/Microsoft.ComputeLimit/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVMaW1pdC9sb2NhdGlvbnMve2xvY2F0aW9ufS9ndWVzdFN1YnNjcmlwdGlvbnM=/V/MjAyNS0wOC0xNQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "group": "", "idPart": "name", "help": {"short": "The Azure location name"}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "group": "", "idPart": "subscription", "help": {"short": "The host subscription id"}}]}], "operations": [{"operationId": "GuestSubscriptions_ListBySubscriptionLocationResource", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-08-15"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/providers/Microsoft.ComputeLimit/locations/{}/guestSubscriptions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions" version="2025-08-15" swagger="mgmt-plane/computelimit/ResourceProviders/Microsoft.ComputeLimit/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVMaW1pdC9sb2NhdGlvbnMve2xvY2F0aW9ufS9ndWVzdFN1YnNjcmlwdGlvbnM=/V/MjAyNS0wOC0xNQ=="/>
<commandGroup name="computelimit guest-subscription">
<command name="list" version="2025-08-15" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.computelimit/locations/{}/guestsubscriptions" version="2025-08-15" swagger="mgmt-plane/computelimit/ResourceProviders/Microsoft.ComputeLimit/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGVMaW1pdC9sb2NhdGlvbnMve2xvY2F0aW9ufS9ndWVzdFN1YnNjcmlwdGlvbnM=/V/MjAyNS0wOC0xNQ=="/>
<argGroup name="">
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True" group="" idPart="name">
<help short="The Azure location name"/>
</arg>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" group="" idPart="subscription">
<help short="The host subscription id"/>
</arg>
</argGroup>
<operation operationId="GuestSubscriptions_ListBySubscriptionLocationResource">
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.ComputeLimit/locations/{location}/guestSubscriptions">
<request method="get">
<path>
<param type="string" name="location" arg="$Path.location" required="True">
<format minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2025-08-15&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value" required="True">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/providers/Microsoft.ComputeLimit/locations/{}/guestSubscriptions/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" clientFlatten="True">
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Succeeded&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>
Loading