diff --git a/test/e2e/azure_logcollector.go b/test/e2e/azure_logcollector.go index 36f6ea233ac..7c7b4145bdc 100644 --- a/test/e2e/azure_logcollector.go +++ b/test/e2e/azure_logcollector.go @@ -339,7 +339,7 @@ func collectVMSSBootLog(ctx context.Context, providerID string, outputPath strin resourceId := strings.TrimPrefix(providerID, azure.ProviderIDPrefix) v := strings.Split(resourceId, "/") instanceId := v[len(v)-1] - resourceID = strings.TrimSuffix(resourceID, "/virtualMachines/" + instanceId) + resourceId = strings.TrimSuffix(resourceId, "/virtualMachines/" + instanceId) resource, err := autorest.ParseResourceID(resourceId) if err != nil { return errors.Wrap(err, "failed to parse resource id")