title: How to use listkeys function in an ARM Template with Event Hub
body: <p>I have an event hub that looks like this:
  <a href="https://i.stack.imgur.com/Q8XmF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q8XmF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/PLuk5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PLuk5.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/NX3h5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NX3h5.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/qPPl5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qPPl5.png" alt="enter image description here"></a></p>
  
  <p>I have successfully done it for service bus, but only for the high level <em>RootManageSharedAccessKey</em>.</p>
  
  <p>However with Event Hub I want the primary connection string for the <em>SendOnly</em> shared access policy.</p>
  
  <p>I have tried many combinations but I when I deploy the deployment cant find the SendOnly shared access policy.</p>
  
  <p>Here is the json for my SendOnly shared access policy.</p>
  
  <p><a href="https://i.stack.imgur.com/3tOa1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3tOa1.png" alt="enter image description here"></a></p>
  
  <p>Any help will be greatly appreciated.</p>