Can not create azure batch pool in virtual network or

ashishj 1 Reputation point
2020-11-12T20:16:46.847+00:00

I am getting an error while creating an azure batch pool, I have created a batch account without public address, in a vnet, also created and disabled the private link, private-connectivity when I execute az CLI

az batch account login -g myRg --name myPool --shared-key-auth

az batch pool create --id myPoo-windows --os-family 4 --target-dedicated 2 --vm-size small

to crate batch pool it throws an Authorization error This request is not authorized to perform this operation

Am not sure at this stage, even though I have had my RBAC as a contributor on the resource any help is much appreciated

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
336 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. whoward-msft 2,766 Reputation points
    2020-11-12T23:16:20.43+00:00

    Hi @ ashishj ,

    In the commands your providing your using shared-key auth, if you intend to use Azure AD and RBAC don't use the --shared-key-auth param.

    If you must use shared-key-auth please please verify that your shared key is valid and debug and troubleshoot the login cmdlet:

    az batch account login -g myRg --name myPool --shared-key-auth --show --debug.

    Once you can see the debug logs you can validate your key is correct.

    I would recommend using RBAC and just not use the --shared-key-auth param.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.