Skip to content

Commit beab2da

Browse files
committed
azure: Set DisableExtensionOperations to avoid timeout issues
Setting the DisableExtensionOperations to true to reduce the chances of seeing timeout issues while provisioning VMs for Azure using CAPZ.
1 parent 6655196 commit beab2da

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

pkg/asset/machines/azure/azuremachines.go

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,16 @@ func GenerateMachines(platform *azure.Platform, pool *types.MachinePool, userDat
125125
},
126126
},
127127
Spec: capz.AzureMachineSpec{
128-
VMSize: mpool.InstanceType,
129-
FailureDomain: ptr.To(zone),
130-
Image: image,
131-
OSDisk: osDisk, // required
132-
AdditionalTags: tags,
133-
AdditionalCapabilities: additionalCapabilities,
134-
AllocatePublicIP: false,
135-
EnableIPForwarding: false,
136-
SecurityProfile: securityProfile,
128+
VMSize: mpool.InstanceType,
129+
FailureDomain: ptr.To(zone),
130+
Image: image,
131+
OSDisk: osDisk, // required
132+
AdditionalTags: tags,
133+
AdditionalCapabilities: additionalCapabilities,
134+
DisableExtensionOperations: ptr.To(true),
135+
AllocatePublicIP: false,
136+
EnableIPForwarding: false,
137+
SecurityProfile: securityProfile,
137138
NetworkInterfaces: []capz.NetworkInterface{
138139
{
139140
SubnetName: subnet,
@@ -186,11 +187,12 @@ func GenerateMachines(platform *azure.Platform, pool *types.MachinePool, userDat
186187
},
187188
},
188189
Spec: capz.AzureMachineSpec{
189-
VMSize: mpool.InstanceType,
190-
Image: image,
191-
FailureDomain: ptr.To(mpool.Zones[0]),
192-
OSDisk: osDisk,
193-
AdditionalTags: tags,
190+
VMSize: mpool.InstanceType,
191+
Image: image,
192+
FailureDomain: ptr.To(mpool.Zones[0]),
193+
OSDisk: osDisk,
194+
AdditionalTags: tags,
195+
DisableExtensionOperations: ptr.To(true),
194196
// Do not allocate a public IP since it isn't
195197
// accessible as we are using an outbound LB for the
196198
// control plane. This is temporary until we have a

0 commit comments

Comments
 (0)