I executed the codes on this page (step-by-step), but the register_model (PythonScriptStep) fails.
Response status code does not indicate success: 400 (Environment name can not start with the prefix AzureML. To alter a curated environment first create).
{
"error": {
"code": "UserError",
"severity": null,
"message": "Environment name can not start with the prefix AzureML. To alter a curated environment first create a copy of it.",
"messageFormat": null,
"messageParameters": null,
"referenceCode": null,
"detailsUri": null,
"target": null,
"details": [],
"innerError": null,
"debugInfo": null
},
"correlation": {
"operation": "91f334b424b7274bb7bf43a765072323",
"request": "92e8b6fa9907974d"
},
"environment": "eastus2",
"location": "eastus2",
"time": "2020-11-09T20:04:19.4350909+00:00",
"componentName": "execution"
}
executionlogs.txt
[2020-11-09 18:35:45Z] Experiment: titanic_automl
[2020-11-09 18:35:45Z] Run Id: 602cc2d3-ffab-423a-a931-d17dc1468065
[2020-11-09 18:35:45Z] Run target: cpu-cluster
[2020-11-09 18:35:47Z] Starting run in Execution Service
[2020-11-09 18:35:48Z] Failed to start the job because of exception_type: ServiceInvocationException, error: Failure in StartSnapshotRun while calling service Execution; HttpMethod: POST; Response StatusCode: BadRequest; Exception type: Microsoft.RelInfra.Extensions.HttpRequestDetailException, stack trace: at Microsoft.Aether.EsCloud.Common.Client.ExecutionServiceClient.StartSnapshotRunAsync(String jobId, RunDefinition runDefinition, String runId, WorkspaceIdentity workspaceIdentity, String experimentName, CreatedBy createdBy) in d:\dbs\sh\Ae\1028_125951\cmd\i\src\aether\platform\backendV2\Clouds\ESCloud\ESCloudCommon\Client\ExecutionServiceClient.cs:line 94
at Microsoft.Aether.EsCloud.Common.JobProcessor.StartRunAsync(EsCloudJobMetadata job) in d:\dbs\sh\Ae\1028_125951\cmd\i\src\aether\platform\backendV2\Clouds\ESCloud\ESCloudCommon\JobProcessor.cs:line 302
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@marciomocellin Thank you for reaching out , our team will review this and get back to you at the earliest.
@marciomocellin Could you try to update the name of your environment after getting the curated environment?
aml_run_config.environment.name = 'MyEnvironment'
aml_run_config.environment.version = '1.0'
thanks @RohitMungi-MSFT. I already solved this
curated_environment = Environment.get(workspace=ws, name="Tutorial")
Most helpful comment
@marciomocellin Could you try to update the name of your environment after getting the curated environment?