Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The registries/connectedRegistries resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.ContainerRegistry/registries/connectedRegistries resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.ContainerRegistry/registries/connectedRegistries@2023-08-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
clientTokenIds: [
'string'
]
logging: {
auditLogStatus: 'string'
logLevel: 'string'
}
loginServer: {}
mode: 'string'
notificationsList: [
'string'
]
parent: {
id: 'string'
syncProperties: {
messageTtl: 'string'
schedule: 'string'
syncWindow: 'string'
tokenId: 'string'
}
}
}
}
Property Values
Microsoft.ContainerRegistry/registries/connectedRegistries
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 5 Max length = 50 Pattern = ^[a-zA-Z0-9]*$ (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: registries |
properties | The properties of the connected registry. | ConnectedRegistryProperties |
ConnectedRegistryProperties
Name | Description | Value |
---|---|---|
clientTokenIds | The list of the ACR token resource IDs used to authenticate clients to the connected registry. | string[] |
logging | The logging properties of the connected registry. | LoggingProperties |
loginServer | The login server properties of the connected registry. | LoginServerProperties |
mode | The mode of the connected registry resource that indicates the permissions of the registry. | 'Mirror' 'ReadOnly' 'ReadWrite' 'Registry' (required) |
notificationsList | The list of notifications subscription information for the connected registry. | string[] |
parent | The parent of the connected registry. | ParentProperties (required) |
LoggingProperties
Name | Description | Value |
---|---|---|
auditLogStatus | Indicates whether audit logs are enabled on the connected registry. | 'Disabled' 'Enabled' |
logLevel | The verbosity of logs persisted on the connected registry. | 'Debug' 'Error' 'Information' 'None' 'Warning' |
LoginServerProperties
Name | Description | Value |
---|
ParentProperties
Name | Description | Value |
---|---|---|
id | The resource ID of the parent to which the connected registry will be associated. | string |
syncProperties | The sync properties of the connected registry with its parent. | SyncProperties (required) |
SyncProperties
Name | Description | Value |
---|---|---|
messageTtl | The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string (required) |
schedule | The cron expression indicating the schedule that the connected registry will sync with its parent. | string |
syncWindow | The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string |
tokenId | The resource ID of the ACR token used to authenticate the connected registry to its parent during sync. | string (required) |
ARM template resource definition
The registries/connectedRegistries resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.ContainerRegistry/registries/connectedRegistries resource, add the following JSON to your template.
{
"type": "Microsoft.ContainerRegistry/registries/connectedRegistries",
"apiVersion": "2023-08-01-preview",
"name": "string",
"properties": {
"clientTokenIds": [ "string" ],
"logging": {
"auditLogStatus": "string",
"logLevel": "string"
},
"loginServer": {
},
"mode": "string",
"notificationsList": [ "string" ],
"parent": {
"id": "string",
"syncProperties": {
"messageTtl": "string",
"schedule": "string",
"syncWindow": "string",
"tokenId": "string"
}
}
}
}
Property Values
Microsoft.ContainerRegistry/registries/connectedRegistries
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2023-08-01-preview' |
name | The resource name | string Constraints: Min length = 5 Max length = 50 Pattern = ^[a-zA-Z0-9]*$ (required) |
properties | The properties of the connected registry. | ConnectedRegistryProperties |
type | The resource type | 'Microsoft.ContainerRegistry/registries/connectedRegistries' |
ConnectedRegistryProperties
Name | Description | Value |
---|---|---|
clientTokenIds | The list of the ACR token resource IDs used to authenticate clients to the connected registry. | string[] |
logging | The logging properties of the connected registry. | LoggingProperties |
loginServer | The login server properties of the connected registry. | LoginServerProperties |
mode | The mode of the connected registry resource that indicates the permissions of the registry. | 'Mirror' 'ReadOnly' 'ReadWrite' 'Registry' (required) |
notificationsList | The list of notifications subscription information for the connected registry. | string[] |
parent | The parent of the connected registry. | ParentProperties (required) |
LoggingProperties
Name | Description | Value |
---|---|---|
auditLogStatus | Indicates whether audit logs are enabled on the connected registry. | 'Disabled' 'Enabled' |
logLevel | The verbosity of logs persisted on the connected registry. | 'Debug' 'Error' 'Information' 'None' 'Warning' |
LoginServerProperties
Name | Description | Value |
---|
ParentProperties
Name | Description | Value |
---|---|---|
id | The resource ID of the parent to which the connected registry will be associated. | string |
syncProperties | The sync properties of the connected registry with its parent. | SyncProperties (required) |
SyncProperties
Name | Description | Value |
---|---|---|
messageTtl | The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string (required) |
schedule | The cron expression indicating the schedule that the connected registry will sync with its parent. | string |
syncWindow | The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string |
tokenId | The resource ID of the ACR token used to authenticate the connected registry to its parent during sync. | string (required) |
Usage Examples
Terraform (AzAPI provider) resource definition
The registries/connectedRegistries resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.ContainerRegistry/registries/connectedRegistries resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ContainerRegistry/registries/connectedRegistries@2023-08-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
clientTokenIds = [
"string"
]
logging = {
auditLogStatus = "string"
logLevel = "string"
}
loginServer = {
}
mode = "string"
notificationsList = [
"string"
]
parent = {
id = "string"
syncProperties = {
messageTtl = "string"
schedule = "string"
syncWindow = "string"
tokenId = "string"
}
}
}
}
}
Property Values
Microsoft.ContainerRegistry/registries/connectedRegistries
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Min length = 5 Max length = 50 Pattern = ^[a-zA-Z0-9]*$ (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: registries |
properties | The properties of the connected registry. | ConnectedRegistryProperties |
type | The resource type | "Microsoft.ContainerRegistry/registries/connectedRegistries@2023-08-01-preview" |
ConnectedRegistryProperties
Name | Description | Value |
---|---|---|
clientTokenIds | The list of the ACR token resource IDs used to authenticate clients to the connected registry. | string[] |
logging | The logging properties of the connected registry. | LoggingProperties |
loginServer | The login server properties of the connected registry. | LoginServerProperties |
mode | The mode of the connected registry resource that indicates the permissions of the registry. | 'Mirror' 'ReadOnly' 'ReadWrite' 'Registry' (required) |
notificationsList | The list of notifications subscription information for the connected registry. | string[] |
parent | The parent of the connected registry. | ParentProperties (required) |
LoggingProperties
Name | Description | Value |
---|---|---|
auditLogStatus | Indicates whether audit logs are enabled on the connected registry. | 'Disabled' 'Enabled' |
logLevel | The verbosity of logs persisted on the connected registry. | 'Debug' 'Error' 'Information' 'None' 'Warning' |
LoginServerProperties
Name | Description | Value |
---|
ParentProperties
Name | Description | Value |
---|---|---|
id | The resource ID of the parent to which the connected registry will be associated. | string |
syncProperties | The sync properties of the connected registry with its parent. | SyncProperties (required) |
SyncProperties
Name | Description | Value |
---|---|---|
messageTtl | The period of time for which a message is available to sync before it is expired. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string (required) |
schedule | The cron expression indicating the schedule that the connected registry will sync with its parent. | string |
syncWindow | The time window during which sync is enabled for each schedule occurrence. Specify the duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. | string |
tokenId | The resource ID of the ACR token used to authenticate the connected registry to its parent during sync. | string (required) |