Skip to content

SQL DB examples are errorneous #7800

Description

@stoune

After almost one hour or failed attempts, I understand that arguments are positional and should go in strict order. The supplied examples in this guide doesn't work.

  1. You have to mention that output of command:
    az storage blob generate-sas --account-name myAccountName -c myContainer -n myBacpac.bacpac
    --permissions w --expiry 2018-01-01T00:00:00Z
    Should be inserted as --storage-key with ? prefix. Expiry date should be corrected according to user need. This is SAS token expiration.
  2. The most important:
    Correct command parameters order:
    --storage-uri
    --storage-key-type
    --storage-key
    If you try with the order listed in the example your command fails with error:
    az sql db export: error: the following arguments are required: --storage-key-type, --storage-uri

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

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

Metadata

Metadata

Labels

SQLaz sqlService AttentionThis issue is responsible by Azure service team.needs-triageThis is a new issue that needs to be triaged to the appropriate team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions