Skip to content

Conversation

@sergey-shandar
Copy link
Contributor

@sergey-shandar sergey-shandar commented Mar 13, 2018

Description

New-AzureRmVMSS: DataDiskSizeInGb parameter.

Issue #5661
Depends on #5721

Checklist

@sergey-shandar sergey-shandar changed the title New-AzureRmVMSS: DataDiskSizeGb parameter [Do Not Merge] New-AzureRmVMSS: DataDiskSizeGb parameter Mar 13, 2018
FrontendPoolName = FrontendPoolName ?? VMScaleSetName;
BackendPoolName = BackendPoolName ?? VMScaleSetName;
[Parameter(ParameterSetName = SimpleParameterSet, Mandatory = false)]
public int[] DataDiskSizeGb { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataDiskSizeInGb

Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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)
Copy link
Member

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?

Copy link
Contributor Author

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.

@sergey-shandar sergey-shandar changed the title [Do Not Merge] New-AzureRmVMSS: DataDiskSizeGb parameter [Do Not Merge] New-AzureRmVMSS: DataDiskSizeInGb parameter Mar 19, 2018
@sergey-shandar sergey-shandar changed the title [Do Not Merge] New-AzureRmVMSS: DataDiskSizeInGb parameter New-AzureRmVMSS: DataDiskSizeInGb parameter Mar 20, 2018
@sergey-shandar sergey-shandar changed the title New-AzureRmVMSS: DataDiskSizeInGb parameter New-AzureRmVM/VMSS: DataDiskSizeInGb parameter Mar 20, 2018
markcowl
markcowl previously approved these changes Mar 20, 2018
@markcowl
Copy link
Member

@markcowl markcowl removed their assignment Mar 20, 2018
@cormacpayne cormacpayne merged commit 65f18f8 into Azure:preview Mar 20, 2018
@sergey-shandar sergey-shandar deleted the sergey-vmss-disks branch March 20, 2018 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants