diff --git a/New Instructions/AllFiles/Lab03/azuredeploydisk.bicep b/New Instructions/AllFiles/Lab03/azuredeploydisk.bicep index 74808040..6c7f7f81 100644 --- a/New Instructions/AllFiles/Lab03/azuredeploydisk.bicep +++ b/New Instructions/AllFiles/Lab03/azuredeploydisk.bicep @@ -1,82 +1,44 @@ -param location string = 'westus' -param sourceresourceid string = '/subscriptions/aa509d92-2cc7-4eb9-9ae9-db02c24e057d' -resource symbolicname 'Microsoft.Compute/disks@2020-12-01' = { - name: 'az104-disk4' - location: location - tags: { - tagName1: 'tagValue1' - tagName2: 'tagValue2' - } - sku: { - name: 'string' - } - extendedLocation: { - name: 'string' - type: 'EdgeZone' - } - properties: { - burstingEnabled: true - creationData: { - createOption: 'empty' - galleryImageReference: { - id: 'string' - lun: 1 - } - imageReference: { - id: 'string' - lun: 1 - } - logicalSectorSize: 1 - sourceResourceId: sourceresourceid - sourceUri: 'string' - storageAccountId: 'string' - uploadSizeBytes: 20972032 - } - diskAccessId: 'string' - diskIOPSReadWrite: 5000 - diskMBpsReadWrite: 200 - diskSizeGB: 1024 - encryption: { - diskEncryptionSetId: 'string' - type: 'string' - } - encryptionSettingsCollection: { - enabled: true - encryptionSettings: [ - { - diskEncryptionKey: { - secretUrl: 'string' - sourceVault: { - id: 'string' - } - } - keyEncryptionKey: { - keyUrl: 'string' - sourceVault: { - id: 'string' - } - } - } - ] - encryptionSettingsVersion: 'string' - } - hyperVGeneration: 'string' - maxShares: 1 - networkAccessPolicy: 'string' - osType: 'Windows' - purchasePlan: { - name: 'string' - product: 'string' - promotionCode: 'string' - publisher: 'string' - } - securityProfile: { - securityType: 'TrustedLaunch' - } - supportsHibernation: true - tier: 'string' - } - zones: [ - 'string' - ] -} +@description('Name of the managed disk to be copied') +param managedDiskName string = 'diskname' + +@description('Logical Sector Size. Recommended 4096 unless application requires 512 bytes sector size support') +@allowed([ + 512 + 4096 +]) +param logicalSectorSize int = 4096 + +@description('Disk size in GiB') +@minValue(4) +@maxValue(65536) +param diskSizeinGiB int = 8 + +@description('Disk IOPS value') +@minValue(100) +@maxValue(160000) +param diskIopsReadWrite int = 100 + +@description('Disk throughput value in MBps') +@minValue(1) +@maxValue(2000) +param diskMbpsReadWrite int = 10 + +@description('Location for all resources.') +param location string = resourceGroup().location + +resource managedDisk 'Microsoft.Compute/disks@2020-09-30' = { + name: managedDiskName + location: location + sku: { + name: 'UltraSSD_LRS' + } + properties: { + creationData: { + createOption: 'Empty' + logicalSectorSize: logicalSectorSize + } + diskSizeGB: diskSizeinGiB + diskIOPSReadWrite: diskIopsReadWrite + diskMBpsReadWrite: diskMbpsReadWrite + } +}