Skip to content

Commit

Permalink
Revert "make two disk parameter optional"
Browse files Browse the repository at this point in the history
This reverts commit 8efad8c.
  • Loading branch information
rahalan committed Jul 2, 2024
1 parent 8efad8c commit badb240
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions avm/res/compute/virtual-machine/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -1145,8 +1145,8 @@ type osDiskType = {
@description('Optional. The disk name.')
name: string?

@description('Optional. Specifies the size of an empty data disk in gigabytes.')
diskSizeGB: int?
@description('Required. Specifies the size of an empty data disk in gigabytes.')
diskSizeGB: int

@description('Optional. Specifies how the virtual machine should be created.')
createOption: 'Attach' | 'Empty' | 'FromImage'?
Expand All @@ -1159,15 +1159,15 @@ type osDiskType = {

@description('Required. The managed disk parameters.')
managedDisk: {
@description('Optional. Specifies the storage account type for the managed disk.')
@description('Required. Specifies the storage account type for the managed disk.')
storageAccountType:
| 'PremiumV2_LRS'
| 'Premium_LRS'
| 'Premium_ZRS'
| 'StandardSSD_LRS'
| 'StandardSSD_ZRS'
| 'Standard_LRS'
| 'UltraSSD_LRS'?
| 'UltraSSD_LRS'

@description('Optional. Specifies the customer managed disk encryption set resource id for the managed disk.')
diskEncryptionSetResourceId: string?
Expand Down
8 changes: 3 additions & 5 deletions avm/res/compute/virtual-machine/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "5878958605426596334"
"templateHash": "8007594709688742996"
},
"name": "Virtual Machines",
"description": "This module deploys a Virtual Machine with one or multiple NICs and optionally one or multiple public IPs.",
Expand Down Expand Up @@ -139,9 +139,8 @@
},
"diskSizeGB": {
"type": "int",
"nullable": true,
"metadata": {
"description": "Optional. Specifies the size of an empty data disk in gigabytes."
"description": "Required. Specifies the size of an empty data disk in gigabytes."
}
},
"createOption": {
Expand Down Expand Up @@ -193,9 +192,8 @@
"Standard_LRS",
"UltraSSD_LRS"
],
"nullable": true,
"metadata": {
"description": "Optional. Specifies the storage account type for the managed disk."
"description": "Required. Specifies the storage account type for the managed disk."
}
},
"diskEncryptionSetResourceId": {
Expand Down

0 comments on commit badb240

Please sign in to comment.