diff --git a/docs/debugging-failed-builds.md b/docs/debugging-failed-builds.md deleted file mode 100644 index 4e301e83f..000000000 --- a/docs/debugging-failed-builds.md +++ /dev/null @@ -1,26 +0,0 @@ -# Debugging Failed Packer Builds - -## Step 1: Run packer build `-on-error=ask` -When you run the `packer build` command, give it the `-on-error=ask` flag. -By default, `packer build` will delete the resource group as soon as the build fails. -`-on-error=ask` will pause it and wait for your input so you have time to remote in to the VM and diagnose the failure. - -When the build fails, you will see this: - -![Ask on error screenshot](/docs/resources/askOnError.png "Ask on error screenshot") - -## Step 2: Find the resource group name in the build log -At the beginning of the build log (written to console), find the resource group name for the VM: - -![Resource group from log screenshot](/docs/resources/resourceGroupName.png "Resource group from log screenshot") - -Log into the Azure Portal. Find that resource group under `Resource groups`. You should see the resources for the Packer build: - -![Packer resource group in Azure screenshot](/docs/resources/packerResourceGroup.png "Packer resource group in Azure screenshot") - -## Step 3: Connect to the VM -Select the VM in the resource group. Click `Connect:` - -This will download an RDP file. Open that and enter the credentials found in the HCL2 file you pass to `packer build`: - -![VM credentials screenshot](/docs/resources/vmCredentials.png "VM credentials screenshot") diff --git a/docs/resources/askOnError.png b/docs/resources/askOnError.png deleted file mode 100644 index fff463b49..000000000 Binary files a/docs/resources/askOnError.png and /dev/null differ diff --git a/docs/resources/packerResourceGroup.png b/docs/resources/packerResourceGroup.png deleted file mode 100644 index e06c53517..000000000 Binary files a/docs/resources/packerResourceGroup.png and /dev/null differ diff --git a/docs/resources/resourceGroupName.png b/docs/resources/resourceGroupName.png deleted file mode 100644 index 366f0dcad..000000000 Binary files a/docs/resources/resourceGroupName.png and /dev/null differ diff --git a/docs/resources/vmCredentials.png b/docs/resources/vmCredentials.png deleted file mode 100644 index 8ede9bdaf..000000000 Binary files a/docs/resources/vmCredentials.png and /dev/null differ