您好,我正在尝试在资源组 a 中创建 ARO 集群,而我的 vnet 位于不同的资源组 b 中。那么我该如何继续。
我尝试了以下命令
az aro create \
--resource-group $RESOURCEGROUP \
--name $CLUSTER \
--vnet aro-vnet \
--vnet-resource-group b\
--master-subnet master-subnet \
--worker-subnet worker-subnet
所以两个资源组的订阅id是一样的。我还检查了我在创建集群的资源组 a 上是否拥有贡献者权限。
我检查过,我认为我没有用户访问管理员权限,这是否会导致此问题?
当我执行上述命令时,出现以下错误
ForbiddenError: The client xx with object id xx does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write' over scope '/subscriptions/xx/resourceGroups/b/providers/Microsoft.Network/virtualNetworks/xx/providers/Microsoft.Authorization/roleAssignments/xx' or the scope is invalid. If access was recently granted, please refresh your credentials.