Search

Please login in for more filter options


Kickstart your project with AVM templates.

ml-registry

report
Report Package ml-registry

If you believe that this package or its contents contain harmful information, please inform us.
Please be aware that we will never share your credentials.

Please let us know what this package contains.
Please enter a valid email address.

This Bicep AVM module deploys an Azure Machine Learning Registry.

ipm add --package avm-bicep/ml-registry --version 0.1.0 

Published: 01-07-2025

Project URL: https://ipmhub.io/avm-bicep

Package Type: Bicep

License: MIT


Azure ML Registry [Microsoft.MachineLearningServices/registries]

This module deploys an Azure Machine Learning Registry.

Navigation

Resource Types

Resource Type API Version
Microsoft.Authorization/locks 2020-05-01
Microsoft.Authorization/roleAssignments 2022-04-01
Microsoft.MachineLearningServices/registries 2024-10-01
Microsoft.Network/privateEndpoints 2024-05-01
Microsoft.Network/privateEndpoints/privateDnsZoneGroups 2024-05-01

Usage examples

The following section provides usage examples for the module, which were used to validate and deploy the module successfully. For a full reference, please review the module's test folder in its repository.

Note: Each example lists all the required parameters first, followed by the rest - each in alphabetical order.

Note: To reference the module, please use the following syntax ./packages/ml-registry/main.bicep.

Example 1: Using only defaults for AML Registry

This test deploys the AML Registry module with the minimum required parameters and mocked values.

via Bicep module
module registry './packages/ml-registry/main.bicep' = {
  name: 'registryDeployment'
  params: {
    name: 'mlsrmin001'
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "name": {
      "value": "mlsrmin001"
    }
  }
}

via Bicep parameters file
using './packages/ml-registry/main.bicep'

param name = 'mlsrmin001'

Example 2: Using large parameter set

This instance deploys the module with most of its features enabled.

via Bicep module
module registry './packages/ml-registry/main.bicep' = {
  name: 'registryDeployment'
  params: {
    // Required parameters
    name: 'mlsrmax001'
    // Non-required parameters
    acrAccountName: '<acrAccountName>'
    acrSku: 'Premium'
    location: '<location>'
    lock: {
      kind: 'CanNotDelete'
      name: 'myCustomLockName'
    }
    managedIdentities: {
      systemAssigned: true
      userAssignedResourceIds: [
        '<managedIdentityResourceId>'
      ]
    }
    privateEndpoints: [
      {
        privateDnsZoneGroup: {
          privateDnsZoneGroupConfigs: [
            {
              privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
            }
          ]
        }
        subnetResourceId: '<subnetResourceId>'
        tags: {
          Environment: 'Non-Prod'
          'hidden-title': 'This is visible in the resource name'
          Role: 'DeploymentValidation'
        }
      }
      {
        privateDnsZoneGroup: {
          privateDnsZoneGroupConfigs: [
            {
              privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
            }
          ]
        }
        subnetResourceId: '<subnetResourceId>'
      }
    ]
    roleAssignments: [
      {
        name: '8f8b1c39-827f-43e6-a457-98bb15b5dbdf'
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: 'Owner'
      }
      {
        name: '<name>'
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: 'b24988ac-6180-42a0-ab88-20f7382dd24c'
      }
      {
        principalId: '<principalId>'
        principalType: 'ServicePrincipal'
        roleDefinitionIdOrName: '<roleDefinitionIdOrName>'
      }
    ]
    storageAccountAllowBlobPublicAccess: false
    storageAccountHnsEnabled: true
    storageAccountName: '<storageAccountName>'
    storageAccountType: 'Standard_ZRS'
    tags: {
      Environment: 'Non-Prod'
      'hidden-title': 'This is visible in the resource name'
      Role: 'DeploymentValidation'
    }
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    // Required parameters
    "name": {
      "value": "mlsrmax001"
    },
    // Non-required parameters
    "acrAccountName": {
      "value": "<acrAccountName>"
    },
    "acrSku": {
      "value": "Premium"
    },
    "location": {
      "value": "<location>"
    },
    "lock": {
      "value": {
        "kind": "CanNotDelete",
        "name": "myCustomLockName"
      }
    },
    "managedIdentities": {
      "value": {
        "systemAssigned": true,
        "userAssignedResourceIds": [
          "<managedIdentityResourceId>"
        ]
      }
    },
    "privateEndpoints": {
      "value": [
        {
          "privateDnsZoneGroup": {
            "privateDnsZoneGroupConfigs": [
              {
                "privateDnsZoneResourceId": "<privateDnsZoneResourceId>"
              }
            ]
          },
          "subnetResourceId": "<subnetResourceId>",
          "tags": {
            "Environment": "Non-Prod",
            "hidden-title": "This is visible in the resource name",
            "Role": "DeploymentValidation"
          }
        },
        {
          "privateDnsZoneGroup": {
            "privateDnsZoneGroupConfigs": [
              {
                "privateDnsZoneResourceId": "<privateDnsZoneResourceId>"
              }
            ]
          },
          "subnetResourceId": "<subnetResourceId>"
        }
      ]
    },
    "roleAssignments": {
      "value": [
        {
          "name": "8f8b1c39-827f-43e6-a457-98bb15b5dbdf",
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "Owner"
        },
        {
          "name": "<name>",
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "b24988ac-6180-42a0-ab88-20f7382dd24c"
        },
        {
          "principalId": "<principalId>",
          "principalType": "ServicePrincipal",
          "roleDefinitionIdOrName": "<roleDefinitionIdOrName>"
        }
      ]
    },
    "storageAccountAllowBlobPublicAccess": {
      "value": false
    },
    "storageAccountHnsEnabled": {
      "value": true
    },
    "storageAccountName": {
      "value": "<storageAccountName>"
    },
    "storageAccountType": {
      "value": "Standard_ZRS"
    },
    "tags": {
      "value": {
        "Environment": "Non-Prod",
        "hidden-title": "This is visible in the resource name",
        "Role": "DeploymentValidation"
      }
    }
  }
}

via Bicep parameters file
using './packages/ml-registry/main.bicep'

// Required parameters
param name = 'mlsrmax001'
// Non-required parameters
param acrAccountName = '<acrAccountName>'
param acrSku = 'Premium'
param location = '<location>'
param lock = {
  kind: 'CanNotDelete'
  name: 'myCustomLockName'
}
param managedIdentities = {
  systemAssigned: true
  userAssignedResourceIds: [
    '<managedIdentityResourceId>'
  ]
}
param privateEndpoints = [
  {
    privateDnsZoneGroup: {
      privateDnsZoneGroupConfigs: [
        {
          privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
        }
      ]
    }
    subnetResourceId: '<subnetResourceId>'
    tags: {
      Environment: 'Non-Prod'
      'hidden-title': 'This is visible in the resource name'
      Role: 'DeploymentValidation'
    }
  }
  {
    privateDnsZoneGroup: {
      privateDnsZoneGroupConfigs: [
        {
          privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
        }
      ]
    }
    subnetResourceId: '<subnetResourceId>'
  }
]
param roleAssignments = [
  {
    name: '8f8b1c39-827f-43e6-a457-98bb15b5dbdf'
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: 'Owner'
  }
  {
    name: '<name>'
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: 'b24988ac-6180-42a0-ab88-20f7382dd24c'
  }
  {
    principalId: '<principalId>'
    principalType: 'ServicePrincipal'
    roleDefinitionIdOrName: '<roleDefinitionIdOrName>'
  }
]
param storageAccountAllowBlobPublicAccess = false
param storageAccountHnsEnabled = true
param storageAccountName = '<storageAccountName>'
param storageAccountType = 'Standard_ZRS'
param tags = {
  Environment: 'Non-Prod'
  'hidden-title': 'This is visible in the resource name'
  Role: 'DeploymentValidation'
}

