OldeEnglishD
OldeEnglishD

Reputation: 1

Azure Dev Ops: Unable to determine the Source Control Server

In the command prompt, I am typing:

tf workfold /unmap /workspace:xxx dev.azure.com/xxx/Mace

as I try to remove a project from an organization.

I also try:

tf workfold /unmap /workspace:xxx dev.azure.com/yyy/Mace

In both cases, I am getting:

Unable to determine the Source Control Server

substituting the computer name for dev.azure.com/xxx didn't help, either.

xxx is the development organization, yyy is for production.

I went the tf.exe route because I kept on getting:

The path c:\wsg_winservices\WinApps\Mace is already mapped in workspace xxx

Nothing helped here as I used TF.Exe as a last resort for removing a project from a workspace:

  1. I deleted the source control files and source control folders in my local project.
  2. I removed the TeamFoundation stuff in the solution using notepad.
  3. I changed the project name in xxx (dev.azure.com) and then deleted it.
  4. Unbind didn't work, mapping to local folder didn't work, removing the workspace didn't work, changing the location from local to server didn't work.

How do you solve this? How do you remove the mapping from workspace xxx?

Upvotes: 0

Views: 395

Answers (1)

Hugh Lin
Hugh Lin

Reputation: 19471

To remove a project from an organization,you can try to use Projects - Delete rest api.

DELETE https://dev.azure.com/{organization}/_apis/projects/{projectId}?api-version=5.1   

To get project id , use Projects - List rest api.

GET https://dev.azure.com/{organization}/_apis/projects?api-version=5.1

From the response , you can get projectId:

Sample:

{
  "count": 3,
  "value": [
    {
      "id": "eb6e4656-77fc-42a1-9181-4c6d8e9da5d1",
      "name": "Fabrikam-Fiber-TFVC",
      "description": "Team Foundation Version Control projects.",
      "url": "https://dev.azure.com/fabrikam/_apis/projects/eb6e4656-77fc-42a1-9181-4c6d8e9da5d1",
      "state": "wellFormed"
    },
...
}

Upvotes: 0

Related Questions