Describe the bug
When running any az devops security group * command against Azure DevOps Server 2020 (e.g. az devops security group create or list) it fails with the error message:
API resource location 048aee0a-7072-4cde-ab73-7af77b1e0b4e is not registered
To Reproduce
Versions:
azure-cli 2.19.1
azure-devops: 0.18.0
Azure DevOps Server: 2020.RTW
Steps to reproduce the behavior:
AZURE_DEVOPS_EXT_PAT environment variableaz devops project list --org http://server:8080/tfs/collection runs fineaz devops security group list --org http://server:8080/tfs/collection --scope organization failsExpected behavior
It should list the security groups.
Screenshots

Debug logs
Available upon request (contains private URLs)
I am exactly facing same issue, and still did not find the solution for this issue.
My version:
"azure-cli": "2.20.0",
"azure-cli-core": "2.20.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.18.0"
Azure DevOps Server Version Dev18.M170.8
seems like a dup of https://github.com/Azure/azure-devops-cli-extension/issues/666
@gauravsaralMs That one is azure devops 2019 - this is 2020 that have same problem.
@mrweiland agree
however CLI is not supported for both server 2019 or server 2020.
see this
@gauravsaralMs That is not entirely correct. 2019 was not supported by CLI, 2020 is:
The Azure DevOps Command Line Interface (CLI) is available for Azure DevOps Server 2020 and Azure DevOps Services.
from: https://docs.microsoft.com/en-us/azure/devops/cli/
These are more commands that fail on Azure DevOps Server Express 2020.0.1 Patch 2:
$ az devops user list --org http://127.0.0.1:8080/tfs/defaultcollection
API resource location 387f832c-dbf2-4643-88e9-c1aa94dbb737 is not registered on http://127.0.0.1:8080/tfs/defaultcollection.
$ az devops user show --user bob --org http://127.0.0.1:8080/tfs/defaultcollection
API resource location 8480c6eb-ce60-47e9-88df-eca3c801638b is not registered on http://127.0.0.1:8080/tfs/defaultcollection.
$ az devops user remove --user bob --org http://127.0.0.1:8080/tfs/defaultcollection
Are you sure you want to remove this user? (y/n): y
API resource location 8480c6eb-ce60-47e9-88df-eca3c801638b is not registered on http://127.0.0.1:8080/tfs/defaultcollection.
with debug flag:
DEBUG: msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: azext_devops.devops_sdk.connection: File cache miss for resources on: http://127.0.0.1:8080/tfs/defaultcollection
DEBUG: azext_devops.devops_sdk.client: Route template: _apis/{resource}/{areaId}
DEBUG: azext_devops.devops_sdk.client: Api version '5.0-preview.1'
DEBUG: azext_devops.devops_sdk.client: GET http://127.0.0.1:8080/tfs/defaultcollection/_apis/ResourceAreas
DEBUG: azext_devops.devops_sdk.client: Request content: None
DEBUG: msrest.universal_http: Configuring redirects: allow=True, max=30
DEBUG: msrest.universal_http: Configuring request: timeout=100, verify=True, cert=None
DEBUG: msrest.universal_http: Configuring proxies: ''
DEBUG: msrest.universal_http: Evaluate proxies against ENV settings: True
DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 127.0.0.1:8080
DEBUG: urllib3.connectionpool: Starting new HTTP connection (1): 127.0.0.1:8080
DEBUG: urllib3.connectionpool: http://127.0.0.1:8080 "GET /tfs/defaultcollection/_apis/ResourceAreas HTTP/1.1" 200 143
DEBUG: azext_devops.devops_sdk.client: Response content: b'{"count":0,"value":[]}'
DEBUG: urllib3.connectionpool: http://127.0.0.1:8080 "POST /tfs/defaultcollection/_apis/CustomerIntelligence/Events HTTP/1.1" 204 0
DEBUG: msrest.universal_http.requests: Configuring retry: max_retries=3, backoff_factor=0.8, max_backoff=90
DEBUG: cli.azext_devops.dev.common.exception_handler: handling value error
DEBUG: cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
DEBUG: cli.azure.cli.core.util: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.23.0/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.23.0/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
return self.handler(*args, **kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.23.0/libexec/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/Users/bob/.azure/cliextensions/azure-devops/azext_devops/dev/team/user.py", line 23, in get_user_entitlements
user_entitlements = client.get_user_entitlements(top=top, skip=skip)
File "/Users/bob/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/v5_0/member_entitlement_management/member_entitlement_management_client.py", line 135, in get_user_entitlements
response = self._send(http_method='GET',
File "/Users/bob/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 60, in _send
request = self._create_request_message(http_method=http_method,
File "/Users/bob/.azure/cliextensions/azure-devops/azext_devops/devops_sdk/client.py", line 107, in _create_request_message
raise ValueError('API resource location ' + location_id + ' is not registered on '
ValueError: API resource location 387f832c-dbf2-4643-88e9-c1aa94dbb737 is not registered on http://127.0.0.1:8080/tfs/defaultcollection.
What we probably need is some documentation which CLI commands are compatible with DevOps Server 2020 and which are not.
Most helpful comment
I am exactly facing same issue, and still did not find the solution for this issue.
My version:
"azure-cli": "2.20.0",
"azure-cli-core": "2.20.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"azure-devops": "0.18.0"
Azure DevOps Server Version Dev18.M170.8