{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/8521","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/8521/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/8521/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/8521/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/8521","id":322584602,"number":8521,"title":"Add instructions on how to create policy definitions and initiative definitions in a management group via PowerShell","user":{"login":"DaRosenberg","id":3889090,"avatar_url":"https://avatars1.githubusercontent.com/u/3889090?v=4","gravatar_id":"","url":"https://api.github.com/users/DaRosenberg","html_url":"https://github.com/DaRosenberg","followers_url":"https://api.github.com/users/DaRosenberg/followers","following_url":"https://api.github.com/users/DaRosenberg/following{/other_user}","gists_url":"https://api.github.com/users/DaRosenberg/gists{/gist_id}","starred_url":"https://api.github.com/users/DaRosenberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaRosenberg/subscriptions","organizations_url":"https://api.github.com/users/DaRosenberg/orgs","repos_url":"https://api.github.com/users/DaRosenberg/repos","events_url":"https://api.github.com/users/DaRosenberg/events{/privacy}","received_events_url":"https://api.github.com/users/DaRosenberg/received_events","type":"User","site_admin":false},"labels":[{"id":836704823,"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/assigned-to-author","name":"assigned-to-author","color":"e01f8f","default":false},{"id":749026498,"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/azure-policy","name":"azure-policy","color":"ededed","default":false},{"id":836704994,"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/doc-enhancement","name":"doc-enhancement","color":"50f936","default":false},{"id":836702742,"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":{"login":"DCtheGeek","id":11442954,"avatar_url":"https://avatars0.githubusercontent.com/u/11442954?v=4","gravatar_id":"","url":"https://api.github.com/users/DCtheGeek","html_url":"https://github.com/DCtheGeek","followers_url":"https://api.github.com/users/DCtheGeek/followers","following_url":"https://api.github.com/users/DCtheGeek/following{/other_user}","gists_url":"https://api.github.com/users/DCtheGeek/gists{/gist_id}","starred_url":"https://api.github.com/users/DCtheGeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DCtheGeek/subscriptions","organizations_url":"https://api.github.com/users/DCtheGeek/orgs","repos_url":"https://api.github.com/users/DCtheGeek/repos","events_url":"https://api.github.com/users/DCtheGeek/events{/privacy}","received_events_url":"https://api.github.com/users/DCtheGeek/received_events","type":"User","site_admin":false},"assignees":[{"login":"DCtheGeek","id":11442954,"avatar_url":"https://avatars0.githubusercontent.com/u/11442954?v=4","gravatar_id":"","url":"https://api.github.com/users/DCtheGeek","html_url":"https://github.com/DCtheGeek","followers_url":"https://api.github.com/users/DCtheGeek/followers","following_url":"https://api.github.com/users/DCtheGeek/following{/other_user}","gists_url":"https://api.github.com/users/DCtheGeek/gists{/gist_id}","starred_url":"https://api.github.com/users/DCtheGeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DCtheGeek/subscriptions","organizations_url":"https://api.github.com/users/DCtheGeek/orgs","repos_url":"https://api.github.com/users/DCtheGeek/repos","events_url":"https://api.github.com/users/DCtheGeek/events{/privacy}","received_events_url":"https://api.github.com/users/DCtheGeek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-05-13T11:08:22Z","updated_at":"2018-05-15T08:52:52Z","closed_at":"2018-05-15T08:52:52Z","author_association":"NONE","body":"This documentation does not explain how to create policy definitions or initiative definitions in a **management group** rather than directly on a subscription, using PowerShell. It's simple enough to do this via the portal, but nowhere can I find any information on how to do this using PowerShell. When using PowerShell, any definitions always get created on the subscription of the current AzureRmContext.\n\nIt would also be nice if this page had a description of how to even create initiative definitions using PowerShell at all. \n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 4eb454e0-eb5c-3ed2-c276-b4e3f1bc0ebd\n* Version Independent ID: 9cb7c2d2-ca6b-829a-40a2-f69e90210086\n* Content: [Use Azure Policy to create and manage policies to enforce organizational compliance](https://docs.microsoft.com/en-us/azure/azure-policy/create-manage-policy#create-a-policy-definition-with-powershell)\n* Content Source: [articles/azure-policy/create-manage-policy.md](https://github.com/Microsoft/azure-docs/blob/master/articles/azure-policy/create-manage-policy.md)\n* Service: **azure-policy**\n* GitHub Login: @DCtheGeek\n* Microsoft Alias: **dacoulte**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/389093439","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/8521#issuecomment-389093439","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/8521","id":389093439,"user":{"login":"femsulu","id":34327711,"avatar_url":"https://avatars1.githubusercontent.com/u/34327711?v=4","gravatar_id":"","url":"https://api.github.com/users/femsulu","html_url":"https://github.com/femsulu","followers_url":"https://api.github.com/users/femsulu/followers","following_url":"https://api.github.com/users/femsulu/following{/other_user}","gists_url":"https://api.github.com/users/femsulu/gists{/gist_id}","starred_url":"https://api.github.com/users/femsulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femsulu/subscriptions","organizations_url":"https://api.github.com/users/femsulu/orgs","repos_url":"https://api.github.com/users/femsulu/repos","events_url":"https://api.github.com/users/femsulu/events{/privacy}","received_events_url":"https://api.github.com/users/femsulu/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T08:52:52Z","updated_at":"2018-05-15T08:52:52Z","author_association":"MEMBER","body":"@DaRosenberg We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion."}}
{"actor":{"display_login":"femsulu"}}