Megosztás a következőn keresztül:

Create a VM with a dynamic selection of data disks

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Deploy To Azure Deploy To Azure US Gov Visualize

This template allows the user to create a VM with dynamic selection of data disks without creating a per size template with different number of data disks. It takes advantage of copy property loop in the template to construct the desired number of the data disks.

Tags: Microsoft.Storage/storageAccounts, Microsoft.Network/publicIPAddresses, Microsoft.Network/virtualNetworks, Microsoft.Network/networkInterfaces, Microsoft.Compute/virtualMachines