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

Access Policy for Blob Index Tags #20452

Closed
freeloop914 opened this issue Nov 22, 2021 · 4 comments · Fixed by #21917
Closed

Access Policy for Blob Index Tags #20452

freeloop914 opened this issue Nov 22, 2021 · 4 comments · Fixed by #21917
Assignees

Comments

@freeloop914
Copy link

freeloop914 commented Nov 22, 2021

Is your feature request related to a problem? Please describe.
This is an extended request from #20368

az storage container policy create --name "mypolicy" --container-name "mycontainer" --account-name "myaccount"  --permissions wt

valid values are (a)dd (c)reate (d)elete (l)ist (r)ead (w)rite or a combination thereof.

Describe the solution you'd like
Add t f to acceptable values for --permissions.

Additional context
az powershell works good

$SharedAccessPolicy = @{
    Context = $context
    Policy = "mypolicy"
    Container = "mycontainer"
    ExpiryTime = (Get-Date).ToUniversalTime().AddYears(1)
    Permission = "wt"
}
New-AzStorageContainerStoredAccessPolicy @SharedAccessPolicy
@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Nov 22, 2021
@yonzhan yonzhan added the Storage az storage label Nov 22, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 22, 2021
@yonzhan yonzhan removed customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 22, 2021
@yonzhan yonzhan added this to the Jan 2022 (2022-02-01) milestone Nov 22, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 22, 2021

storage

@jiasli
Copy link
Member

jiasli commented Nov 30, 2021

@freeloop914, sorry but I don't get your point about "extended" - is any additional feature needed compared to #20368?

@freeloop914
Copy link
Author

@freeloop914, sorry but I don't get your point about "extended" - is any additional feature needed compared to #20368?

I mean #20368 only mentioned az storage account generate-sas.
I created this feature request is for az storage container policy

@freeloop914
Copy link
Author

freeloop914 commented Dec 28, 2021

@jiasli
Another issue:
I used azure powershell to set access policy with 'wt' permission.
Then I used az storage container policy list to get the list and it returns error.

$ az storage container policy list -c internal
ERROR: Client-Request-ID=2abdb54d-6794-11ec-9581-c8348e334d1c Retry policy did not allow for a retry: Server-Timestamp=Tue, 28 Dec 2021 04:11:00 GMT, Server-Request-ID=d27352ac-b01e-002e-66a0-fbff8c000000, HTTP status code=409, Exception=Stored access policy contains a permission that is not supported by this version. ErrorCode: FeatureVersionMismatch<?xml version="1.0" encoding="utf-8"?><Error><Code>FeatureVersionMismatch</Code><Message>Stored access policy contains a permission that is not supported by this version.RequestId:d27352ac-b01e-002e-66a0-fbff8c000000Time:2021-12-28T04:11:01.7761785Z</Message></Error>.
ERROR: Stored access policy contains a permission that is not supported by this version. ErrorCode: FeatureVersionMismatch
<?xml version="1.0" encoding="utf-8"?><Error><Code>FeatureVersionMismatch</Code><Message>Stored access policy contains a permission that is not supported by this version.
RequestId:d27352ac-b01e-002e-66a0-fbff8c000000
Time:2021-12-28T04:11:01.7761785Z</Message></Error>

evelyn-ys pushed a commit that referenced this issue Jun 7, 2022
…\show\delete`: Add new permissions, currently `racwdxyltmei`, Migrate to track2 sdk (#21917)

* storage account generate-sas migration

* storage container generate-sas

* fix account and container generate-sas tests

* error types have changed in new sdk

* lint

* lint

* blob generate-sas

* blob generate-sas fix as-user and full-url

* lint

* lint

* help not matching param

* lint

* storage container policy create/update/show/list/delete

* lint test

* rurun test

* rurun test

* fix container policy show output datetime format

* remove format datetime

* fix pr review comments,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment