azure: Remove `-netconfig` suffix for VMSS network configuration

This commit is contained in:
Ciprian Hacman 2025-07-26 20:30:26 +03:00
parent 553509bd46
commit a025a56287
3 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ func (a azureVerifier) VerifyToken(ctx context.Context, rawRequest *http.Request
}
nodeName := strings.ToLower(*vm.Properties.OSProfile.ComputerName)
ni, err := a.client.nisClient.GetVirtualMachineScaleSetNetworkInterface(ctx, a.client.resourceGroup, vmssName, vmssIndex, vmssName+"-netconfig", nil)
ni, err := a.client.nisClient.GetVirtualMachineScaleSetNetworkInterface(ctx, a.client.resourceGroup, vmssName, vmssIndex, vmssName, nil)
if err != nil {
return nil, fmt.Errorf("getting info for VMSS network interface %q #%s: %w", vmssName, vmssIndex, err)
}

View File

@ -328,7 +328,7 @@ func (s *VMScaleSet) RenderAzure(t *azure.AzureAPITarget, a, e, changes *VMScale
}
networkConfig := &compute.VirtualMachineScaleSetNetworkConfiguration{
Name: to.Ptr(name + "-netconfig"),
Name: to.Ptr(name),
Properties: &compute.VirtualMachineScaleSetNetworkConfigurationProperties{
Primary: to.Ptr(true),
EnableIPForwarding: to.Ptr(true),

View File

@ -223,7 +223,7 @@ func TestVMScaleSetFind(t *testing.T) {
},
}
networkConfig := &compute.VirtualMachineScaleSetNetworkConfiguration{
Name: to.Ptr("vmss-netconfig"),
Name: to.Ptr("vmss"),
Properties: &compute.VirtualMachineScaleSetNetworkConfigurationProperties{
Primary: to.Ptr(true),
EnableIPForwarding: to.Ptr(true),