From e05e14c7b22a7e37129d9d23de813f35e72b232d Mon Sep 17 00:00:00 2001 From: Dan Clark Date: Fri, 13 Feb 2026 13:21:08 -0500 Subject: [PATCH] Update to use the user specified armEndpoint --- pkg/cloud/azure/actuators/machine_scope.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloud/azure/actuators/machine_scope.go b/pkg/cloud/azure/actuators/machine_scope.go index 1cccde98d..5ef2d2f0b 100644 --- a/pkg/cloud/azure/actuators/machine_scope.go +++ b/pkg/cloud/azure/actuators/machine_scope.go @@ -474,7 +474,7 @@ func getValueFromSecretOrEnvironment(secretData map[string][]byte, dataKey strin } func getEnvironment(m *MachineScope) (*azure.Environment, error) { - if m.IsStackHub() { + if m.IsStackHub() || m.armEndpoint != "" { env, err := azure.EnvironmentFromURL(m.armEndpoint) if err != nil { return nil, err