Skip to content

Commit 244ae24

Browse files
committed
updated virtual machine sizes to include correct case for D-Series
1 parent 1107edc commit 244ae24

File tree

2 files changed

+31
-25
lines changed

2 files changed

+31
-25
lines changed

Elastacloud.AzureManagement.Fluent/Types/VmSize.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -73,66 +73,66 @@ public enum VmSize
7373
Basic_A4,
7474
// <summary>1 core, 3.5G, 127 OS, 50G SSD</summary>
7575
// ReSharper disable once InconsistentNaming
76-
STANDARD_D1,
76+
Standard_D1,
7777
// <summary>2 core, 7G, 127 OS, 100G SSD</summary>
7878
// ReSharper disable once InconsistentNaming
79-
STANDARD_D2,
79+
Standard_D2,
8080
// <summary>4 core, 14G, 127 OS, 200G SSD</summary>
8181
// ReSharper disable once InconsistentNaming
82-
STANDARD_D3,
82+
Standard_D3,
8383
// <summary>8 core, 28G, 127 OS, 400G SSD</summary>
8484
// ReSharper disable once InconsistentNaming
85-
STANDARD_D4,
85+
Standard_D4,
8686
// <summary>2 core, 14G, 127 OS, 100G SSD</summary>
8787
// ReSharper disable once InconsistentNaming
88-
STANDARD_D11,
88+
Standard_D11,
8989
// <summary>4 core, 28G, 127 OS, 200G SSD</summary>
9090
// ReSharper disable once InconsistentNaming
91-
STANDARD_D12,
91+
Standard_D12,
9292
// <summary>8 core, 56G, 127 OS, 400G SSD</summary>
9393
// ReSharper disable once InconsistentNaming
94-
STANDARD_D13,
94+
Standard_D13,
9595
// <summary>1 core, 112G, 127 OS, 800G SSD</summary>
9696
// ReSharper disable once InconsistentNaming
97-
STANDARD_D14,
97+
Standard_D14,
9898
// <summary>1 core, 3.5G, 127 OS, 7G SSD, 3200/32MBsec</summary>
9999
// ReSharper disable once InconsistentNaming
100-
STANDARD_DS1,
100+
Standard_DS1,
101101
// <summary>2 core, 7G, 127 OS, 14G SSD, 6400/64MBsec</summary>
102102
// ReSharper disable once InconsistentNaming
103-
STANDARD_DS2,
103+
Standard_DS2,
104104
// <summary>4 core, 14G, 127 OS, 28G SSD, 12800/128MBsec</summary>
105105
// ReSharper disable once InconsistentNaming
106-
STANDARD_DS3,
106+
Standard_DS3,
107107
// <summary>8 core, 28G, 127 OS, 56G SSD, 25600/256MBsec</summary>
108108
// ReSharper disable once InconsistentNaming
109-
STANDARD_DS4,
109+
Standard_DS4,
110110
// <summary>1 core, 28G, 127 OS, 28G SSD, 6400/64MBsec</summary>
111111
// ReSharper disable once InconsistentNaming
112-
STANDARD_DS11,
112+
Standard_DS11,
113113
// <summary>2 core, 56G, 127 OS, 56G SSD, 12800/128MBsec</summary>
114114
// ReSharper disable once InconsistentNaming
115-
STANDARD_DS12,
115+
Standard_DS12,
116116
// <summary>4 core, 112G, 127 OS, 112G SSD, 25600/256MBsec</summary>
117117
// ReSharper disable once InconsistentNaming
118-
STANDARD_DS13,
118+
Standard_DS13,
119119
// <summary>8 core, 224G, 127 OS, 224G SSD, 56200/512MBsec</summary>
120120
// ReSharper disable once InconsistentNaming
121-
STANDARD_DS14,
121+
Standard_DS14,
122122
// <summary>2 core, 28G, 127 OS, 384G SSD</summary>
123123
// ReSharper disable once InconsistentNaming
124-
STANDARD_G1,
124+
Standard_G1,
125125
// <summary>4 core, 56G, 127 OS, 768G SSD</summary>
126126
// ReSharper disable once InconsistentNaming
127-
STANDARD_G2,
127+
Standard_G2,
128128
// <summary>8 core, 112G, 127 OS, 1536G SSD</summary>
129129
// ReSharper disable once InconsistentNaming
130-
STANDARD_G3,
130+
Standard_G3,
131131
// <summary>16 core, 224G, 127 OS, 3072G SSD</summary>
132132
// ReSharper disable once InconsistentNaming
133-
STANDARD_G4,
133+
Standard_G4,
134134
// <summary>32 core, 448G, 127 OS, 6144G SSD</summary>
135135
// ReSharper disable once InconsistentNaming
136-
STANDARD_G5
136+
Standard_G5
137137
}
138138
}

Elastacloud.FluentManagement.FSTest/VirtualMachines.fsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ open System.Collections.Generic
2121
open System.Security.Cryptography.X509Certificates
2222
open Elastacloud.AzureManagement.Fluent.Types.VirtualNetworks
2323
open Elastacloud.AzureManagement.Fluent.Watchers
24+
open Elastacloud.AzureManagement.Fluent.Types.Exceptions
2425

2526
let subscriptionId = "84bf11d2-7751-4ce7-b22d-ac44bf33cbe9"
2627
/// Start Fuctions
@@ -41,7 +42,7 @@ let sshEndpoint = InputEndpoint(EndpointName = "ssh",
4142
Port = Nullable(22),
4243
Protocol = Protocol.TCP)
4344
let properties = new LinuxVirtualMachineProperties(
44-
VmSize = VmSize.Small,
45+
VmSize = VmSize.STANDARD_D1,
4546
UserName = "azurecoder",
4647
AdministratorPassword = "P@ssword761",
4748
HostName = "briskit",
@@ -56,9 +57,14 @@ let properties = new LinuxVirtualMachineProperties(
5657
// SubnetName = "fred"))
5758

5859
vmClient.LinuxVirtualMachineStatusEvent.Subscribe(fun vmstatus -> printfn "from %s to %s" (vmstatus.OldStatus.ToString()) (vmstatus.NewStatus.ToString()))
59-
vmClient.CreateNewVirtualMachineDeploymentFromTemplateGallery(
60-
List<LinuxVirtualMachineProperties>([|properties|]),
61-
"briskit1003")
60+
try
61+
vmClient.CreateNewVirtualMachineDeploymentFromTemplateGallery(
62+
List<LinuxVirtualMachineProperties>([|properties|]),
63+
"briskit1003") |> ignore
64+
with
65+
| :? ApplicationException as fmwe -> printfn "%s" fmwe.Message |> ignore
66+
67+
6268
// test 1: Ensure that above contains no subnets when it's created and returns the address range + 1 ip
6369
// test 2: Receive events on state changes and ensure readyrole
6470
// test 3: When created delete the subnet from the vnet - should generate a subnet busy exception of some sort

0 commit comments

Comments
 (0)