Example 3: WAF-aligned

This instance deploys the module in alignment with the best-practices of the Azure Well-Architected Framework.

via Bicep module
module registry './packages/ml-registry/main.bicep' = {
  name: 'registryDeployment'
  params: {
    // Required parameters
    name: 'mlsrwaf001'
    // Non-required parameters
    privateEndpoints: [
      {
        privateDnsZoneGroup: {
          privateDnsZoneGroupConfigs: [
            {
              privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
            }
          ]
        }
        subnetResourceId: '<subnetResourceId>'
      }
    ]
    tags: {
      Environment: 'Non-Prod'
      'hidden-title': 'This is visible in the resource name'
      Role: 'DeploymentValidation'
    }
  }
}

via JSON parameters file
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    // Required parameters
    "name": {
      "value": "mlsrwaf001"
    },
    // Non-required parameters
    "privateEndpoints": {
      "value": [
        {
          "privateDnsZoneGroup": {
            "privateDnsZoneGroupConfigs": [
              {
                "privateDnsZoneResourceId": "<privateDnsZoneResourceId>"
              }
            ]
          },
          "subnetResourceId": "<subnetResourceId>"
        }
      ]
    },
    "tags": {
      "value": {
        "Environment": "Non-Prod",
        "hidden-title": "This is visible in the resource name",
        "Role": "DeploymentValidation"
      }
    }
  }
}

via Bicep parameters file
using './packages/ml-registry/main.bicep'

// Required parameters
param name = 'mlsrwaf001'
// Non-required parameters
param privateEndpoints = [
  {
    privateDnsZoneGroup: {
      privateDnsZoneGroupConfigs: [
        {
          privateDnsZoneResourceId: '<privateDnsZoneResourceId>'
        }
      ]
    }
    subnetResourceId: '<subnetResourceId>'
  }
]
param tags = {
  Environment: 'Non-Prod'
  'hidden-title': 'This is visible in the resource name'
  Role: 'DeploymentValidation'
}

Parameters

Required parameters

Parameter Type Description
name string Name of the Azure ML Registry.

Optional parameters

Parameter Type Description
acrAccountName string The Azure Container Registry account name to use for the Azure ML Registry. If not specified, a default name will be automatically generated.
acrSku string Tier of your Azure container registry.
enableTelemetry bool Enable/Disable usage telemetry for module.
location string Location for the Azure ML Registry.
locations array Additional locations for the Azure ML Registry.
lock object The lock settings of the service.
managedIdentities object The managed identity definition for this resource.
privateEndpoints array Configuration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible.
publicNetworkAccess string Whether or not public network access is allowed for this resource. For security reasons it should be disabled. If not specified, it will be disabled by default if private endpoints are set and networkRuleSetIpRules are not set.
roleAssignments array Array of role assignments to create.
storageAccountAllowBlobPublicAccess bool Storage account blob public access setting. If not specified, it will be set to false by default.
storageAccountHnsEnabled bool Storage account hierarchical namespace (HNS) enabled setting. If not specified, it will be set to true by default.
storageAccountName string The name of the storage account to use for the Azure ML Registry. If not specified, a default name will be generated based on the registry name and location.
storageAccountType string The type of storage account to use for the Azure ML Registry. Default is Standard_LRS.
tags object Tags of the resource.

Parameter: name

Name of the Azure ML Registry.

  • Required: Yes
  • Type: string

Parameter: acrAccountName

The Azure Container Registry account name to use for the Azure ML Registry. If not specified, a default name will be automatically generated.

  • Required: No
  • Type: string

Parameter: acrSku

Tier of your Azure container registry.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Basic'
      'Premium'
      'Standard'
    ]
    

Parameter: enableTelemetry

