-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New-AzureRmVM/VMSS: DataDiskSizeInGb parameter #5734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| FrontendPoolName = FrontendPoolName ?? VMScaleSetName; | ||
| BackendPoolName = BackendPoolName ?? VMScaleSetName; | ||
| [Parameter(ParameterSetName = SimpleParameterSet, Mandatory = false)] | ||
| public int[] DataDiskSizeGb { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataDiskSizeInGb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a good ValidateRange for this? a minimum and a maximum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of validation rules. I assume, it can't be negative. How to define validation rules for arrays?
|
|
||
| namespace Microsoft.Azure.Commands.Compute.Strategies.ComputeRp | ||
| { | ||
| static class DataDiskStrategy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
| ManagedDisk = engine.GetReference(disk, StorageAccountTypes.PremiumLRS), | ||
| } | ||
| }, | ||
| DataDisks = DataDiskStrategy.CreateDataDisks(0, dataDisks) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the data disk count always 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration for VHD OS disks only. I have no idea how to extract this information from VHD. I'm not sure if it's possible.
Description
New-AzureRmVMSS: DataDiskSizeInGb parameter.
Issue #5661
Depends on #5721
Checklist
CONTRIBUTING.mdplatyPSmodule