-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] azd pipeline config for azdo fails "ERROR: ensuring git remote: Looking for repository: The resource cannot be found." #3037
Comments
Also, I'm not sure if I am recalling this correctly or not but isn't there some instructions on manually configuring an AZDO pipeline for AZD somewhere? |
This might be useful: https://github.com/Azure/azure-dev/blob/main/cli/azd/docs/manual-pipeline-config.md |
@jasontaylordev , what do you get if you run IIRC, if the remote is using |
~#@❯ git remote -v Thanks for looking into this @vhvb1989 😀 |
I have now manually configured the pipeline and it is working well. I did not identify the root cause, but can still reproduce the error locally by running I'm happy to keep troubleshooting this issue; let me know what you would like to try next. If not, feel free to close as I am no longer blocked. |
Also having this issue |
Feature is tracked via #1896 closing this as a duplicate. |
@rajeshkamal5050 This issue still exists under https ? After Running :
azd version 1.9.5 |
@pbusfield , we have an open PR which should fix this. See: #4104 Can you try installing azd from that PR to validate your use case? |
@vhvb1989 @rajeshkamal5050 No, this version didn't fix my issue, I still got the same error.
I confirm the .git folder is in the C:\FOLDER\APPNAME location. |
@pbusfield , can you run the command with debug, like The error there is coming after trying to fetch the git remote repository from the Azdo Org/project and it is not found. We need to check the http response from the debug to see if it is unauthorized (your PAT has no access to read repos) or if it is a 404 (the git repo does not exists) |
@vhvb1989 These are the logs: PS C:\ORG\REPO> azd pipeline config --debug 2024/08/02 10:09:20 main.go:50: Response: ==> REQUEST/RESPONSE (Try=1/270.4291ms, OpTime=271.6239ms) -- RESPONSE RECEIVED
|
thank you @pbusfield . Can you tell the steps you followed to clone or get your project? Did you start from a local folder (w/o a git remote) or did you clone the project from some existing repo with either The error you are getting is b/c azd is not finding the git repo in the Azdo Org/Project. But the remote is already set in your project (like if you previously clone the project from the Org/Project git repo or something). This can happen, for example, if you:
You can, for example, remove the git remote from your project by running Hope this can help to figure what's happening with your project config |
@vhvb1989 What is the best way to fix this? (or do it another way?) |
@pbusfield , when you cloned the repo using Visual Studio, the git remote (for your project locally) is set to that repository, which you might not be the owner. In that case, you need to disconnect from that repo and connect a repo you own. To disconnect from the template's repository (after doing a manual clone with VS or using git directly), you can run If you initially run Once disconnected, running |
Thanks @vhvb1989 new content:
original content:
It didn't pick up my Aspire host under services? Also, then when I run: I confirm there is no infra folder in the root, unlike other runs of the command previously. So then I try to synthesize the infrastructure: ERROR: this project does not contain any infrastructure to synthesize. Any ideas? Thanks in advance. |
@pbusfield , it looks like the repository you are cloning (the template) does not have an azure.yaml on the root. Can you check if the Aspire projects supports having the azure.yaml at the root of you repo or directly inside the AppHost project. I've created this issue #4171 b/c As a workaround, please manually delete the |
@vhvb1989 I did run It clones the repo, and creates the azure.yaml at the root of the project (and only the root directory). There is no azure.yaml file in the AppHost directory (which is not the root directory). App.AppHost and App.ServiceDefaults folders both sit in the root, same folder as the .SLN file. The contents of the azure.yaml file in the root is only this:
|
Output from
azd version
azd version 1.5.0 (commit 012ae73)
Describe the bug
The command:
Results in the error:
To Reproduce
Outside of my environment, not sure.
Expected behavior
The pipeline is configured or a detailed error message is returned.
Environment
Information on your environment:
* Windows 11
* PowerShell 7.4.0
Additional context
I can commit and push changes from the command line. So I'm not sure why it can't find the repository. Any help is appreciated. 😀
DebugOutput.txt
The text was updated successfully, but these errors were encountered: