{"action":"created","issue":{"url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/102","labels_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/102/comments","events_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/102/events","html_url":"https://github.com/MSOpenTech/packer-azure/issues/102","id":108089073,"number":102,"title":"Removing temporary Azure Disk fails","user":{"login":"nitrat7","id":13961274,"avatar_url":"https://avatars.githubusercontent.com/u/13961274?v=3","gravatar_id":"","url":"https://api.github.com/users/nitrat7","html_url":"https://github.com/nitrat7","followers_url":"https://api.github.com/users/nitrat7/followers","following_url":"https://api.github.com/users/nitrat7/following{/other_user}","gists_url":"https://api.github.com/users/nitrat7/gists{/gist_id}","starred_url":"https://api.github.com/users/nitrat7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitrat7/subscriptions","organizations_url":"https://api.github.com/users/nitrat7/orgs","repos_url":"https://api.github.com/users/nitrat7/repos","events_url":"https://api.github.com/users/nitrat7/events{/privacy}","received_events_url":"https://api.github.com/users/nitrat7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T09:08:30Z","updated_at":"2015-09-24T23:22:56Z","closed_at":null,"body":"Hi,\r\nsince some weeks the last step of packer deployment - removing temorary azure disk fails.\r\n\r\nI assume, that something has changed in azure backend, as it has worked - nothing has changed - and now it fails.\r\n(workaround currently removing disk by script, that is executed subsequently)\r\n\r\n==> azure1: Polling till temporary Azure VM is ready...\r\n[13:31:44]    azure1: VM Endpoint: 104.47.155.147\r\n[13:31:44]    azure1: VM DiskName: PkrVMxspnctcpps-PkrVMxspnctcpps-0-201509181328090125\r\n[13:31:44]    azure1: VM MediaLink: https://haivisionstagehamvhdsto.blob.core.windows.net/vhds/PkrVMxspnctcpps.vhd\r\n...\r\n==> azure1: Executing OS generalization...\r\n[13:53:43]==> azure1: Stopping Temporary Azure VM...\r\n[13:54:22]==> azure1: Creating Azure Image. If Successful, This Will Remove the Temporary VM...\r\n[13:54:55]    azure1: Removing Temporary Azure Disk...\r\n[13:54:58]==> azure1: **Error Removing Temporary Azure Disk: Error response from Azure. Code: Conflict Error, Message: Windows Azure is currently performing an operation on deployment 'PkrVMxspnctcpps' that requires exclusive access. Please try again later for operation on disk or image 'PkrVMxspnctcpps-PkrVMxspnctcpps-0-201509181328090125' associated with the deployment.**\r\n[13:54:58]==> azure1: Removing temporary Azure service and its deployments, if any...\r\n[13:55:32]Build 'azure1' finished."},"comment":{"url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/comments/143077350","html_url":"https://github.com/MSOpenTech/packer-azure/issues/102#issuecomment-143077350","issue_url":"https://api.github.com/repos/MSOpenTech/packer-azure/issues/102","id":143077350,"user":{"login":"paulmey","id":1740197,"avatar_url":"https://avatars.githubusercontent.com/u/1740197?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmey","html_url":"https://github.com/paulmey","followers_url":"https://api.github.com/users/paulmey/followers","following_url":"https://api.github.com/users/paulmey/following{/other_user}","gists_url":"https://api.github.com/users/paulmey/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmey/subscriptions","organizations_url":"https://api.github.com/users/paulmey/orgs","repos_url":"https://api.github.com/users/paulmey/repos","events_url":"https://api.github.com/users/paulmey/events{/privacy}","received_events_url":"https://api.github.com/users/paulmey/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T23:22:56Z","updated_at":"2015-09-24T23:22:56Z","body":"Hmmm, this error should be retried: https://github.com/MSOpenTech/packer-azure/blob/ff8acd042f1505fbacacf71db65df85102640078/packer/builder/azure/retry/retrypolicy.go#L21\r\n\r\nIn the logs above, it looks like the `Code: Conflict Error` has a space between `Conflict` and `Error`. Can you try to repro with `PACKER_LOG=1` and `PACKER_LOG_AZURE_MAXLEN=1000` in your environment this will provide us with the exact error message as it comes back over HTTP. If this is the case, then someone indeed changed something in the Azure backend..."}}