User XXX does not have access to compute instance YYY. Azure Machine Learning

I have some terraform where the Service Principal is Owner of the Subscription. And it can create a compute instance on AML. I assigne a user and the user can connect to it.

But when I create myself, on the UI, a compute instance with the exact same settings from my terraform configuration, I fail to connect to it: User XXX does not have access to compute instance YYY

Here is the configuration:

I have no acces to terminal/Jupyter/Vscode.

I have no idea why it does not work. When an other user create a compute instance and assign it to me, it also does not work. But with the service principal which is only Owner of the subscription, then the assigment works.

Here are my RBAC roles (on ressource group, not on subscription nor on Azure Machine Learning workspace Ressource):

AZURE-Datascience-AML-dev-Contributor
AZURE-ReadOnly-dev-RG
AzureML Compute Operator
AzureML Data Scientist
AzureML Registry User
Cognitive Services Contributor
Cognitive Services Usages Reader
Cognitive Services User
Contributor
Data Factory Contributor
DocumentDB Account Contributor
Key Vault Contributor
Key Vault Secrets Officer
Network Contributor
Owner
Reader
Storage Account Key Operator Service Role
Storage Blob Data Contributor
Storage Queue Data Contributor
Support Request Contributor

The custom role of AZURE-Datascience-AML-dev-Contributor contains this:

{
    "id": "/subscriptions/xxxxxxxxxxxx/providers/Microsoft.Authorization/roleDefinitions/xxxxxxxxx",
    "properties": {
        "roleName": "AZURE-Datascience-AML-dev-Contributor",
        "description": "This role is used for AML",
        "assignableScopes": [
            "/subscriptions/xxxxxx/resourceGroups/rg-xxxxxxx-01"
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.MachineLearningServices/workspaces/*/read",
                    "Microsoft.MachineLearningServices/workspaces/*/action",
                    "Microsoft.MachineLearningServices/workspaces/*/delete",
                    "Microsoft.MachineLearningServices/workspaces/*/write",
                    "Microsoft.Network/virtualNetworks/*/read",
                    "Microsoft.Network/virtualNetworks/subnets/join/action"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

In comparaison, here the terraform code that works (keep in mind that an SP is deploying it, not my user, and its only role is Owner)

# Create a compute instance for each user
resource "azurerm_machine_learning_compute_instance" "aml_compute_instance" {
  name                          = "${var.user.mail_nickname}-${var.context.environment}-A8M-V2"
  machine_learning_workspace_id = var.machine_learning_workspace_id
  virtual_machine_size          = "STANDARD_A8M_V2"
  identity {
    type = "UserAssigned"
    identity_ids = [
      azurerm_user_assigned_identity.aml_user_assigned_identity.id
    ]
  }
  assign_to_user {
    object_id = var.user.object_id
    tenant_id = nonsensitive(var.secrets.TENANT_ID)
  }
  node_public_ip_enabled = false
  subnet_resource_id     = var.machine_learning_subnet_id
  description            = "Compute instance generated by Terraform for : ${var.user.mail_nickname}"

  tags = var.tags

  depends_on = [
    module.keyvault_policy_aml_user_assigned_identity,
    module.roles_aml_user_assigned_identity
  ]
}

I use the same subnet for the deployment of the Workspace and the compute instances (and also clusters). I only user 20-30 ips in my /24 subnet for now.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật