{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-policy/pulls/comments/213100739","pull_request_review_id":149865896,"id":213100739,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzEwMDczOQ==","diff_hunk":"@@ -0,0 +1,27 @@\n+{\n+    \"properties\": {\n+        \"displayName\": \"Audit authorization rules on Event Hub namespaces\",\n+        \"mode\": \"Indexed\",\n+        \"description\": \"Event Hub clients should not use a namespace level access policy that provides access to all queues and topics in a namespace. To align with the least previlege security model, you shoud create access policies at the entity level for queues and topics to provide access to only the specific entity\",\n+        \"metadata\": {\n+            \"category\": \"Event Hub\"\n+        },\n+        \"policyRule\": {\n+            \"if\": {\n+              \"allOf\": [\n+                {\n+                  \"field\": \"name\",\n+                  \"notEquals\": \"RootManageSharedAccessKey\"\n+                },\n+                {\n+                  \"field\": \"type\",\n+                  \"equals\": \"Microsoft.EventHub/namespaces/authorizationRules\"\n+                }\n+              ]\n+            },\n+            \"then\": {\n+              \"effect\": \"Audit\"\n+            }\n+        }\n+    },","path":"samples/EventHub/audit-event-hub-authorization/azurepolicy.json","position":26,"original_position":26,"commit_id":"1edbaee8cb4818bfe65f220f7b2f6c419df2eb3b","original_commit_id":"1edbaee8cb4818bfe65f220f7b2f6c419df2eb3b","user":{"login":"camillemarie","id":804366,"node_id":"MDQ6VXNlcjgwNDM2Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/804366?v=4","gravatar_id":"","url":"https://api.github.com/users/camillemarie","html_url":"https://github.com/camillemarie","followers_url":"https://api.github.com/users/camillemarie/followers","following_url":"https://api.github.com/users/camillemarie/following{/other_user}","gists_url":"https://api.github.com/users/camillemarie/gists{/gist_id}","starred_url":"https://api.github.com/users/camillemarie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camillemarie/subscriptions","organizations_url":"https://api.github.com/users/camillemarie/orgs","repos_url":"https://api.github.com/users/camillemarie/repos","events_url":"https://api.github.com/users/camillemarie/events{/privacy}","received_events_url":"https://api.github.com/users/camillemarie/received_events","type":"User","site_admin":false},"body":"applies to all azurepolicy.json files","created_at":"2018-08-27T20:16:28Z","updated_at":"2018-08-27T20:16:35Z","html_url":"https://github.com/Azure/azure-policy/pull/165#discussion_r213100739","pull_request_url":"https://api.github.com/repos/Azure/azure-policy/pulls/165","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/comments/213100739"},"html":{"href":"https://github.com/Azure/azure-policy/pull/165#discussion_r213100739"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/165"}},"in_reply_to_id":213100150},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-policy/pulls/165","id":208712903,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzEyOTAz","html_url":"https://github.com/Azure/azure-policy/pull/165","diff_url":"https://github.com/Azure/azure-policy/pull/165.diff","patch_url":"https://github.com/Azure/azure-policy/pull/165.patch","issue_url":"https://api.github.com/repos/Azure/azure-policy/issues/165","number":165,"state":"open","locked":false,"title":"audit-event-hub-authorization & deploy-network-watcher-when-virtual-network-created & deploy-oms-vm-extention-windows-vm & event-hub-entity-authorization-rules-audit & key-vault-diagnostic-logs-audit & logic-apps-diagnostic-logs-audit","user":{"login":"prkuma","id":41343892,"node_id":"MDQ6VXNlcjQxMzQzODky","avatar_url":"https://avatars0.githubusercontent.com/u/41343892?v=4","gravatar_id":"","url":"https://api.github.com/users/prkuma","html_url":"https://github.com/prkuma","followers_url":"https://api.github.com/users/prkuma/followers","following_url":"https://api.github.com/users/prkuma/following{/other_user}","gists_url":"https://api.github.com/users/prkuma/gists{/gist_id}","starred_url":"https://api.github.com/users/prkuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prkuma/subscriptions","organizations_url":"https://api.github.com/users/prkuma/orgs","repos_url":"https://api.github.com/users/prkuma/repos","events_url":"https://api.github.com/users/prkuma/events{/privacy}","received_events_url":"https://api.github.com/users/prkuma/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-16T00:00:47Z","updated_at":"2018-08-27T20:16:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d42160940524ba2001381f5fff8b065d6181a72","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-policy/pulls/165/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-policy/pulls/165/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-policy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-policy/issues/165/comments","statuses_url":"https://api.github.com/repos/Azure/azure-policy/statuses/1edbaee8cb4818bfe65f220f7b2f6c419df2eb3b","head":{"label":"prkuma:newBranch8","ref":"newBranch8","sha":"1edbaee8cb4818bfe65f220f7b2f6c419df2eb3b","user":{"login":"prkuma","id":41343892,"node_id":"MDQ6VXNlcjQxMzQzODky","avatar_url":"https://avatars0.githubusercontent.com/u/41343892?v=4","gravatar_id":"","url":"https://api.github.com/users/prkuma","html_url":"https://github.com/prkuma","followers_url":"https://api.github.com/users/prkuma/followers","following_url":"https://api.github.com/users/prkuma/following{/other_user}","gists_url":"https://api.github.com/users/prkuma/gists{/gist_id}","starred_url":"https://api.github.com/users/prkuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prkuma/subscriptions","organizations_url":"https://api.github.com/users/prkuma/orgs","repos_url":"https://api.github.com/users/prkuma/repos","events_url":"https://api.github.com/users/prkuma/events{/privacy}","received_events_url":"https://api.github.com/users/prkuma/received_events","type":"User","site_admin":false},"repo":{"id":143073650,"node_id":"MDEwOlJlcG9zaXRvcnkxNDMwNzM2NTA=","name":"azure-policy","full_name":"prkuma/azure-policy","owner":{"login":"prkuma","id":41343892,"node_id":"MDQ6VXNlcjQxMzQzODky","avatar_url":"https://avatars0.githubusercontent.com/u/41343892?v=4","gravatar_id":"","url":"https://api.github.com/users/prkuma","html_url":"https://github.com/prkuma","followers_url":"https://api.github.com/users/prkuma/followers","following_url":"https://api.github.com/users/prkuma/following{/other_user}","gists_url":"https://api.github.com/users/prkuma/gists{/gist_id}","starred_url":"https://api.github.com/users/prkuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prkuma/subscriptions","organizations_url":"https://api.github.com/users/prkuma/orgs","repos_url":"https://api.github.com/users/prkuma/repos","events_url":"https://api.github.com/users/prkuma/events{/privacy}","received_events_url":"https://api.github.com/users/prkuma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prkuma/azure-policy","description":"Repository for Azure Resource Policy samples","fork":true,"url":"https://api.github.com/repos/prkuma/azure-policy","forks_url":"https://api.github.com/repos/prkuma/azure-policy/forks","keys_url":"https://api.github.com/repos/prkuma/azure-policy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prkuma/azure-policy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prkuma/azure-policy/teams","hooks_url":"https://api.github.com/repos/prkuma/azure-policy/hooks","issue_events_url":"https://api.github.com/repos/prkuma/azure-policy/issues/events{/number}","events_url":"https://api.github.com/repos/prkuma/azure-policy/events","assignees_url":"https://api.github.com/repos/prkuma/azure-policy/assignees{/user}","branches_url":"https://api.github.com/repos/prkuma/azure-policy/branches{/branch}","tags_url":"https://api.github.com/repos/prkuma/azure-policy/tags","blobs_url":"https://api.github.com/repos/prkuma/azure-policy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prkuma/azure-policy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prkuma/azure-policy/git/refs{/sha}","trees_url":"https://api.github.com/repos/prkuma/azure-policy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prkuma/azure-policy/statuses/{sha}","languages_url":"https://api.github.com/repos/prkuma/azure-policy/languages","stargazers_url":"https://api.github.com/repos/prkuma/azure-policy/stargazers","contributors_url":"https://api.github.com/repos/prkuma/azure-policy/contributors","subscribers_url":"https://api.github.com/repos/prkuma/azure-policy/subscribers","subscription_url":"https://api.github.com/repos/prkuma/azure-policy/subscription","commits_url":"https://api.github.com/repos/prkuma/azure-policy/commits{/sha}","git_commits_url":"https://api.github.com/repos/prkuma/azure-policy/git/commits{/sha}","comments_url":"https://api.github.com/repos/prkuma/azure-policy/comments{/number}","issue_comment_url":"https://api.github.com/repos/prkuma/azure-policy/issues/comments{/number}","contents_url":"https://api.github.com/repos/prkuma/azure-policy/contents/{+path}","compare_url":"https://api.github.com/repos/prkuma/azure-policy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prkuma/azure-policy/merges","archive_url":"https://api.github.com/repos/prkuma/azure-policy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prkuma/azure-policy/downloads","issues_url":"https://api.github.com/repos/prkuma/azure-policy/issues{/number}","pulls_url":"https://api.github.com/repos/prkuma/azure-policy/pulls{/number}","milestones_url":"https://api.github.com/repos/prkuma/azure-policy/milestones{/number}","notifications_url":"https://api.github.com/repos/prkuma/azure-policy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prkuma/azure-policy/labels{/name}","releases_url":"https://api.github.com/repos/prkuma/azure-policy/releases{/id}","deployments_url":"https://api.github.com/repos/prkuma/azure-policy/deployments","created_at":"2018-07-31T21:49:43Z","updated_at":"2018-08-21T17:44:45Z","pushed_at":"2018-08-27T16:33:53Z","git_url":"git://github.com/prkuma/azure-policy.git","ssh_url":"git@github.com:prkuma/azure-policy.git","clone_url":"https://github.com/prkuma/azure-policy.git","svn_url":"https://github.com/prkuma/azure-policy","homepage":null,"size":661,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Azure:master","ref":"master","sha":"3edf67e3d78d55f9a9aa5d27bb013493bf674a54","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":98492017,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQ5MjAxNw==","name":"azure-policy","full_name":"Azure/azure-policy","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},"private":false,"html_url":"https://github.com/Azure/azure-policy","description":"Repository for Azure Resource Policy samples","fork":false,"url":"https://api.github.com/repos/Azure/azure-policy","forks_url":"https://api.github.com/repos/Azure/azure-policy/forks","keys_url":"https://api.github.com/repos/Azure/azure-policy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-policy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-policy/teams","hooks_url":"https://api.github.com/repos/Azure/azure-policy/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-policy/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-policy/events","assignees_url":"https://api.github.com/repos/Azure/azure-policy/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-policy/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-policy/tags","blobs_url":"https://api.github.com/repos/Azure/azure-policy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-policy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-policy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-policy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-policy/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-policy/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-policy/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-policy/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-policy/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-policy/subscription","commits_url":"https://api.github.com/repos/Azure/azure-policy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-policy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-policy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-policy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-policy/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-policy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-policy/merges","archive_url":"https://api.github.com/repos/Azure/azure-policy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-policy/downloads","issues_url":"https://api.github.com/repos/Azure/azure-policy/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-policy/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-policy/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-policy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-policy/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-policy/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-policy/deployments","created_at":"2017-07-27T03:58:06Z","updated_at":"2018-08-27T20:12:49Z","pushed_at":"2018-08-27T16:33:55Z","git_url":"git://github.com/Azure/azure-policy.git","ssh_url":"git@github.com:Azure/azure-policy.git","clone_url":"https://github.com/Azure/azure-policy.git","svn_url":"https://github.com/Azure/azure-policy","homepage":null,"size":458,"stargazers_count":65,"watchers_count":65,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"archived":false,"open_issues_count":32,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":64,"open_issues":32,"watchers":65,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/165"},"html":{"href":"https://github.com/Azure/azure-policy/pull/165"},"issue":{"href":"https://api.github.com/repos/Azure/azure-policy/issues/165"},"comments":{"href":"https://api.github.com/repos/Azure/azure-policy/issues/165/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/165/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-policy/pulls/165/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-policy/statuses/1edbaee8cb4818bfe65f220f7b2f6c419df2eb3b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"camillemarie"}}