Azure / Synapse-workspace-deployment

MIT License
27 stars 34 forks source link

Invalid payload received. FQDN needs to be specified for the private endpoint targeting Private Link Service #78

Closed oliverstriz closed 1 year ago

oliverstriz commented 1 year ago

Deployment of Synapse using ARM template and any branch as well is throwing following error message. Seems like deployment of managed endpoints is removing fqdns:

https://github.com/Azure/Synapse-workspace-deployment/blob/98870e90fc595f6b81b0f1e99de6851821f821bd/build_and_deploy/clients/artifacts_client.ts

It seems that there is a line of code that removes fqdns from payload. Lines 296-297.

if(payLoadJson["properties"].hasOwnProperty("fqdns")){ delete payLoadJson["properties"]["fqdns"]; }

I would say that this causes an error.

2023-02-16T09:06:44.7244414Z For Artifact: privateLS-onpremSqlServer: Deploy artifact failed: {"error":{"code":"UnknownError","message":"{\"CorrelationId\":\"\",\"StatusCode\":400,\"Message\":\"Invalid Request: Message=Invalid payload received. FQDN needs to be specified for the private endpoint targeting Private Link Service: /subscriptions/SUBS_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.Network/privateLinkServices/PRIVATE_LINK_SERVICE_NAME.\",\"ExceptionDetail\":\"Microsoft.Analytics.Clusters.Common.ClusterServiceException: Invalid payload received. FQDN needs to be specified for the private endpoint targeting Private Link Service: /subscriptions/SUBS_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.Network/privateLinkServices/PRIVATE_LINK_SERVICE_NAME.\r\n ---> System.ArgumentException: FQDN needs to be specified for the private endpoint targeting Private Link Service: /subscriptions/SUBS_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.Network/privateLinkServices/PRIVATE_LINK_SERVICE_NAME.\r\n at Microsoft.Analytics.Clusters.Services.NetworkService.Contract.PrivateEndpointRequestExtensions.Validate(PrivateEndpointRequest request, IServiceConfiguration conf, ILog logger) in C:\\w\\1\\s\\Services\\NetworkService\\Service\\PrivateEndpointRequestExtensions.cs:line 118\r\n at Microsoft.Analytics.Clusters.Services.NetworkService.StatefulBE.Controllers.NetworkController.AddPrivateEndpointAsync(String clientId, String privateEndpointReferenceName, PrivateEndpointRequest request) in C:\\w\\1\\s\\Services\\NetworkService\\NetworkServiceBE\\Controllers\\NetworkController.cs:line 295\r\n --- End of inner exception stack trace ---\r\n at Microsoft.Analytics.Clusters.Services.NetworkService.StatefulBE.Controllers.NetworkController.AddPrivateEndpointAsync(String clientId, String privateEndpointReferenceName, PrivateEndpointRequest request) in C:\\w\\1\\s\\Services\\NetworkService\\NetworkServiceBE\\Controllers\\NetworkController.cs:line 295\r\n at lambda_method(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.gAwaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.gAwaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\r\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.gAwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\r\n at Microsoft.Analytics.Clusters.Services.NetworkService.StatefulBE.ActivePartitionInstanceMiddleware.InvokeAsync(HttpContext context) in C:\\w\\1\\s\\Services\\NetworkService\\NetworkServiceBE\\ActivePartitionInstanceMiddleware.cs:line 90\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>cDisplayClass5_1.<b1>d.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.Analytics.Clusters.Common.Web.ServiceFabricResourceNotFoundMiddleware.InvokeAsync(HttpContext httpContext) in C:\\w\\1\\s\\Shared\\Web\\ServiceFabricResourceNotFoundMiddleware.cs:line 50\r\n at Microsoft.Analytics.Clusters.Common.Web.ExceptionMiddleware.InvokeAsync(HttpContext httpContext) in C:\\w\\1\\s\\Shared\\Web\\ExceptionMiddleware.cs:line 57\",\"ErrorType\":\"InvalidRequest\",\"ErrorNumber\":2190,\"ErrorOn\":\"2023-02-16T09:06:44.7024062+00:00\"}"}}

lordozb commented 1 year ago

Requesting you to raise a support request on Azure portal.