@@ -119,7 +119,8 @@ type SharedImageGalleryDestination struct {
119119 // See the `shared_image_gallery_destination` block description for an example of using this field
120120 SigDestinationTargetRegions []TargetRegion `mapstructure:"target_region"`
121121 // Specify a storage account type for the Shared Image Gallery Image Version.
122- // Defaults to `Standard_LRS`. Accepted values are `Standard_LRS`, `Standard_ZRS` and `Premium_LRS`
122+ // Defaults to `Standard_LRS`. Accepted values are `Standard_LRS`, `Standard_ZRS` and `Premium_LRS`, `PremiumV2_LRS`,
123+ // `StandardSSD_LRS`, `StandardSSD_ZRS`, `UltraSSD_LRS`
123124 SigDestinationStorageAccountType string `mapstructure:"storage_account_type"`
124125 // Set to true if publishing to a Specialized Gallery, this skips a call to set the build VM's OS state as Generalized
125126 SigDestinationSpecialized bool `mapstructure:"specialized"`
@@ -1552,6 +1553,14 @@ func assertRequiredParametersSet(c *Config, errs *packersdk.MultiError) {
15521553 c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesStandardLRS
15531554 case string (virtualmachines .StorageAccountTypesPremiumLRS ):
15541555 c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesPremiumLRS
1556+ case string (virtualmachines .StorageAccountTypesPremiumVTwoLRS ):
1557+ c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesPremiumVTwoLRS
1558+ case string (virtualmachines .StorageAccountTypesStandardSSDLRS ):
1559+ c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesStandardSSDLRS
1560+ case string (virtualmachines .StorageAccountTypesStandardSSDZRS ):
1561+ c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesStandardSSDZRS
1562+ case string (virtualmachines .StorageAccountTypesUltraSSDLRS ):
1563+ c .managedImageStorageAccountType = virtualmachines .StorageAccountTypesUltraSSDLRS
15551564 default :
15561565 errs = packersdk .MultiErrorAppend (errs , fmt .Errorf ("The managed_image_storage_account_type %q is invalid" , c .ManagedImageStorageAccountType ))
15571566 }
0 commit comments