Update: Microsoft will be moving away from UserVoice sites on a product-by-product basis throughout the 2021 calendar year. We will leverage 1st party solutions for customer feedback. Learn more here.

Harendra Prasad

My feedback

  1. 27 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    0 comments  ·  Signup and Billing » Subscription management  ·  Flag idea as inappropriate…  ·  Admin →
    Harendra Prasad supported this idea  · 
  2. 3 votes

    We're glad you're here

    Please sign in to leave feedback

    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')]]"
    },

  3. 1,026 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  57 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