Elastacloud.AzureManagement.Fluent.Clients.WindowsVirtualMachineClient.EnsureVirtualMachineProperties C# (CSharp) Method

EnsureVirtualMachineProperties() private method

Checks whether the necessary properties are populated
private EnsureVirtualMachineProperties ( WindowsVirtualMachineProperties properties ) : void
properties Elastacloud.AzureManagement.Fluent.VirtualMachines.Classes.WindowsVirtualMachineProperties
return void
        private void EnsureVirtualMachineProperties(WindowsVirtualMachineProperties properties)
        {
            if(properties.Certificate == null || String.IsNullOrEmpty(properties.SubscriptionId) || String.IsNullOrEmpty(properties.CloudServiceName) ||
                String.IsNullOrEmpty(properties.StorageAccountName) || String.IsNullOrEmpty(properties.Location))
                throw new FluentManagementException("Either certificate, subscription id cloud service name or storage account name not present in properties", "CreateWindowsVirtualMachineDeploymentCommand");
        }