Enable/Disable usage telemetry for module.

  • Required: No
  • Type: bool
  • Default: True

Parameter: location

Location for the Azure ML Registry.

  • Required: No
  • Type: string
  • Default: [resourceGroup().location]

Parameter: locations

Additional locations for the Azure ML Registry.

  • Required: No
  • Type: array
  • Default: []

Parameter: lock

The lock settings of the service.

  • Required: No
  • Type: object

Optional parameters

Parameter Type Description
kind string Specify the type of lock.
name string Specify the name of lock.

Parameter: lock.kind

Specify the type of lock.

  • Required: No
  • Type: string
  • Allowed:
    [
      'CanNotDelete'
      'None'
      'ReadOnly'
    ]
    

Parameter: lock.name

Specify the name of lock.

  • Required: No
  • Type: string

Parameter: managedIdentities

The managed identity definition for this resource.

  • Required: No
  • Type: object

Optional parameters

Parameter Type Description
systemAssigned bool Enables system assigned managed identity on the resource.
userAssignedResourceIds array The resource ID(s) to assign to the resource. Required if a user assigned identity is used for encryption.

Parameter: managedIdentities.systemAssigned

Enables system assigned managed identity on the resource.

  • Required: No
  • Type: bool

Parameter: managedIdentities.userAssignedResourceIds

The resource ID(s) to assign to the resource. Required if a user assigned identity is used for encryption.

  • Required: No
  • Type: array

Parameter: privateEndpoints

Configuration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible.

  • Required: No
  • Type: array

Required parameters

Parameter Type Description
subnetResourceId string Resource ID of the subnet where the endpoint needs to be created.

Optional parameters

Parameter Type Description
applicationSecurityGroupResourceIds array Application security groups in which the Private Endpoint IP configuration is included.
customDnsConfigs array Custom DNS configurations.
customNetworkInterfaceName string The custom name of the network interface attached to the Private Endpoint.
enableTelemetry bool Enable/Disable usage telemetry for module.
ipConfigurations array A list of IP configurations of the Private Endpoint. This will be used to map to the first-party Service endpoints.
isManualConnection bool If Manual Private Link Connection is required.
location string The location to deploy the Private Endpoint to.
lock object Specify the type of lock.
manualConnectionRequestMessage string A message passed to the owner of the remote resource with the manual connection request.
name string The name of the Private Endpoint.
privateDnsZoneGroup object The private DNS Zone Group to configure for the Private Endpoint.
privateLinkServiceConnectionName string The name of the private link connection to create.
resourceGroupResourceId string The resource ID of the Resource Group the Private Endpoint will be created in. If not specified, the Resource Group of the provided Virtual Network Subnet is used.
roleAssignments array Array of role assignments to create.
service string The subresource to deploy the Private Endpoint for. For example "vault" for a Key Vault Private Endpoint.
tags object Tags to be applied on all resources/Resource Groups in this deployment.

Parameter: privateEndpoints.subnetResourceId

Resource ID of the subnet where the endpoint needs to be created.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.applicationSecurityGroupResourceIds

Application security groups in which the Private Endpoint IP configuration is included.

  • Required: No
  • Type: array

Parameter: privateEndpoints.customDnsConfigs

Custom DNS configurations.

  • Required: No
  • Type: array

Required parameters

Parameter Type Description
ipAddresses array A list of private IP addresses of the private endpoint.

Optional parameters

Parameter Type Description
fqdn string FQDN that resolves to private endpoint IP address.

Parameter: privateEndpoints.customDnsConfigs.ipAddresses

A list of private IP addresses of the private endpoint.

  • Required: Yes
  • Type: array

Parameter: privateEndpoints.customDnsConfigs.fqdn

FQDN that resolves to private endpoint IP address.

  • Required: No
  • Type: string

Parameter: privateEndpoints.customNetworkInterfaceName

The custom name of the network interface attached to the Private Endpoint.

  • Required: No
  • Type: string

Parameter: privateEndpoints.enableTelemetry

Enable/Disable usage telemetry for module.

  • Required: No
  • Type: bool

Parameter: privateEndpoints.ipConfigurations

A list of IP configurations of the Private Endpoint. This will be used to map to the first-party Service endpoints.

  • Required: No
  • Type: array

Required parameters

Parameter Type Description
name string The name of the resource that is unique within a resource group.
properties object Properties of private endpoint IP configurations.

Parameter: privateEndpoints.ipConfigurations.name

The name of the resource that is unique within a resource group.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.ipConfigurations.properties

Properties of private endpoint IP configurations.

  • Required: Yes
  • Type: object

Required parameters

Parameter Type Description
groupId string The ID of a group obtained from the remote resource that this private endpoint should connect to.
memberName string The member name of a group obtained from the remote resource that this private endpoint should connect to.
privateIPAddress string A private IP address obtained from the private endpoint's subnet.

Parameter: privateEndpoints.ipConfigurations.properties.groupId

The ID of a group obtained from the remote resource that this private endpoint should connect to.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.ipConfigurations.properties.memberName

The member name of a group obtained from the remote resource that this private endpoint should connect to.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.ipConfigurations.properties.privateIPAddress

A private IP address obtained from the private endpoint's subnet.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.isManualConnection

If Manual Private Link Connection is required.

  • Required: No
  • Type: bool

Parameter: privateEndpoints.location

The location to deploy the Private Endpoint to.

  • Required: No
  • Type: string

Parameter: privateEndpoints.lock

Specify the type of lock.

  • Required: No
  • Type: object

Optional parameters

Parameter Type Description
kind string Specify the type of lock.
name string Specify the name of lock.

Parameter: privateEndpoints.lock.kind

Specify the type of lock.

  • Required: No
  • Type: string
  • Allowed:
    [
      'CanNotDelete'
      'None'
      'ReadOnly'
    ]
    

Parameter: privateEndpoints.lock.name

Specify the name of lock.

  • Required: No
  • Type: string

Parameter: privateEndpoints.manualConnectionRequestMessage

A message passed to the owner of the remote resource with the manual connection request.

  • Required: No
  • Type: string

Parameter: privateEndpoints.name

The name of the Private Endpoint.

  • Required: No
  • Type: string

Parameter: privateEndpoints.privateDnsZoneGroup

The private DNS Zone Group to configure for the Private Endpoint.

  • Required: No
  • Type: object

Required parameters

Parameter Type Description
privateDnsZoneGroupConfigs array The private DNS Zone Groups to associate the Private Endpoint. A DNS Zone Group can support up to 5 DNS zones.

Optional parameters

Parameter Type Description
name string The name of the Private DNS Zone Group.

Parameter: privateEndpoints.privateDnsZoneGroup.privateDnsZoneGroupConfigs

The private DNS Zone Groups to associate the Private Endpoint. A DNS Zone Group can support up to 5 DNS zones.

  • Required: Yes
  • Type: array

Required parameters

Parameter Type Description
privateDnsZoneResourceId string The resource id of the private DNS zone.

Optional parameters

Parameter Type Description
name string The name of the private DNS Zone Group config.

Parameter: privateEndpoints.privateDnsZoneGroup.privateDnsZoneGroupConfigs.privateDnsZoneResourceId

The resource id of the private DNS zone.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.privateDnsZoneGroup.privateDnsZoneGroupConfigs.name

The name of the private DNS Zone Group config.

  • Required: No
  • Type: string

Parameter: privateEndpoints.privateDnsZoneGroup.name

The name of the Private DNS Zone Group.

  • Required: No
  • Type: string

Parameter: privateEndpoints.privateLinkServiceConnectionName

The name of the private link connection to create.

  • Required: No
  • Type: string

Parameter: privateEndpoints.resourceGroupResourceId

