Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage file share resource manager ID is incorrect #24568

Open
magodo opened this issue Jun 25, 2023 · 3 comments
Open

Storage file share resource manager ID is incorrect #24568

magodo opened this issue Jun 25, 2023 · 3 comments
Labels
Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@magodo
Copy link
Contributor

magodo commented Jun 25, 2023

The resource manager ID of a storage file share is defined as below (link):

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}

While when assigning a role to the file share resource via Portal/CLI, it uses the following format:

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/fileshares/{shareName}

The difference is that the last segment is named shares vs fileshares.

  • Portal:

image

Using the ID format that is defined in the spec (i.e. ending with shares) won't work, at least for Azure RBAC.

@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 25, 2023
@JackTn JackTn added Storage Storage Service (Queues, Blobs, Files) Service Attention Workflow: This issue is responsible by Azure service team. labels Jun 26, 2023
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 26, 2023
@ghost
Copy link

ghost commented Jun 26, 2023

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Issue Details

The resource manager ID of a storage file share is defined as below (link):

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}

While when assigning a role to the file share resource via Portal/CLI, it uses the following format:

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/fileshares/{shareName}

The difference is that the last segment is named shares vs fileshares.

  • Portal:

image

Using the ID format that is defined in the spec (i.e. ending with shares) won't work, at least for Azure RBAC.

Author: magodo
Assignees: -
Labels:

Storage, Service Attention, needs-triage

Milestone: -

@magodo
Copy link
Contributor Author

magodo commented Oct 26, 2023

ping @JackTn

@gstephenhr
Copy link

hitting this December 2024

Azure/bicep-types-az#1532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

3 participants