Branch is not created by az repos ref create command

Copper Contributor

I want to automate branch creation for my project. I am using the command 

          az repos ref create --name testrelease/$MAJ_VER.$MIN_VER.$PATCH_VER --object-id xxxxxxxxxxxxxxxxxxxxxxxx --org https://dev.azure.com/myorg/ --project myproj--repository myrepo
 
I see the response, 
 
2023-11-30T16:00:57.5538690Z {
2023-11-30T16:00:57.5539015Z   "customMessage": null,
2023-11-30T16:00:57.5539286Z   "isLocked": false,
2023-11-30T16:00:57.5539489Z   "name": "refs/testrelease/0.3.0",
2023-11-30T16:00:57.5539871Z   "newObjectId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
2023-11-30T16:00:57.5540718Z   "oldObjectId": "0000000000000000000000000000000000000000",
2023-11-30T16:00:57.5541098Z   "rejectedBy": null,
2023-11-30T16:00:57.5541701Z   "repositoryId": "123212312321321312312312312321312312321",
2023-11-30T16:00:57.5542107Z   "success": true,
2023-11-30T16:00:57.5542284Z   "updateStatus": "succeeded"
2023-11-30T16:00:57.5545083Z }
2023-11-30T16:00:57.6145902Z ##[section]Finishing: create a branch
 
But I couldnt find the branch created in azure devops. 
0 Replies