Hello @An Nguyen Thuan ,
When I followed the instructions in ARM-Template README on github, the objectId and userId were zero. I changed the queries to
$objectid=$(az ad sp list --display-name ${appreg} --query [0].id --output tsv)
$userid=$(az ad signed-in-user show --query id -o tsv)
When I first start the deployment as described in ARM-Template - Step 6 deploy, I got the same error as you. It is important that the parameters are set. So, check if userId
and objectId
are set correctly.
----------
If your issue was solved, please hit "accept answer" and feel free to rate up the post. This will help others with the same questions. Thanks