Skip to main content

shared_limits

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

Overview

Nameshared_limits
TypeResource
Idazure.compute_limit.shared_limits

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.
limitintegerThe maximum permitted usage of the resource.
provisioningStatestringThe provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
resourceNameobjectThe limit name properties.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
unitstringThe quota units, such as Count.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, name, subscription_idGets the properties of a compute limit shared by the host subscription with its guest subscriptions.
list_by_subscription_location_resourceselectlocation, subscription_idLists all compute limits shared by the host subscription with its guest subscriptions.
createinsertlocation, name, subscription_idEnables sharing of a compute limit by the host subscription with its guest subscriptions.
deletedeletelocation, name, subscription_idDisables sharing of a compute limit by the host subscription with its guest subscriptions.

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.
namestringThe name of the SharedLimit. Required.
subscription_idstring

SELECT examples

Gets the properties of a compute limit shared by the host subscription with its guest subscriptions.

SELECT
id,
name,
limit,
provisioningState,
resourceName,
systemData,
type,
unit
FROM azure.compute_limit.shared_limits
WHERE location = '{{ location }}' -- required
AND name = '{{ name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

DELETE examples

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

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