{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/363949882","pull_request_review_id":339505822,"id":363949882,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2Mzk0OTg4Mg==","diff_hunk":"@@ -133,25 +141,34 @@ def export_config(cmd,\n                   key=None,\n                   prefix=\"\",  # prefix to remove\n                   yes=False,\n+                  skip_features=False,\n                   # to-file parameters\n                   path=None,\n                   format_=None,\n                   separator=None,\n+                  naming_convention='pascal',\n                   # to-config-store parameters\n                   dest_name=None,\n                   dest_connection_string=None,\n                   dest_label=None,\n+                  preserve_labels=False,\n                   # to-app-service parameters\n-                  appservice_account=None,\n-                  skip_features=False,\n-                  naming_convention='pascal'):\n+                  appservice_account=None):\n     src_features = []\n     dest_features = []\n     dest_kvs = []\n     destination = destination.lower()\n     format_ = format_.lower() if format_ else None\n     naming_convention = naming_convention.lower()\n \n+    if destination == 'appconfig' and dest_label is not None and preserve_labels:\n+        raise CLIError(\"Export failed! Please provide only one of these arguments: 'dest-label' or 'preserve-labels'. See 'az appconfig kv export -h' for examples.\")\n+    if destination == 'appconfig' and preserve_labels:\n+        # We need dest_label to be the same as label for preview later.\n+        # This will have no effect on label while writing to config store\n+        # as we check preserve_labels again before labelling KVs.\n+        dest_label = label","path":"src/azure-cli/azure/cli/command_modules/appconfig/keyvalue.py","position":87,"original_position":87,"commit_id":"68cd4fb3aa7ce89b44f2119d64f401247fc713ff","original_commit_id":"68cd4fb3aa7ce89b44f2119d64f401247fc713ff","user":{"login":"avanigupta","id":5563494,"node_id":"MDQ6VXNlcjU1NjM0OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5563494?v=4","gravatar_id":"","url":"https://api.github.com/users/avanigupta","html_url":"https://github.com/avanigupta","followers_url":"https://api.github.com/users/avanigupta/followers","following_url":"https://api.github.com/users/avanigupta/following{/other_user}","gists_url":"https://api.github.com/users/avanigupta/gists{/gist_id}","starred_url":"https://api.github.com/users/avanigupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avanigupta/subscriptions","organizations_url":"https://api.github.com/users/avanigupta/orgs","repos_url":"https://api.github.com/users/avanigupta/repos","events_url":"https://api.github.com/users/avanigupta/events{/privacy}","received_events_url":"https://api.github.com/users/avanigupta/received_events","type":"User","site_admin":false},"body":"Sure\r\n\r\n---\r\nIn reply to: [363897991](https://github.com/Azure/azure-cli/pull/11756#discussion_r363897991) [](ancestors = 363897991)","created_at":"2020-01-07T21:04:02Z","updated_at":"2020-01-07T21:04:02Z","html_url":"https://github.com/Azure/azure-cli/pull/11756#discussion_r363949882","pull_request_url":"https://api.github.com/repos/Azure/azure-cli/pulls/11756","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments/363949882"},"html":{"href":"https://github.com/Azure/azure-cli/pull/11756#discussion_r363949882"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/11756"}},"in_reply_to_id":363897991},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-cli/pulls/11756","id":358832029,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU4ODMyMDI5","html_url":"https://github.com/Azure/azure-cli/pull/11756","diff_url":"https://github.com/Azure/azure-cli/pull/11756.diff","patch_url":"https://github.com/Azure/azure-cli/pull/11756.patch","issue_url":"https://api.github.com/repos/Azure/azure-cli/issues/11756","number":11756,"state":"open","locked":false,"title":"[AppConfig] Support import/export of all labels between 2 config stores","user":{"login":"avanigupta","id":5563494,"node_id":"MDQ6VXNlcjU1NjM0OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5563494?v=4","gravatar_id":"","url":"https://api.github.com/users/avanigupta","html_url":"https://github.com/avanigupta","followers_url":"https://api.github.com/users/avanigupta/followers","following_url":"https://api.github.com/users/avanigupta/following{/other_user}","gists_url":"https://api.github.com/users/avanigupta/gists{/gist_id}","starred_url":"https://api.github.com/users/avanigupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avanigupta/subscriptions","organizations_url":"https://api.github.com/users/avanigupta/orgs","repos_url":"https://api.github.com/users/avanigupta/repos","events_url":"https://api.github.com/users/avanigupta/events{/privacy}","received_events_url":"https://api.github.com/users/avanigupta/received_events","type":"User","site_admin":false},"body":"\r\n---\r\n\r\nThis checklist is used to make sure that common guidelines for a pull request are followed.\r\n\r\n- [x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see [Modifying change log](https://github.com/Azure/azure-cli/tree/master/doc/authoring_command_modules#modify-change-log)).\r\n\r\n- [x] I adhere to the [Command Guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/command_guidelines.md).\r\n","created_at":"2020-01-02T23:48:40Z","updated_at":"2020-01-07T21:04:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f9f6eb8f80d7574f00dba685abcd085a35755db","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Juliehzl","id":49508232,"node_id":"MDQ6VXNlcjQ5NTA4MjMy","avatar_url":"https://avatars0.githubusercontent.com/u/49508232?v=4","gravatar_id":"","url":"https://api.github.com/users/Juliehzl","html_url":"https://github.com/Juliehzl","followers_url":"https://api.github.com/users/Juliehzl/followers","following_url":"https://api.github.com/users/Juliehzl/following{/other_user}","gists_url":"https://api.github.com/users/Juliehzl/gists{/gist_id}","starred_url":"https://api.github.com/users/Juliehzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juliehzl/subscriptions","organizations_url":"https://api.github.com/users/Juliehzl/orgs","repos_url":"https://api.github.com/users/Juliehzl/repos","events_url":"https://api.github.com/users/Juliehzl/events{/privacy}","received_events_url":"https://api.github.com/users/Juliehzl/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-cli/pulls/11756/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-cli/pulls/11756/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/11756/comments","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/68cd4fb3aa7ce89b44f2119d64f401247fc713ff","head":{"label":"avanigupta:avanigupta/importexportalllabels","ref":"avanigupta/importexportalllabels","sha":"68cd4fb3aa7ce89b44f2119d64f401247fc713ff","user":{"login":"avanigupta","id":5563494,"node_id":"MDQ6VXNlcjU1NjM0OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5563494?v=4","gravatar_id":"","url":"https://api.github.com/users/avanigupta","html_url":"https://github.com/avanigupta","followers_url":"https://api.github.com/users/avanigupta/followers","following_url":"https://api.github.com/users/avanigupta/following{/other_user}","gists_url":"https://api.github.com/users/avanigupta/gists{/gist_id}","starred_url":"https://api.github.com/users/avanigupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avanigupta/subscriptions","organizations_url":"https://api.github.com/users/avanigupta/orgs","repos_url":"https://api.github.com/users/avanigupta/repos","events_url":"https://api.github.com/users/avanigupta/events{/privacy}","received_events_url":"https://api.github.com/users/avanigupta/received_events","type":"User","site_admin":false},"repo":{"id":206392956,"node_id":"MDEwOlJlcG9zaXRvcnkyMDYzOTI5NTY=","name":"azure-cli","full_name":"avanigupta/azure-cli","private":false,"owner":{"login":"avanigupta","id":5563494,"node_id":"MDQ6VXNlcjU1NjM0OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5563494?v=4","gravatar_id":"","url":"https://api.github.com/users/avanigupta","html_url":"https://github.com/avanigupta","followers_url":"https://api.github.com/users/avanigupta/followers","following_url":"https://api.github.com/users/avanigupta/following{/other_user}","gists_url":"https://api.github.com/users/avanigupta/gists{/gist_id}","starred_url":"https://api.github.com/users/avanigupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avanigupta/subscriptions","organizations_url":"https://api.github.com/users/avanigupta/orgs","repos_url":"https://api.github.com/users/avanigupta/repos","events_url":"https://api.github.com/users/avanigupta/events{/privacy}","received_events_url":"https://api.github.com/users/avanigupta/received_events","type":"User","site_admin":false},"html_url":"https://github.com/avanigupta/azure-cli","description":"Command-line tools for Azure.","fork":true,"url":"https://api.github.com/repos/avanigupta/azure-cli","forks_url":"https://api.github.com/repos/avanigupta/azure-cli/forks","keys_url":"https://api.github.com/repos/avanigupta/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avanigupta/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avanigupta/azure-cli/teams","hooks_url":"https://api.github.com/repos/avanigupta/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/avanigupta/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/avanigupta/azure-cli/events","assignees_url":"https://api.github.com/repos/avanigupta/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/avanigupta/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/avanigupta/azure-cli/tags","blobs_url":"https://api.github.com/repos/avanigupta/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avanigupta/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avanigupta/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/avanigupta/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avanigupta/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/avanigupta/azure-cli/languages","stargazers_url":"https://api.github.com/repos/avanigupta/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/avanigupta/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/avanigupta/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/avanigupta/azure-cli/subscription","commits_url":"https://api.github.com/repos/avanigupta/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/avanigupta/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/avanigupta/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/avanigupta/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/avanigupta/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/avanigupta/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avanigupta/azure-cli/merges","archive_url":"https://api.github.com/repos/avanigupta/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avanigupta/azure-cli/downloads","issues_url":"https://api.github.com/repos/avanigupta/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/avanigupta/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/avanigupta/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/avanigupta/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avanigupta/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/avanigupta/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/avanigupta/azure-cli/deployments","created_at":"2019-09-04T19:04:26Z","updated_at":"2020-01-06T21:00:23Z","pushed_at":"2020-01-07T01:53:17Z","git_url":"git://github.com/avanigupta/azure-cli.git","ssh_url":"git@github.com:avanigupta/azure-cli.git","clone_url":"https://github.com/avanigupta/azure-cli.git","svn_url":"https://github.com/avanigupta/azure-cli","homepage":null,"size":163068,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"82132887ebc0a891c5f54ed2a47cca6aed9733b9","user":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":51040886,"node_id":"MDEwOlJlcG9zaXRvcnk1MTA0MDg4Ng==","name":"azure-cli","full_name":"Azure/azure-cli","private":false,"owner":{"login":"Azure","id":6844498,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NDQ0OTg=","avatar_url":"https://avatars0.githubusercontent.com/u/6844498?v=4","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Azure/azure-cli","description":"Command-line tools for Azure.","fork":false,"url":"https://api.github.com/repos/Azure/azure-cli","forks_url":"https://api.github.com/repos/Azure/azure-cli/forks","keys_url":"https://api.github.com/repos/Azure/azure-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-cli/teams","hooks_url":"https://api.github.com/repos/Azure/azure-cli/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-cli/events","assignees_url":"https://api.github.com/repos/Azure/azure-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-cli/tags","blobs_url":"https://api.github.com/repos/Azure/azure-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-cli/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-cli/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-cli/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-cli/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-cli/subscription","commits_url":"https://api.github.com/repos/Azure/azure-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-cli/merges","archive_url":"https://api.github.com/repos/Azure/azure-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-cli/downloads","issues_url":"https://api.github.com/repos/Azure/azure-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-cli/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-cli/deployments","created_at":"2016-02-04T00:21:51Z","updated_at":"2020-01-07T14:15:24Z","pushed_at":"2020-01-07T20:44:47Z","git_url":"git://github.com/Azure/azure-cli.git","ssh_url":"git@github.com:Azure/azure-cli.git","clone_url":"https://github.com/Azure/azure-cli.git","svn_url":"https://github.com/Azure/azure-cli","homepage":null,"size":163393,"stargazers_count":1649,"watchers_count":1649,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1075,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":944,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1075,"open_issues":944,"watchers":1649,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/11756"},"html":{"href":"https://github.com/Azure/azure-cli/pull/11756"},"issue":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/11756"},"comments":{"href":"https://api.github.com/repos/Azure/azure-cli/issues/11756/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/11756/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-cli/pulls/11756/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-cli/statuses/68cd4fb3aa7ce89b44f2119d64f401247fc713ff"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"avanigupta"}}