Harendra Prasad

My feedback

  1. 3 votes
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Event Hubs  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Harendra Prasad commented  · 

    Hi Reuben,

    when you enable DR it takes time to create and pair secondary event hub, so Just redeploy after few minutes
    And below is the reference code for using this 'aliasPrimaryConnectionString' key in the right way

    "properties": {
    "value": "[listkeys(resourceId('Microsoft.Eventhub/namespaces/eventhubs/authorizationRules', parameters('namespaceName'), parameters('EventHubName'), 'EventReader'), '2017-04-01').aliasPrimaryConnectionString]"
    },

    OR,
    you can parameterize like this -
    1. Define variable

    "variables": {
    "keyType": "aliasPrimaryConnectionString"
    }

    2. Use like below
    "properties": {
    "value": "[listkeys(resourceId('Microsoft.Eventhub/namespaces/eventhubs/authorizationRules', parameters('namespaceName'), parameters('EventHubName'), 'EventReader'), '2017-04-01')[variables('keyType')]]"
    },

  2. 712 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Microsoft
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  45 comments  ·  API Management » Pricing  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Harendra Prasad commented  · 

    Any update on this feature??

    Harendra Prasad supported this idea  · 

Feedback and Knowledge Base