Getting error code 403 when trying to connect to or register an Environment from a notebook in azure workspace

Hamedi Shokrlu, Yousef 0 Reputation points
2023-05-25T17:53:46.11+00:00

Hi,

I'm getting this error when trying to use an existing python environment from Environments in my notebook or when trying to register an environment created in the notebook:

Exception: Error retrieving the environment definition. Code: 403 : <html> <head><title>403 Forbidden</title></head> <body> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>

Any idea what kind of permission settings need to be adjusted by admin to get this working?
Thanks

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,072 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,726 Reputation points
    2023-05-25T23:17:49.6433333+00:00

    Hello @Hamedi Shokrlu, Yousef

    Thanks for reaching out to us, may I know what is your current role in your Azure machine learning service? The error message you are seeing indicates that you do not have sufficient permissions to access the environment or register a new environment.

    Please take a look at the role documentation - https://learn.microsoft.com/en-us/azure/machine-learning/how-to-assign-roles?view=azureml-api-2&tabs=labeler#default-roles

    This is the requirement list for different operations - https://learn.microsoft.com/en-us/azure/machine-learning/how-to-assign-roles?view=azureml-api-2&tabs=labeler#common-scenarios

    To resolve this issue, you should check with your Azure Workspace administrator to ensure that you have the necessary permissions to access and manage environments. Specifically, you should ensure that you have the "Owner" or "Contributor" role assigned to your user account or to a security group that your user account is a member of.

    If you are an administrator, you can grant these roles to your user account or to a security group by following these steps:

    1. Navigate to the Azure Workspace in the Azure portal.
    2. Click on "Access control (IAM)" in the left-hand menu.
    3. Click on "Add" and select "Add role assignment".
    4. Select the appropriate role ("Owner" or "Contributor") from the "Role" dropdown menu.
    5. Select the user account or security group that you want to grant the role to.
    6. Click "Save" to apply the changes.

    Please have a try and let me know how it works. Thanks.

    Regards,

    Yutong -Please kindly accept the answer and vote 'Yes' if you feel helpful to support the community, thanks a lot.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.