Deployment of a simple bicep takes too long

Dronec 166 Reputation points
2024-02-08T01:54:19.4+00:00

I have a bunch of biceps that deploy various parts of Azure infrastructure. All of them complete within reasonable timeframes except this guy. It runs forever, though, in fact, approves the private managed connection as supposed. Any thoughts?

param privateEndpointName string

resource privateEndpoint 'Microsoft.Sql/servers/privateEndpointConnections@2023-05-01-preview' = {
  name: privateEndpointName
  properties: {
    privateLinkServiceConnectionState: {
      status: 'Approved'
      description: 'Private endpoint for ADF'
    }
  }
}
Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,599 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 4,980 Reputation points
    2024-02-08T03:45:57.54+00:00

    Hi , Welcome to Microsoft Q&A I think Issue lies with in API , please use API 2022-05-01-preview and below code once and check

    resource symbolicname 'Microsoft.Sql/servers/privateEndpointConnections@2022-05-01-preview' = {
      name: 'string'
      parent: resourceSymbolicName
      properties: {
        privateEndpoint: {
          id: 'string'
        }
        privateLinkServiceConnectionState: {
          description: 'string'
          status: 'string'
        }
      }
    }
    
    
    

    Please accept answer if it helps , Thanks!


  2. ShaktiSingh-MSFT 13,436 Reputation points Microsoft Employee
    2024-02-08T04:56:30.85+00:00

    Hi
    Dronec
    ,

    Welcome to Microsoft Q&A forum.

    As I understand, your private endpoint for ADF bicep is taking long for completion. With the information provided, it could be due to resource dependencies i.e if private endpoint connection relies on other resources being deployed first, ensure that those resources are successfully provisioned before attempting to deploy the private endpoint connection.

    For deeper understanding and investigation into your set up we recommend you to file support case and if you don't have a support plan, do let us know here so that we can check on other options to unblock you. Thanks

    0 comments No comments