Azure ML 在线终结点部署 DriverFileNotFound 错误

Azure ML Online Endpoint deployment DriverFileNotFound Error

当 运行 Azure ML Online 终结点命令时,它在本地工作。但是当我尝试将它部署到 Azure 时,出现了这个错误。 命令 - az ml online-deployment create --name blue --endpoint "unique-name" -f endpoints/online/managed/sample/blue-deployment.yml --all-traffic

{
    "status": "Failed",
    "error": {
        "code": "DriverFileNotFound",
        "message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.",
        "details": [
            {
                "code": "DriverFileNotFound",
                "message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.\nThe build log is available in the workspace blob store \"coloraiamlsa\" under the path \"/azureml/ImageLogs/1673692e-e30b-4306-ab81-2eed9dfd4020/build.log\"",
                "details": [],
                "additionalInfo": []
            }
        ],
        

这是直接从 azureml-examples repo

中获取的部署 YAML
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: blue
endpoint_name: my-endpoint
model:
  local_path: ../../model-1/model/sklearn_regression_model.pkl
code_configuration:
  code: 
    local_path: ../../model-1/onlinescoring/
  scoring_script: score.py
environment: 
  conda_file: ../../model-1/environment/conda.yml
  image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1
instance_type: Standard_F2s_v2
instance_count: 1

经过大量的努力,我终于能够在另一个 Azure ML 工作区中始终如一地重现这个错误。

我尝试在创建的全新 Azure ML 工作区中部署相同的示例,一切顺利。

此时我想起来我已经将我以前的 AML Workspace 的存储帐户升级到 DataLake Gen2。

所以我在这个新工作区的存储帐户中进行了相同的升级。升级后,当我尝试部署相同的端点时,我得到相同的 DriverFileNotFoundError!

Azure ML 似乎不支持具有 DataLake Gen2 功能的存储帐户,尽管支持页面另有说明。 https://docs.microsoft.com/en-us/azure/machine-learning/how-to-access-data#supported-data-storage-service-types.

此时我唯一的选择是重新创建一个新工作区并在那里部署我的代码。希望 Azure 团队尽快解决这个问题。