microsoft / MLOpsPython

MLOps using Azure ML Services and Azure DevOps
MIT License
1.2k stars 1.09k forks source link

Deployment Failed for Enterprise ML #271

Closed craigjurs closed 4 years ago

craigjurs commented 4 years ago

This is probably a dumb one, but I've reached the end of my understanding to solve the issue. When I run the pipeline the deployment fails because my ML resource is "enterprise"

Template deployment validation was completed successfully.
Starting Deployment.
Deployment name is cloud-environment-20200428-210003-a450
There were errors in your deployment. Error code: DeploymentFailed.
##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.
##[error]Details:
**##[error]Invalid: Downgrade from Enterprise sku to Basic sku is not allowed**
##[error]Task failed while creating or updating the template deployment.
Finishing: Deploy MLOps resources to Azure

So I went into the template file and added the following code after "location":

    "sku":{
      "type": "string",
      "defaultValue": "enterprise",
        "allowedValues": [
          "basic",
          "enterprise"
      ],
      "metadata": {
         "description": "Specifies the sku, also referred as 'edition' of the Azure Machine Learning workspace."
      }
    },

Unfortunately I still get the exact same error message.

craigjurs commented 4 years ago

Just for clarification, if I use a "basic" ML workspace, and not an "enterprise" one, then everything goes as expected

j-so commented 4 years ago

To confirm, you added the code after "location", in the "parameters" section?

If you haven't done so already, you'll also need to add this code after "location" in the workspace definition in order to pass the sku tier to the workspace definition.

"sku": {
  "tier": "[parameters('sku')]",
  "name": "[parameters('sku')]"
},
craigjurs commented 4 years ago

@j-so works now, thank you for the help. I did not have the second step you provided.