Solution skill
Stored access policies only work with service SAS, not user delegation SAS
Complete solution
Shows how to fix stored access policies only work with service SAS, not user delegation SAS. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
If you want policy-based revocation, use service SAS and plan around the five-policy cap per container. For user delegation SAS, know that the kill switch is the Entra identity, not a policy.
Steps
- If you want policy-based revocation, use service SAS and plan around the five-policy cap per container.
- For user delegation SAS, know that the kill switch is the Entra identity, not a policy.
When to use
You are seeing this: Account SAS and user delegation SAS do not support them, and each container caps out at five policies. Use this skill when you run into "Stored access policies only work with service SAS, not user delegation SAS".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Stored access policies let you revoke a whole set of SAS tokens by deleting the policy, but they only work with service SAS tokens. Account SAS and user delegation SAS do not support them, and each container caps out at five policies. If you are on a user delegation SAS, revocation means revoking the Microsoft Entra credentials behind the delegation key instead.
Verified resolution: If you want policy-based revocation, use service SAS and plan around the five-policy cap per container. For user delegation SAS, know that the kill switch is the Entra identity, not a policy.
Source URL: https://learn.microsoft.com/en-us/training/modules/implement-storage-account-security/4-manage-stored-access-policies
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_fhXBy9YAVZR3nGzcmdi4xg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Stored access policies only work with service SAS, not user delegation SAS <span>— Vectle</span></a>