Skip to content

[Storage] --if-modified-since precision only up to minute #1563

Closed

Description

As you can see I passed a date time with precision to seconds below and get error.

C:\tmp>az storage container metadata update -n hasontestsetacl --metadata "a=1 b=2 c=3" --if-modified-since 2018-01-01T00:00:00Z
usage: az storage container metadata update [-h]
                                            [--output {json,tsv,list,table,jsonc}]
                                            [--verbose] [--debug]
                                            [--query JMESPATH]
                                            [--timeout TIMEOUT]
                                            [--metadata METADATA [METADATA ...]]
                                            [--if-modified-since IF_MODIFIED_SINCE]
                                            [--sas-token SAS_TOKEN]
                                            [--account-name ACCOUNT_NAME]
                                            --name CONTAINER_NAME
                                            [--account-key ACCOUNT_KEY]
                                            [--lease-id LEASE_ID]
                                            [--connection-string CONNECTION_STRING]
az storage container metadata update: error: argument --if-modified-since: invalid datetime_type value: '2018-01-01T00:00:00Z'
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