tfsaggregator / aggregator-cli

A new version of Aggregator aiming at Azure DevOps (ex Visual Studio Team Services)
https://tfsaggregator.github.io/
Apache License 2.0
73 stars 32 forks source link

Operation returned an invalid status code 'Forbidden' #276

Open rbhole opened 1 year ago

rbhole commented 1 year ago

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 myname@myorg.com and 2nd myname@myorg-in.com), 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

giuliov commented 1 year ago

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.

rbhole commented 1 year ago

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

giuliov commented 1 year ago

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

rbhole commented 1 year ago

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