{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/1785","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1785/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1785/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/1785/events","html_url":"https://github.com/Azure/azure-powershell/issues/1785","id":132025042,"number":1785,"title":"New-AzureRmPolicyDefinition Policy paramater doesn't handle paths with spaces.","user":{"login":"sjwaight","id":4828246,"avatar_url":"https://avatars.githubusercontent.com/u/4828246?v=3","gravatar_id":"","url":"https://api.github.com/users/sjwaight","html_url":"https://github.com/sjwaight","followers_url":"https://api.github.com/users/sjwaight/followers","following_url":"https://api.github.com/users/sjwaight/following{/other_user}","gists_url":"https://api.github.com/users/sjwaight/gists{/gist_id}","starred_url":"https://api.github.com/users/sjwaight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjwaight/subscriptions","organizations_url":"https://api.github.com/users/sjwaight/orgs","repos_url":"https://api.github.com/users/sjwaight/repos","events_url":"https://api.github.com/users/sjwaight/events{/privacy}","received_events_url":"https://api.github.com/users/sjwaight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-07T23:34:13Z","updated_at":"2016-02-07T23:34:13Z","closed_at":null,"body":"Place Policy files in a path that contains spaces even when using a relative path for the filename:\r\n\r\nC:\\Work\\Azure Architecture and Automation\\VNet ARM Templates\\Networking\\ARM Policies> \r\n\r\nNew-AzureRmPolicyDefinition -Name EnforceMandatoryTags -DisplayName \"Enforce Mandatory Tags\" -Description \"Ensures that any created resources have required tags present\" -Policy .\\enforce-tags.json\r\n\r\nError: Unexpected character encountered while parsing number: \\. Path ''\r\n\r\nThe implementation appears to use a common FileUtilities implementation so this may also impact other Cmdlets.\r\n\r\nIf I pass full path enclosed in quotes then Definition is created.\r\n\r\nIf by design (i.e. requires full absolute path in quotes) then please close."}}