The resource ID of the Resource Group the Private Endpoint will be created in. If not specified, the Resource Group of the provided Virtual Network Subnet is used.

  • Required: No
  • Type: string

Parameter: privateEndpoints.roleAssignments

Array of role assignments to create.

  • Required: No
  • Type: array
  • Roles configurable by name:
    • 'Contributor'
    • 'DNS Resolver Contributor'
    • 'DNS Zone Contributor'
    • 'Domain Services Contributor'
    • 'Domain Services Reader'
    • 'Network Contributor'
    • 'Owner'
    • 'Private DNS Zone Contributor'
    • 'Reader'
    • 'Role Based Access Control Administrator'

Required parameters

Parameter Type Description
principalId string The principal ID of the principal (user/group/identity) to assign the role to.
roleDefinitionIdOrName string The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11'.

Optional parameters

Parameter Type Description
condition string The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container".
conditionVersion string Version of the condition.
delegatedManagedIdentityResourceId string The Resource Id of the delegated managed identity resource.
description string The description of the role assignment.
name string The name (as GUID) of the role assignment. If not provided, a GUID will be generated.
principalType string The principal type of the assigned principal ID.

Parameter: privateEndpoints.roleAssignments.principalId

The principal ID of the principal (user/group/identity) to assign the role to.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.roleAssignments.roleDefinitionIdOrName

The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11'.

  • Required: Yes
  • Type: string

Parameter: privateEndpoints.roleAssignments.condition

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container".

  • Required: No
  • Type: string

Parameter: privateEndpoints.roleAssignments.conditionVersion

Version of the condition.

  • Required: No
  • Type: string
  • Allowed:
    [
      '2.0'
    ]
    

Parameter: privateEndpoints.roleAssignments.delegatedManagedIdentityResourceId

The Resource Id of the delegated managed identity resource.

  • Required: No
  • Type: string

Parameter: privateEndpoints.roleAssignments.description

The description of the role assignment.

  • Required: No
  • Type: string

Parameter: privateEndpoints.roleAssignments.name

The name (as GUID) of the role assignment. If not provided, a GUID will be generated.

  • Required: No
  • Type: string

Parameter: privateEndpoints.roleAssignments.principalType

The principal type of the assigned principal ID.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Device'
      'ForeignGroup'
      'Group'
      'ServicePrincipal'
      'User'
    ]
    

Parameter: privateEndpoints.service

The subresource to deploy the Private Endpoint for. For example "vault" for a Key Vault Private Endpoint.

  • Required: No
  • Type: string

Parameter: privateEndpoints.tags

Tags to be applied on all resources/Resource Groups in this deployment.

  • Required: No
  • Type: object

Parameter: publicNetworkAccess

Whether or not public network access is allowed for this resource. For security reasons it should be disabled. If not specified, it will be disabled by default if private endpoints are set and networkRuleSetIpRules are not set.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Disabled'
      'Enabled'
    ]
    

Parameter: roleAssignments

Array of role assignments to create.

  • Required: No
  • Type: array
  • Roles configurable by name:
    • 'AzureML Compute Operator'
    • 'AzureML Data Scientist'
    • 'AzureML Metrics Writer (preview)'
    • 'AzureML Registry User'
    • 'Contributor'
    • 'Owner'
    • 'Reader'
    • 'Role Based Access Control Administrator'
    • 'User Access Administrator'

Required parameters

Parameter Type Description
principalId string The principal ID of the principal (user/group/identity) to assign the role to.
roleDefinitionIdOrName string The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11'.

Optional parameters

Parameter Type Description
condition string The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container".
conditionVersion string Version of the condition.
delegatedManagedIdentityResourceId string The Resource Id of the delegated managed identity resource.
description string The description of the role assignment.
name string The name (as GUID) of the role assignment. If not provided, a GUID will be generated.
principalType string The principal type of the assigned principal ID.

Parameter: roleAssignments.principalId

