Twitter Facebook Google+ LinkedIn
Tue, Aug 22, 2017

Creating Managed Disks from Template

Most of the templates on the Azure Quick Start GitHub repository are using storage accounts rather than managed disks at the moment (including the Service Fabric cluster one). Here is what you would need to change in order to move over to managed disks instead of regular storage accounts.

First, we would want to remove any references to the storage account(s) so that we can clean up properties that are not needed for Storage Accounts.

Secondly, we want to add / change the “osDisk” property of the VM Scale Set to the below, removing other properties in the “osDisk” property.

            "osDisk": {
              "createOption": "FromImage",
              "managedDisk": { "storageAccountType": "Premium_LRS" }
            "dataDisks": [
                "lun": 1,
                "createOption": "Empty",
                "diskSizeGB": 512,
                "managedDisk": { "storageAccountType": "Premium_LRS" }

Additionally, we want to change the Api Version for the VM Scale Set to be 2016-03-30 or later.

After the three above changes, the VM Scale Set should be configured properly to use Managed Disks.


Twitter Facebook Google+ LinkedIn