Hi, trying to create a private endpoint to an app ...
# azure
r
Hi, trying to create a private endpoint to an app service but get:
error: Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[]
Copy code
using N = Pulumi.AzureNative.Network;
using NI = Pulumi.AzureNative.Network.Inputs;

 var privateEndpoint = new N.PrivateEndpoint("privateEndpoint", new N.PrivateEndpointArgs
        {
            Location = location,
            ManualPrivateLinkServiceConnections = 
            {
                new NI.PrivateLinkServiceConnectionArgs
                {
                    GroupIds = 
                    {
                        "sites",
                    },
                    PrivateLinkServiceId = apiAppService.Id,
                    RequestMessage = "Please manually approve my connection.",
                },
            },
            PrivateEndpointName = "Pulumi-PEP",
            ResourceGroupName = platformResourceGroupName,
            Subnet = new NI.SubnetArgs{
                Id = subnetApps01.Id,
            },
        });
Any help much appreciated.
1
In case anyone else gets this issue - you need to include Name in the PrivateLinkServiceConnectionArgs