-
Notifications
You must be signed in to change notification settings - Fork 327
adding computelimit commands #938
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "computelimit" should be replaced with "compute-limit" ((kebab-case)). Right?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Do we have preference for kebab-case? I aligned it with the resource provider name ComputeLimit for simplicity. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ``` | ||
| 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 | ||
| ``` |
| 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 | ||
| ``` |
| 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 | ||
| ``` |
| 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 |
| 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 |
| 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. | ||
parthshah2305 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## 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 | ||
| ``` | ||
| 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 | ||
| ``` |
| 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 | ||
| ``` |
| 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 | ||
| ``` |
| 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. |
| 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=""2025-08-15""/> | ||
| <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=""Canceled""/> | ||
| <item value=""Failed""/> | ||
| <item value=""Succeeded""/> | ||
| </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=""Application""/> | ||
| <item value=""Key""/> | ||
| <item value=""ManagedIdentity""/> | ||
| <item value=""User""/> | ||
| </enum> | ||
| </prop> | ||
| <prop type="dateTime" name="lastModifiedAt"> | ||
| <format protocol="iso"/> | ||
| </prop> | ||
| <prop type="string" name="lastModifiedBy"/> | ||
| <prop type="string" name="lastModifiedByType"> | ||
| <enum> | ||
| <item value=""Application""/> | ||
| <item value=""Key""/> | ||
| <item value=""ManagedIdentity""/> | ||
| <item value=""User""/> | ||
| </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> |


Uh oh!
There was an error while loading. Please reload this page.