-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import Managed Disk #77
Comments
@yukihonhk Thank you for submitting this! I'm wondering the symptom of the issue, is the import raise error, or something else? |
@magodo, thank you for your reply. There is no error during "import" but I found the main.tf file does not include the "managed data disk" for the VMs. Hence, failed to import the attached data disk for the VM. |
@yukihonhk You shall ensure during the interactive stage, all the managed data disks are correctly mapped to the TF resource from their Azure resource ID, otherwise, they'll be skipped from importing. |
@magodo Thank you for your feedback. However, during the interactive stage, I can't see any managed data disks available for mapping to the TF resource (I can only see VM, network interface, etc but no managed disk resource). Attached the screen cap for your quick reference. |
@yukihonhk Thank you for providing the details! This indicates the managed data disk is missing in the exported ARM template in this resource group scope. Would you please confirm this in Portal via exporting ARM template? |
@magodo I can see the data disk in the ARM template. Attached the screen cap for your info. |
@yukihonhk 👆 shows the managed disk is referenced by the VM, but didn't mean the exported ARM template includes the managed disk as a separate resource. In this case, the only way to include them is via https://github.com/magodo/tfadd to manually import and generate config for it. Note that you have to manually add the dependency between the managed disk and the VM afterwards. |
Unable to import Managed Disk. e.g. if the VM has 3 attached managed disks, only the OS disk can be imported.
The text was updated successfully, but these errors were encountered: