When creating a disk for an Azure Virtual Machine, there is an option called "Delete with VM" that allows the disk to be deleted along with the VM.
This option cannot be viewed from the Disk screen in the Azure Portal after creation. However, you can check whether the option was applied using the method below.
On the screen of the VM you want to check, select the "Delete" button. You will see a list of resource types associated with the VM. If "Delete with VM" is checked in the "OS Disk" section, it indicates that the disk was created with the "Delete with VM" option selected during the VM creation process.