Azure / Azure/azure-cli-extensions

New error with 'az ml model deploy' in 1.0.81

Open
#1,175 5 comments 0 reactions 0 assignees View on GitHub
customer-reported extension/ml Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Extension name (the extension in question)

"extensionType": "whl",
"name": "azure-cli-ml",
"version": "1.0.81"

### Description of issue (in as much detail as possible)

When running the following model deployment command, with `azure-cli-ml` 1.0.81 this is now throwing an error. This did not throw an error in `azure-cli-ml` 1.0.79.

`az ml model deploy -n quote-clf --inference-config-file src/inferconfig.json --auth-enabled true --deploy-config-file src/deployconfig_stab.json --compute-target aks-aml-stab -m quote_clf:3 -m quote_tfidf:3 --workspace-name aml-stab --resource-group aml-stab --overwrite -v`

**Error**:
```
Creating image
Running.............................................................................
Succeeded
ERROR: {'Azure-cli-ml Version': '1.0.81', 'Error': AttributeError("'bool' object has no attribute 'name'",)}
Image creation operation finished for image quote-clf:17, operation "Succeeded"
##[error]Script failed with error: Error: The process '/bin/bash' failed with exit code 1
```

**`src/inferconfig.json`**:

```json
{
"condaFile": "environment.yaml",
"enableGpu": false,
"entryScript": "entry_script.py",
"extraDockerfileSteps": "extra_dockerfile_steps",
"runtime": "python",
"sourceDirectory": "src"
}
```

**`src/deployconfig_stab.json`**:
```json
{
"autoScaler": {
"autoscaleEnabled": true,
"minReplicas": 2,
"maxReplicas": 4,
"refreshPeriodInSeconds": 1,
"targetUtilization": 70
},
"authEnabled": true,
"computeType": "aks",
"containerResourceRequirements": {
"cpu": 1,
"memoryInGB": 1
},
"enableAppInsights": true,
"maxConcurrentRequestsPerContainer": 3,
"maxQueueWaitMs": 5000,
"scoringTimeoutMs": 120000
}
```

**`src/environment.yaml`**:
```yaml
name: quote
channels:
- defaults
- conda-forge
dependencies:
- pip=19.2.2
- scikit-learn=0.20.3
- spacy=2.1.7
- pip:
- azureml-defaults>=1.0.60
- https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.