Skip to content

Commit 7f84f4a

Browse files
r/private_endpoint: fixing the casing on private_connection_resource_id if needed
1 parent 8f5b3dc commit 7f84f4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/services/network/private_endpoint_resource.go

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import (
77
"strings"
88
"time"
99

10+
"github.com/hashicorp/terraform-provider-azurerm/internal/services/signalr/sdk/2020-05-01/signalr"
11+
1012
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-02-01/network"
1113
"github.com/hashicorp/go-azure-helpers/lang/response"
1214
"github.com/hashicorp/terraform-provider-azurerm/helpers/azure"
@@ -623,6 +625,11 @@ func flattenPrivateLinkEndpointServiceConnection(serviceConnections *[]network.P
623625
privateConnectionId = serverId.ID()
624626
}
625627
}
628+
if strings.Contains(strings.ToLower(privateConnectionId), "microsoft.signalrservice") {
629+
if serviceId, err := signalr.ParseSignalRIDInsensitively(privateConnectionId); err == nil {
630+
privateConnectionId = serviceId.ID()
631+
}
632+
}
626633
attrs["private_connection_resource_id"] = privateConnectionId
627634
}
628635

0 commit comments

Comments
 (0)