{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/6943","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/6943/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/6943/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/6943/events","html_url":"https://github.com/Azure/azure-cli/issues/6943","id":346797948,"node_id":"MDU6SXNzdWUzNDY3OTc5NDg=","number":6943,"title":"Powershell \"az sql db export\" doesn't tolerate passwords with special characters","user":{"login":"dkempner","id":2532112,"node_id":"MDQ6VXNlcjI1MzIxMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2532112?v=4","gravatar_id":"","url":"https://api.github.com/users/dkempner","html_url":"https://github.com/dkempner","followers_url":"https://api.github.com/users/dkempner/followers","following_url":"https://api.github.com/users/dkempner/following{/other_user}","gists_url":"https://api.github.com/users/dkempner/gists{/gist_id}","starred_url":"https://api.github.com/users/dkempner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkempner/subscriptions","organizations_url":"https://api.github.com/users/dkempner/orgs","repos_url":"https://api.github.com/users/dkempner/repos","events_url":"https://api.github.com/users/dkempner/events{/privacy}","received_events_url":"https://api.github.com/users/dkempner/received_events","type":"User","site_admin":false},"labels":[{"id":418940486,"node_id":"MDU6TGFiZWw0MTg5NDA0ODY=","url":"https://api.github.com/repos/Azure/azure-cli/labels/SQL","name":"SQL","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-01T22:49:34Z","updated_at":"2018-08-02T17:53:43Z","closed_at":"2018-08-02T17:53:43Z","author_association":"NONE","body":"**Describe the bug**\r\nAttempting to use a password with a special character throws an unexpected error.\r\n\r\n**To Reproduce**\r\n\r\n1. Open Powershell\r\n2. Run the below command noting the special characters in the password parameter:\r\n\r\n`az sql db export -u \"MyUsername\" -p 'aaa-a,aaa^>?a}a' -n \"MyDb\" -g \"MyResourceGroup\" -s \"MyServer\" --storage-key \"MyStorageKey\" --storage-key-type \"StorageAccessKey\" --storage-uri \"uri\"`\r\n\r\n3. Note that you get the error message \r\n\r\n`The filename, directory name, or volume label syntax is incorrect.`\r\n\r\n**Expected behavior**\r\nRun the db export \r\n\r\n**Environment summary**\r\nPowerShell on Windows 10\r\naz --version: 2.0.42\r\n\r\n**Additional context**\r\n\r\n- Doesn't work if you convert -p to a SecureString\r\n- The script works in the Azure Portal Shell, but doesn't work in my local PowerShell env."}}
{"actor":{"display_login":"dkempner"}}