Microsoft.ContainerInstance (preview:2024-11-01)

2025/05/28 • 5 updated methods

NGroups_Get (updated)
Description Get the properties of the specified NGroups resource.
Reference Link ¶

⚶ Changes

{
  "#id": "NGroups_Get",
  "$responses": {
    "200": {
      "$properties": {
        "@removed_1087edc9e8d34eb198242204136f4e51": {
          "#name": "zones",
          "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
          "Required": false,
          "Type": "array",
          "$items": {
            "Type": "string"
          }
        },
        "@removed_e30a7cec8e784468ba30a0a175b44763": {
          "#name": "location",
          "Description": "The geo-location where the resource lives",
          "Required": false,
          "Type": "string"
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
subscriptionId: string ,
api-version: string ,
resourceGroupName: string ,
ngroupsName: string ,
}

⚐ Response (200)

{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_CreateOrUpdate (updated)
Description Create or update a NGroups resource.
Reference Link ¶

⚶ Changes

{
  "#id": "NGroups_CreateOrUpdate",
  "$parameters": {
    "NGroup": {
      "$properties": {
        "@removed_2dd65acdf50c46b2b988e9892778c945": {
          "#name": "zones",
          "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
          "Required": false,
          "Type": "array",
          "$items": {
            "Type": "string"
          }
        },
        "@removed_0a8f19eaa0bd47b48cdff8e4181d1229": {
          "#name": "location",
          "Description": "The geo-location where the resource lives",
          "Required": false,
          "Type": "string"
        }
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "@removed_44f0a1549df344939564a85a9c3c592c": {
          "#name": "zones",
          "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
          "Required": false,
          "Type": "array",
          "$items": {
            "Type": "string"
          }
        },
        "@removed_e04cec00b5424a329e27b0754fc766e5": {
          "#name": "location",
          "Description": "The geo-location where the resource lives",
          "Required": false,
          "Type": "string"
        }
      }
    },
    "201": {
      "$properties": {
        "@removed_42c7c181378d4d6f8bb5b74c10b4ac12": {
          "#name": "zones",
          "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
          "Required": false,
          "Type": "array",
          "$items": {
            "Type": "string"
          }
        },
        "@removed_49e2f4f0478549a584a85757f34d77c0": {
          "#name": "location",
          "Description": "The geo-location where the resource lives",
          "Required": false,
          "Type": "string"
        }
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_Update (updated)
Description Update a specified NGroups resource.
Reference Link ¶

⚶ Changes

{
  "#id": "NGroups_Update",
  "$parameters": {
    "NGroup": {
      "$properties": [
        {
          "@added_491749f476244b96b1ffb94e113b502c": {
            "#name": "tags",
            "Description": "The resource tags.",
            "Required": false,
            "Type": "object"
          }
        },
        {
          "#name": "zones",
          "Description": {
            "new": "The zones for the NGroup.",
            "old": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set"
          }
        },
        {
          "@removed_7badf34e9fd24f10962306d6bcea6da6": {
            "#name": "location",
            "Description": "The geo-location where the resource lives",
            "Required": false,
            "Type": "string"
          }
        }
      ]
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "@removed_422ae6e8caff4bf88c034925bf22a533": {
          "#name": "zones",
          "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
          "Required": false,
          "Type": "array",
          "$items": {
            "Type": "string"
          }
        },
        "@removed_5a74a26bbbcc4098adb7e9990a39737d": {
          "#name": "location",
          "Description": "The geo-location where the resource lives",
          "Required": false,
          "Type": "string"
        }
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
{
resourceGroupName: string ,
ngroupsName: string ,
NGroup:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
tags: object ,
zones:
[
string ,
]
,
}
,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
$headers:
{
azure-asyncoperation: string ,
}
,
$schema:
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
NGroups_ListByResourceGroup (updated)
Description Gets a list of all NGroups resources under a resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "NGroups_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "@removed_f716e594c6eb49359a93713c847de31b": {
              "#name": "zones",
              "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
              "Required": false,
              "Type": "array",
              "$items": {
                "Type": "string"
              }
            },
            "@removed_76b9000408364ca0a8a50659e591a7bc": {
              "#name": "location",
              "Description": "The geo-location where the resource lives",
              "Required": false,
              "Type": "string"
            }
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}
NGroups_List (updated)
Description Gets a list of all NGroups resources under a subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "NGroups_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "@removed_2ba29459e4a542299ff22c9a970b8896": {
              "#name": "zones",
              "Description": "The NGroups zones. NOTE: Availability zones can only be set when you create the scale set",
              "Required": false,
              "Type": "array",
              "$items": {
                "Type": "string"
              }
            },
            "@removed_1204d1a0cbe84734afeabb4a652beeeb": {
              "#name": "location",
              "Description": "The geo-location where the resource lives",
              "Required": false,
              "Type": "string"
            }
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/ngroups
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
properties:
{
elasticProfile:
{
desiredCount: integer ,
maintainDesiredCount: boolean ,
containerGroupNamingPolicy:
{
guidNamingPolicy:
{
prefix: string ,
}
,
}
,
}
,
placementProfile:
{
faultDomainCount: integer ,
}
,
containerGroupProfiles:
[
{
resource:
{
id: string ,
}
,
revision: integer ,
networkProfile:
{
loadBalancer:
{
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
applicationGateway:
{
resource: string ,
backendAddressPools:
[
{
resource: string ,
}
,
]
,
}
,
}
,
storageProfile:
{
fileShares:
[
{
name: string ,
resourceGroupName: string ,
storageAccountName: string ,
properties:
{
shareAccessType: enum ,
shareAccessTier: enum ,
}
,
}
,
]
,
}
,
containerGroupProperties:
{
subnetIds:
[
{
id: string ,
name: string ,
}
,
]
,
volumes:
[
{
name: string ,
azureFile:
{
shareName: string ,
readOnly: boolean ,
storageAccountName: string ,
storageAccountKey: string ,
storageAccountKeyReference: string ,
}
,
}
,
]
,
containers:
[
{
name: string ,
properties:
{
volumeMounts:
[
{
name: string ,
mountPath: string ,
readOnly: boolean ,
}
,
]
,
}
,
}
,
]
,
}
,
}
,
]
,
provisioningState: enum ,
updateProfile:
{
updateMode: enum ,
rollingUpdateProfile:
{
maxBatchPercent: integer ,
maxUnhealthyPercent: integer ,
pauseTimeBetweenBatches: string ,
inPlaceUpdate: boolean ,
}
,
}
,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
}
,
}