{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/30393","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/30393/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/30393/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/30393/events","html_url":"https://github.com/ansible/ansible/issues/30393","id":257891236,"number":30393,"title":"azure_rm_virtualmachine can't delete objects from another resource group","user":{"login":"nitzmahone","id":6775756,"avatar_url":"https://avatars1.githubusercontent.com/u/6775756?v=4","gravatar_id":"","url":"https://api.github.com/users/nitzmahone","html_url":"https://github.com/nitzmahone","followers_url":"https://api.github.com/users/nitzmahone/followers","following_url":"https://api.github.com/users/nitzmahone/following{/other_user}","gists_url":"https://api.github.com/users/nitzmahone/gists{/gist_id}","starred_url":"https://api.github.com/users/nitzmahone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitzmahone/subscriptions","organizations_url":"https://api.github.com/users/nitzmahone/orgs","repos_url":"https://api.github.com/users/nitzmahone/repos","events_url":"https://api.github.com/users/nitzmahone/events{/privacy}","received_events_url":"https://api.github.com/users/nitzmahone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-15T00:09:48Z","updated_at":"2017-09-15T00:09:48Z","closed_at":null,"author_association":"MEMBER","body":"##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nazure_rm_virtualmachine\r\n\r\n##### ANSIBLE VERSION\r\n2.4.0\r\n\r\n##### CONFIGURATION\r\nNA\r\n\r\n##### OS / ENVIRONMENT\r\nNA\r\n\r\n##### SUMMARY\r\nazure_rm_virtualmachine by default will try to delete attached NICs and public IPs- the deletion code assumes they live in the same resource group, but that's no longer always the case\r\n\r\n##### STEPS TO REPRODUCE\r\nCreate a VM with a NIC in another RG, then try to delete it with `state: absent` from Ansible.\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\nNIC is deleted, regardless of parent resource group\r\n\r\n##### ACTUAL RESULTS\r\nNIC orphaned in another resource group, \"Error deleting network interface ... \"\r\n\r\n"}}
{"actor":{"display_login":"nitzmahone"}}