Skip to main content

shared_limit_caps

Creates, updates, deletes, gets or lists a shared_limit_caps resource.

Overview

Nameshared_limit_caps
TypeResource
Idazure.compute_limit.shared_limit_caps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
defaultMemberCapintegerThe default member cap value (in count units). Set to a non-negative integer to apply a cap to all member subscriptions that do not have a per-member override. Omit the property to leave no default cap in effect.
isBoundedCapbooleanControls whether the service validates the aggregate cap against the group limit for the VM family. SUM(caps) is the sum of all per-member overrides' cap values plus defaultMemberCap multiplied by the number of member subscriptions without an override. When true, the service rejects any configuration where SUM(caps) exceeds the group limit. When false, SUM(caps) is permitted to exceed the group limit. Enabling this flag is rejected if the current configuration already breaches the group limit; reduce caps first, then enable. Required.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, vm_family_name, subscription_idGets the shared limit cap configuration for a VM family, as visible to the caller's subscription.
list_by_subscription_location_resourceselectlocation, subscription_idLists all shared limit cap configurations visible to the caller's subscription.
create_or_updateinsertlocation, vm_family_name, subscription_idCreates or replaces the shared limit cap configuration for a VM family.
create_or_updatereplacelocation, vm_family_name, subscription_idCreates or replaces the shared limit cap configuration for a VM family.
deletedeletelocation, vm_family_name, subscription_idDeletes the shared limit cap configuration for a VM family. The caller's subscription is treated as the host subscription.
set_member_cap_overridesexeclocation, vm_family_name, subscription_id, memberCapOverridesReplaces the full set of per-member cap overrides for this shared limit cap. The supplied array becomes the new complete set of overrides; supplying an empty array clears all existing overrides.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationstringThe name of the Azure region. Required.
subscription_idstring
vm_family_namestringThe name of the SharedLimitCap. Required.

SELECT examples

Gets the shared limit cap configuration for a VM family, as visible to the caller's subscription.

SELECT
id,
name,
defaultMemberCap,
isBoundedCap,
provisioningState,
systemData,
type
FROM azure.compute_limit.shared_limit_caps
WHERE location = '{{ location }}' -- required
AND vm_family_name = '{{ vm_family_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or replaces the shared limit cap configuration for a VM family.

INSERT INTO azure.compute_limit.shared_limit_caps (
properties,
location,
vm_family_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ vm_family_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or replaces the shared limit cap configuration for a VM family.

REPLACE azure.compute_limit.shared_limit_caps
SET
properties = '{{ properties }}'
WHERE
location = '{{ location }}' --required
AND vm_family_name = '{{ vm_family_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the shared limit cap configuration for a VM family. The caller's subscription is treated as the host subscription.

DELETE FROM azure.compute_limit.shared_limit_caps
WHERE location = '{{ location }}' --required
AND vm_family_name = '{{ vm_family_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Replaces the full set of per-member cap overrides for this shared limit cap. The supplied array becomes the new complete set of overrides; supplying an empty array clears all existing overrides.

EXEC azure.compute_limit.shared_limit_caps.set_member_cap_overrides 
@location='{{ location }}' --required,
@vm_family_name='{{ vm_family_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"memberCapOverrides": "{{ memberCapOverrides }}"
}'
;