File tree Expand file tree Collapse file tree 3 files changed +1093
-1031
lines changed
src/main/java/com/azure/resourcemanager Expand file tree Collapse file tree 3 files changed +1093
-1031
lines changed Original file line number Diff line number Diff line change 54
54
<dependency >
55
55
<groupId >com.azure.resourcemanager</groupId >
56
56
<artifactId >azure-resourcemanager</artifactId >
57
- <version >2.0 .0</version >
57
+ <version >2.1 .0</version >
58
58
</dependency >
59
59
<dependency >
60
60
<groupId >com.azure</groupId >
61
61
<artifactId >azure-identity</artifactId >
62
- <version >1.1.3 </version >
62
+ <version >1.2.0 </version >
63
63
</dependency >
64
64
<dependency >
65
65
<groupId >com.jcraft</groupId >
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public static boolean runSample(AzureResourceManager azureResourceManager) {
97
97
.withPublicSetting ("fileUris" , apacheInstallScriptUris )
98
98
.withPublicSetting ("commandToExecute" , apacheInstallCommand )
99
99
.attach ()
100
- .withSize (VirtualMachineSizeTypes .STANDARD_D3_V2 )
100
+ .withSize (VirtualMachineSizeTypes .fromString ( "Standard_D2a_v4" ) )
101
101
.create ();
102
102
103
103
System .out .println ("Created a Linux VM with un-managed OS and data disks: " + linuxVM .id ());
@@ -165,7 +165,7 @@ public static boolean runSample(AzureResourceManager azureResourceManager) {
165
165
.withGeneralizedLinuxCustomImage (virtualMachineCustomImage .id ())
166
166
.withRootUsername (userName )
167
167
.withRootPassword (password )
168
- .withSize (VirtualMachineSizeTypes .STANDARD_D3_V2 )
168
+ .withSize (VirtualMachineSizeTypes .fromString ( "Standard_D2a_v4" ) )
169
169
.create ();
170
170
171
171
System .out .println ("Created Linux VM" );
@@ -188,7 +188,7 @@ public static boolean runSample(AzureResourceManager azureResourceManager) {
188
188
.withNewDataDiskFromImage (2 , 100 , CachingTypes .READ_ONLY )
189
189
.withNewDataDiskFromImage (3 , 100 , CachingTypes .READ_WRITE )
190
190
.withNewDataDisk (50 )
191
- .withSize (VirtualMachineSizeTypes .STANDARD_D3_V2 )
191
+ .withSize (VirtualMachineSizeTypes .fromString ( "Standard_D2a_v4" ) )
192
192
.create ();
193
193
194
194
Utils .print (linuxVM3 );
You can’t perform that action at this time.
0 commit comments