aggregator-cli icon indicating copy to clipboard operation
aggregator-cli copied to clipboard

Operation returned an invalid status code 'Forbidden'

Open rbhole opened this issue 2 years ago • 4 comments

I gone through Operation returned an invalid status code 'Forbidden' on below command,

.\aggregator-cli.exe install.instance --verbose --name AutoCalculate --resourceGroup myconame-vm-east1 --location "East US" Autocal

I used this cli method before in other project and I successfully able to configure. But now I'm facing above issue in different project. The command .\aggregator-cli.exe logon.azure where I logon and the command .\aggregator-cli.exe logon.ado uses two different domain name credentials (e.g. first [email protected] and 2nd [email protected]), still above two commands ran properly. Is it possible to create Infrastructure and project is on different domain? Note : I'm using existing resource group that is myconame-vm-east1 while running install.instance command

rbhole avatar Jan 27 '23 17:01 rbhole

Seems the same scenario as #46 the code is testing if the Resource Group exists before using it. It fails because the Azure account does not have permissions to list Resource Groups existing in the Subscription.

giuliov avatar Jan 28 '23 17:01 giuliov

@giuliov In azure account I have contributor level access of existing resource group in which I want deploy aggregator function.

rbhole avatar Jan 30 '23 07:01 rbhole

That's not enough: you need read permission to list Resource Groups in the Subscription

giuliov avatar Jan 30 '23 08:01 giuliov

@giuliov Hi See below screenshot, all access that I have permitted for the resource group, Autocal3

rbhole avatar Jan 30 '23 09:01 rbhole