Actions to be taken for errors occurring during role creation (Cloud for Microsoft Azure)

Virtual Storage Platform One SDS Block and SDS Cloud Troubleshooting Reference

Version
1.19.x
Audience
anonymous
Part Number
MK-24VSP1SDS029-03
ft:lastEdition
2026-04-07

When building a storage cluster, an error may occur if a role with the same name as the one you are attempting to create already exists. This can happen if you attempt to run the setup again using the same storage cluster name.

Follow the steps in Deleting storage clusters (Cloud for Microsoft Azure) of the VSP One SDS Block and SDS Cloud System Administration to delete the created roles and resources.

If you have already deleted the resource or cannot delete it using the method described in the VSP One SDS Block and SDS Cloud System Administration, you can delete the role using the following procedure.

If the issue persists after implementing the methods described in the VSP One SDS Block and SDS Cloud System Administration, refer to the following procedure to perform deletion.

In the storage cluster, we have created and used custom roles with the following names. The following procedure will remove these roles.

  • <storage cluster name>-role
  • <storage cluster name>-resourceGroup-role
  • <storage cluster name>-diskEncryptionSets-role*

* Only when using Managed Disk Encryption

Note on the procedure

The following procedure deletes all roles with matching names within your subscription. Ensure that roles with the same name are not used elsewhere before proceeding.

  1. Sign in to the Azure portal.
  2. Connect to any environment capable of running the Azure CLI (for example, Cloud Shell).

    The following steps describe the procedure using Cloud Shell.

  3. Execute the following command to set the context to the current subscription.
    az account set --subscription "<Subscription ID>"
  4. Verify the information for the custom role being created. Replace <storage cluster name> with the value specified for the clusterName parameter during setup.
    CLUSTER_NAME="<storage cluster name>"
    SUFFIX="role resourceGroup-role diskEncryptionSets-role"
    ROLES=$(for t in $SUFFIX; do
      az role definition list --name "$CLUSTER_NAME-$t" \
        --query "[].roleName" --output tsv; done)
    echo $ROLES
  5. Obtain the resource allocation information for each role.
    ASSIGNMENT_IDS=$(for t in $SUFFIX
      do az role assignment list --all \
        --query "[?roleDefinitionName=='$CLUSTER_NAME-$t'].id" \
        --output tsv; done)
    echo $ASSIGNMENT_IDS
  6. Delete all role assignment information for the resource.
    [ -n "$ASSIGNMENT_IDS" ] &&
      az role assignment delete --ids $ASSIGNMENT_IDS
  7. Obtain the ID of the created role.
    ROLE_NAMES=$(for r in $ROLES
      do az role definition list --name "$r" \
        --query "[].name" --output tsv; done)
    echo $ROLE_NAMES
  8. Delete the created role.
    [ -n "$ROLE_NAMES" ] &&
      for n in $ROLE_NAMES
      do az role definition delete --name "$n"; done