Skip to content

[Storage] az storage container policy create --expiry: the precision is only up to minute #1560

Closed

Description

As you can see from the output below, the only correct input for --expiry is 2018-01-01T00:00Z All other input format which I thought is correct failed.

az storage container policy create -c hasontestsetacl -n acl3 --expiry 2018/1/1 --permissions r
az storage container policy create: error: argument --expiry: invalid datetime_string_type value: '2018/1/1'


az storage container policy create -c hasontestsetacl -n acl3 --expiry 2018-1-1 --permissions r
az storage container policy create: error: argument --expiry: invalid datetime_string_type value: '2018-1-1'


az storage container policy create -c hasontestsetacl -n acl3 --expiry 2018-01-01T00:00:00Z --permissions r
az storage container policy create: error: argument --expiry: invalid datetime_string_type value: '2018-01-01T00:00:00Z'

az storage container policy create -c hasontestsetacl -n acl3 --expiry 2018-01-01T00:00Z --permissions r
SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions