Hi
I'm trying to deploy an environment and environment version to Azure ML using Bicep. The documentation doesn't have any examples, and I keep getting an unhelpful error stating:
"The response for resource had empty or invalid content."
Can anyone provide a working example deploying the following two resources:
Microsoft.MachineLearningServices/workspaces/environments@2021-03-01-preview
Microsoft.MachineLearningServices/workspaces/environments/versions@2021-03-01-preview
My config is like this and it can successfully deploy the cluster, but not the environment and version:
param location string = resourceGroup().location
resource amlCluster 'Microsoft.MachineLearningServices/workspaces/computes@2022-01-01-preview' = {
name: 'workspaceA/cluster'
location: location
tags: {
project: 'projectA'
}
identity: {
type: 'SystemAssigned'
}
properties: {
computeLocation: location
computeType: 'AmlCompute'
properties: {
osType: 'Linux'
vmSize: 'STANDARD_D1'
scaleSettings: {
minNodeCount: 0
maxNodeCount: 2
}
subnet: null
}
}
}
// Create environment
resource amlEnv 'Microsoft.MachineLearningServices/workspaces/environments@2021-03-01-preview' = {
name: 'workspaceA/env'
properties: {
properties: {}
tags: {}
}
}
resource amlEnvVersion 'Microsoft.MachineLearningServices/workspaces/environments/versions@2021-03-01-preview' = {
name: 'env-version'
parent: amlEnv
properties: {
properties: {}
isAnonymous: false
docker: {
platform: {
operatingSystemType: 'Linux'
}
dockerSpecificationType: 'Image'
dockerImageUri: 'mcr.microsoft.com/azureml/base:intelmpi2018.3-ubuntu16.04'
}
condaFile: 'conda.yml'
}
}