title: Azure eventhub multiple partition key points to same partition
body: <p>We are working on a multi-tenant application where eventhub will be shared among different tenants. We will distribute the partitions among our tenants. Every tenant will sending message on different partition. We want to authenticate tenant on partition level. As describe on Microsoft site, we defined partition key based on tenant Id. But the problem is more then one partition key is sending message on same partition. Which should not be the case. Ideally every partition key should be mapped to different partition. </p>
  
  <pre><code>        var serviceNamespace = "namespace name here";
          var hubName = "hub name here";
          var deviceName = "device name here";
          var sasToken = "SAS TOKEN HERE";
  
          Mymessage subGroup1 = CreateMessage();
  
          var factory = MessagingFactory.Create(ServiceBusEnvironment.CreateServiceUri("sb", serviceNamespace, ""), new MessagingFactorySettings
          {
              TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(sasToken),
              TransportType = TransportType.Amqp
          });
          var client = factory.CreateEventHubClient(String.Format("{0}/publishers/{1}", hubName, deviceName));
  
          var data = new EventData(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(subGroup1)));
          data.PartitionKey = "jeep";
  
          client.Send(data);
  </code></pre>
  
  <p>Please help me understand what is wrong with my approach.</p>