Skip to main content

cg_profiles

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

Overview

Namecg_profiles
TypeResource
Idazure.container_instance.cg_profiles

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.
confidentialComputePropertiesobjectThe properties for confidential container group.
containersarrayThe containers within the container group. Required.
diagnosticsobjectThe diagnostic information for a container group.
encryptionPropertiesobjectThe encryption properties for a container group.
extensionsarrayextensions used by virtual kubelet.
imageRegistryCredentialsarrayThe image registry credentials by which the container group is created from.
initContainersarrayThe init containers for a container group.
ipAddressobjectThe IP address type of the container group.
locationstringThe geo-location where the resource lives.
osTypestringThe operating system type required by the containers in the container group. Required. Known values are: "Windows" and "Linux". (Windows, Linux)
prioritystringThe priority of the container group. Known values are: "Regular" and "Spot". (Regular, Spot)
registeredRevisionsarrayRegistered revisions are calculated at request time based off the records in the table logs.
restartPolicystringRestart policy for all containers within the container group. * Always Always restart * OnFailure Restart on failure * Never Never restart. Known values are: "Always", "OnFailure", and "Never". (Always, OnFailure, Never)
revisionintegerContainer group profile current revision number.
securityContextobjectThe container security properties.
shutdownGracePeriodstring (date-time)Shutdown grace period for containers in a container group.
skustringThe SKU for a container group. Known values are: "NotSpecified", "Standard", "Dedicated", and "Confidential". (NotSpecified, Standard, Dedicated, Confidential)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
timeToLivestring (date-time)Post completion time to live for containers of a CG.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
useKryptonbooleanGets or sets Krypton use property.
volumesarrayThe list of volumes that can be mounted by containers in this container group.
zonesarrayThe availability zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_resource_groupselectresource_group_name, subscription_idList container group profiles in a resource group. Gets a list of all container group profiles under a resource group.
list_by_subscriptionselectsubscription_idList container group profiles in a subscription. Gets a list of all container group profiles under a subscription.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

List container group profiles in a resource group. Gets a list of all container group profiles under a resource group.

SELECT
id,
name,
confidentialComputeProperties,
containers,
diagnostics,
encryptionProperties,
extensions,
imageRegistryCredentials,
initContainers,
ipAddress,
location,
osType,
priority,
registeredRevisions,
restartPolicy,
revision,
securityContext,
shutdownGracePeriod,
sku,
systemData,
tags,
timeToLive,
type,
useKrypton,
volumes,
zones
FROM azure.container_instance.cg_profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;