Skip to content
Closed
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/compute-limit/guest-subscription/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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
compute-limit guest-subscription add --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/guest-subscription/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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 guest subscriptions for the subscription
```bash
compute-limit guest-subscription list --location eastus
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/guest-subscription/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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
compute-limit guest-subscription remove --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/guest-subscription/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit guest-subscription show_

Get the properties of a guest 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
compute-limit guest-subscription show --location eastus --guest-subscription-id 11111111-1111-1111-1111-111111111111
```
17 changes: 17 additions & 0 deletions Commands/compute-limit/guest-subscription/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _compute-limit guest-subscription_

Manage Guest Subscription

## Commands

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

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

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

- [show](/Commands/compute-limit/guest-subscription/_show.md)
: Get the properties of a guest subscription.
11 changes: 11 additions & 0 deletions Commands/compute-limit/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# [Group] _compute-limit_

Manage Compute Limit

## Subgroups

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

- [shared-limit](/Commands/compute-limit/shared-limit/readme.md)
: Manage Shared Limit
16 changes: 16 additions & 0 deletions Commands/compute-limit/shared-limit/_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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
compute-limit shared-limit add --location eastus --name StandardDSv3Family
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/shared-limit/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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 for the subscription
```bash
compute-limit shared-limit list --location eastus
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/shared-limit/_remove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit 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
compute-limit shared-limit remove --location eastus --name StandardDSv3Family
```
16 changes: 16 additions & 0 deletions Commands/compute-limit/shared-limit/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _compute-limit shared-limit show_

Get the properties of 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
compute-limit shared-limit show --location eastus --name StandardDSv3Family
```
17 changes: 17 additions & 0 deletions Commands/compute-limit/shared-limit/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Group] _compute-limit shared-limit_

Manage Shared Limit

## Commands

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

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

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

- [show](/Commands/compute-limit/shared-limit/_show.md)
: Get the properties of 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 @@ -86,6 +86,9 @@
- [compute-fleet](/Commands/compute-fleet/readme.md)
: Manage for Azure Compute Fleet

- [compute-limit](/Commands/compute-limit/readme.md)
: Manage Compute Limit

- [compute-recommender](/Commands/compute-recommender/readme.md)
: Manage sku/zone/region recommender info for compute resources

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": "compute-limit 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="compute-limit 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