Skip to content

Commit bf4c507

Browse files
committed
use Standard_A1_v2 instances instead of Standard_A0
Standard_A0 instances seem no longer available and thus our tests fail (see https://github.com/pulumi/examples/actions/runs/19534123403/job/55923956447?pr=2205) for example. Looking through the list of available sizes, Standard_A1_v2 seems to be the closest available one. Use it.
1 parent e2ef52d commit bf4c507

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

azure-py-webserver/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
],
6060
),
6161
hardware_profile=compute.HardwareProfileArgs(
62-
vm_size=compute.VirtualMachineSizeTypes.STANDARD_A0,
62+
vm_size=compute.VirtualMachineSizeTypes.STANDARD_A1_V2,
6363
),
6464
os_profile=compute.OSProfileArgs(
6565
computer_name="hostname",

azure-ts-webserver/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const vm = new compute.VirtualMachine("server-vm", {
5151
networkInterfaces: [{ id: networkInterface.id }],
5252
},
5353
hardwareProfile: {
54-
vmSize: compute.VirtualMachineSizeTypes.Standard_A0,
54+
vmSize: compute.VirtualMachineSizeTypes.Standard_A1_v2,
5555
},
5656
osProfile: {
5757
computerName: "hostname",

classic-azure-cs-webserver/WebServerStack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public WebServerStack()
5454
{
5555
ResourceGroupName = resourceGroup.Name,
5656
NetworkInterfaceIds = { networkInterface.Id },
57-
VmSize = "Standard_A0",
57+
VmSize = "Standard_A1_v2",
5858
DeleteDataDisksOnTermination = true,
5959
DeleteOsDiskOnTermination = true,
6060
OsProfile = new VirtualMachineOsProfileArgs

classic-azure-go-webserver-component/webserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type WebserverArgs struct {
2727
// An optional boot script that the VM will use.
2828
BootScript pulumi.StringInput
2929

30-
// An optional VM size; if unspecified, Standard_A0 (micro) will be used.
30+
// An optional VM size; if unspecified, Standard_A1_v2 (micro) will be used.
3131
VMSize pulumi.StringInput
3232

3333
// A required Resource Group in which to create the VM
@@ -70,7 +70,7 @@ func NewWebserver(ctx *pulumi.Context, name string, args *WebserverArgs, opts ..
7070

7171
vmSize := args.VMSize
7272
if vmSize == nil {
73-
vmSize = pulumi.String("Standard_A0")
73+
vmSize = pulumi.String("Standard_A1_v2")
7474
}
7575

7676
// Now create the VM, using the resource group and NIC allocated above.

classic-azure-py-webserver-component/webserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, name: str, args: WebServerArgs, opts: ResourceOptions = None)
5454
resource_group_name=args.resource_group.name,
5555
location=args.resource_group.location,
5656
network_interface_ids=[network_iface.id],
57-
vm_size="Standard_A0",
57+
vm_size="Standard_A1_v2",
5858
delete_data_disks_on_termination=True,
5959
delete_os_disk_on_termination=True,
6060
os_profile=compute.VirtualMachineOsProfileArgs(

classic-azure-ts-vm-provisioners/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const sga = new azure.network.NetworkInterfaceSecurityGroupAssociation("assoc",
9191
const vm = new azure.compute.VirtualMachine("server-vm", {
9292
resourceGroupName,
9393
networkInterfaceIds: [networkInterface.id],
94-
vmSize: "Standard_A0",
94+
vmSize: "Standard_A1_v2",
9595
deleteDataDisksOnTermination: true,
9696
deleteOsDiskOnTermination: true,
9797
osProfile: {

classic-azure-ts-webserver-component/webserver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class WebServer extends pulumi.ComponentResource {
3838
this.vm = new azure.compute.VirtualMachine(`${name}-vm`, {
3939
resourceGroupName: args.resourceGroupName,
4040
networkInterfaceIds: [this.networkInterface.id],
41-
vmSize: args.vmSize || "Standard_A0",
41+
vmSize: args.vmSize || "Standard_A1_v2",
4242
deleteDataDisksOnTermination: true,
4343
deleteOsDiskOnTermination: true,
4444
osProfile: {
@@ -87,7 +87,7 @@ export interface WebServerArgs {
8787
*/
8888
bootScript?: pulumi.Input<string>;
8989
/**
90-
* An optional VM size; if unspecified, Standard_A0 (micro) will be used.
90+
* An optional VM size; if unspecified, Standard_A1_v2 (micro) will be used.
9191
*/
9292
vmSize?: pulumi.Input<string>;
9393
/**

0 commit comments

Comments
 (0)