diff --git a/plugins/scaffolder-backend-module-azure/src/actions/azure.ts b/plugins/scaffolder-backend-module-azure/src/actions/azure.ts index e90cfeade4..bd75cedc65 100644 --- a/plugins/scaffolder-backend-module-azure/src/actions/azure.ts +++ b/plugins/scaffolder-backend-module-azure/src/actions/azure.ts @@ -187,9 +187,13 @@ export function createPublishAzureAction(options: { throw new InputError('No Id returned from create repository for Azure'); } - // blam: Repo contents is serialized into the path, - // so it's just the base path I think - const repoContentsUrl = remoteUrl; + const repoContentsUrl = returnedRepo.webUrl; + + if (!repoContentsUrl) { + throw new InputError( + 'No web URL returned from create repository for Azure', + ); + } const gitAuthorInfo = { name: gitAuthorName