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:
- Navigate to the Azure Workspace in the Azure portal.
- Click on "Access control (IAM)" in the left-hand menu.
- Click on "Add" and select "Add role assignment".
- Select the appropriate role ("Owner" or "Contributor") from the "Role" dropdown menu.
- Select the user account or security group that you want to grant the role to.
- 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.