The principal ID of the principal (user/group/identity) to assign the role to.

  • Required: Yes
  • Type: string

Parameter: roleAssignments.roleDefinitionIdOrName

The role to assign. You can provide either the display name of the role definition, the role definition GUID, or its fully qualified ID in the following format: '/providers/Microsoft.Authorization/roleDefinitions/c2f4ef07-c644-48eb-af81-4b1b4947fb11'.

  • Required: Yes
  • Type: string

Parameter: roleAssignments.condition

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase "foo_storage_container".

  • Required: No
  • Type: string

Parameter: roleAssignments.conditionVersion

Version of the condition.

  • Required: No
  • Type: string
  • Allowed:
    [
      '2.0'
    ]
    

Parameter: roleAssignments.delegatedManagedIdentityResourceId

The Resource Id of the delegated managed identity resource.

  • Required: No
  • Type: string

Parameter: roleAssignments.description

The description of the role assignment.

  • Required: No
  • Type: string

Parameter: roleAssignments.name

The name (as GUID) of the role assignment. If not provided, a GUID will be generated.

  • Required: No
  • Type: string

Parameter: roleAssignments.principalType

The principal type of the assigned principal ID.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Device'
      'ForeignGroup'
      'Group'
      'ServicePrincipal'
      'User'
    ]
    

Parameter: storageAccountAllowBlobPublicAccess

Storage account blob public access setting. If not specified, it will be set to false by default.

  • Required: No
  • Type: bool

Parameter: storageAccountHnsEnabled

Storage account hierarchical namespace (HNS) enabled setting. If not specified, it will be set to true by default.

  • Required: No
  • Type: bool

Parameter: storageAccountName

The name of the storage account to use for the Azure ML Registry. If not specified, a default name will be generated based on the registry name and location.

  • Required: No
  • Type: string

Parameter: storageAccountType

The type of storage account to use for the Azure ML Registry. Default is Standard_LRS.

  • Required: No
  • Type: string
  • Allowed:
    [
      'Premium_LRS'
      'Premium_ZRS'
      'Standard_GRS'
      'Standard_GZRS'
      'Standard_LRS'
      'Standard_RAGRS'
      'Standard_RAGZRS'
      'Standard_ZRS'
    ]
    

Parameter: tags

Tags of the resource.

  • Required: No
  • Type: object

Outputs

Output Type Description
name string The Name of the Azure ML registry.
privateEndpoints array The private endpoints of the Azure container registry.
resourceGroupName string The name of the Azure ML registry.
resourceId string The resource ID of the Azure ML registry.
systemAssignedMIPrincipalId string The principal ID of the system assigned identity.

Cross-referenced modules

This section gives you an overview of all local-referenced module files (i.e., other modules that are referenced in this module) and all remote-referenced files (i.e., Bicep modules that are referenced from a Bicep Registry or Template Specs).

Reference Type
./packages/private-endpoints/main.bicep Local Reference
./packages/utl-common-types/main.bicep Local Reference

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Changelog

The latest version of the changelog can be found here.

0.1.0

Changes

  • Initial version

Breaking Changes

  • None
 
 {
  "workingFolder": "packages",
  "packages": [
    // packages defined earlier
    {
      "name": "avm-bicep/ml-registry",
      "version": "0.1.0"
    }
  ]
}

Stats

Selected version:

0.1.0

Downloads this version:

0

Downloads all versions:

0

Latest version:

0.1.0

Latest update:

01-07-2025

avm-bicep

Other versions (1)

Ready to End Infrastructure Code Chaos?

Join infrastructure teams who've moved from scattered repositories to unified package management

Built by infrastructure experts
Who understand your challenges
Complete solutions
No scattered files
See what's deployed where
When it needs updates
Zero vendor lock-in
Packages work without us
No setup fees or contracts Free migration assistance Cancel anytime with no penalties
Direct founder access Zero security incidents in 2+ years Works with any cloud, any CI/CD platform