Permission issue while creating ML pipeline job using Azure CLI V2

2023-03-09T16:34:34.2666667+00:00

Hi,

I am trying to create a ML pipeline job using Azure CLI V2 commands. pls find the command below :

az ml job create --file ./mlops/azureml/train/train-pipeline.yml --resource-group myresource_group \
	--workspace-name myworkspace --query name -o tsv

I am using Service principal with contributor access on resource group level to authorize the command. But on running the command, it failed to create the ML Pipeline job with following error :

azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'This request is not authorized to perform this operation.'

1016ErrorCode:AuthorizationFailure

1017

1018ERROR: cli.azure.cli.core.azclierror: Operation returned an invalid status 'This request is not authorized to perform this operation.'

1019ErrorCode:AuthorizationFailure

1020ERROR: az_command_data_logger: Operation returned an invalid status 'This request is not authorized to perform this operation.'

1021ErrorCode:AuthorizationFailure

1022DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7f6f3d7708b0>]

1023INFO: az_command_data_logger: exit code: 1

1024INFO: cli.main: Command ran in 8.520 seconds (init: 0.336, invoke: 8.184)

1025INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1

1026INFO: telemetry.client: Accumulated 0 events. Flush the clients.

1027INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1

1028INFO: telemetry.save: Save telemetry record of length 3744 in cache

1029WARNING: telemetry.check: Negative: The /home/runner/.azure/telemetry.txt was modified at 2023-03-09 10:02:31.582632, which in less than 600.000000 s

1030Error: Process completed with exit code 1.

it says it is not authorized to access the Machine learning workspace's default blobstore while creating the job.

Please help me figuring out the issue.

Thanks in advance.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,728 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ragunath Rajendran 0 Reputation points
    2023-06-27T19:36:42.4233333+00:00

    Hi @JaimanAmardeep-3234 - if you are accessing your blob via pep, then whitelist your firewall vnet/snet also on the "Enabled from selected virtual networks and IP addresses" on your storageAcc.

    0 comments No comments