title: BatchPool - AuthenticationErrorDetail The specified type of authentication SharedKey is not allowed when external resources of type Network are linked
body: <p>Getting error while creating Azure Batch Pool with private network configuration.</p>
  <pre><code>BatchClient bClient = BatchClient.Open(new BatchSharedKeyCredentials(batchUri, accountName, accountKey));
  PoolSpecification poolSp = new PoolSpecification();
  poolSp.NetworkConfiguration = new NetworkConfiguration
                          {
                              SubnetId = &quot;/subscriptions/{0}/resourceGroups/{1}/providers/{2}/virtualNetworks/{3}/subnets/{4}&quot;
                          };
  </code></pre>
  <p>Getting errors when creating job</p>
  <pre><code>await job.CommitAsync();
  </code></pre>
  <p>Exception: Microsoft.Azure.Batch.Protocol.Models.ErrorMessage - AuthenticationFailed
  AuthenticationErrorDetail: The specified type of authentication SharedKey is not allowed when external resources of type Network are linked.</p>