{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "diskName": {
            "type": "String"
        },
        "location": {
            "type": "String"
        },
        "sku": {
            "type": "String"
        },
        "diskSizeGb": {
            "type": "Int"
        },
        "sourceResourceId": {
            "type": "String"
        },
        "createOption": {
            "type": "String"
        },
        "hyperVGeneration": {
            "defaultValue": "V1",
            "type": "String"
        },
        "diskEncryptionSetType": {
            "type": "String"
        },
        "networkAccessPolicy": {
            "type": "String"
        }
    },
    "resources": [
        {
            "type": "Microsoft.Compute/disks",
            "apiVersion": "2020-05-01",
            "name": "[parameters('diskName')]",
            "location": "[parameters('location')]",
            "tags": {},
            "sku": {
                "name": "[parameters('sku')]"
            },
            "properties": {
                "creationData": {
                    "createOption": "[parameters('createOption')]"
                },
                "diskSizeGB": "[parameters('diskSizeGb')]",
                "networkAccessPolicy": "[parameters('networkAccessPolicy')]"
            }
        }
    ]
}
