diff --git a/.azure/pipelines/azure-pipelines-mirror-within-azdo.yml b/.azure/pipelines/azure-pipelines-mirror-within-azdo.yml
index b8f2a85dc20457b569f6dbe85d336d313e9d63dc..061eaf69c7746f1fb7a0ca66acc9eaf147c0fd94 100644
--- a/.azure/pipelines/azure-pipelines-mirror-within-azdo.yml
+++ b/.azure/pipelines/azure-pipelines-mirror-within-azdo.yml
@@ -34,9 +34,9 @@ jobs:
         - name: AzdoRepo
           value: dotnet-aspnetcore
         - name: TargetBranchName
-          value: $(Build.SourceBranch)-nonstable
+          value: $(Build.SourceBranchName)-nonstable
         - name: BranchToMirror
-          value: $(Build.SourceBranch)
+          value: $(Build.SourceBranchName)
         steps:
         - script: |
             git clone https://dn-bot:$(dn-bot-dnceng-build-rw-code-rw)@dev.azure.com/dnceng/internal/_git/$(AzdoRepo) $(WorkingDirectoryName) --recursive --no-tags --branch $(TargetBranchName)