Open sebastianmattar opened 1 year ago
I just tried to use azd deploy web --from-package web --debug
without the source being available, getting the same error message:
ERROR: initializing service 'web', CreateFile C:\Projekte\temp\drop\drop\server\xxxx.Server: The system cannot find the path specified.
@sebastianmattar thanks for filing an issue. Please share the repo, if handy.
Azd today does not support projects with no source/project files. Adding it to backlog as a feature request.
@savannahostrowski @ellismg
Alright! Having this feature would be of great benefit to us because we could retire our custom scripts. Sorry, I have no repro I can share...
@sebastianmattar Great that you're able to find azd
close to working for your scenario. Logically, I see no reason why azd provision
and azd deploy --from-package <path>
wouldn't work if you didn't have the full source code available, and just azure.yaml and the environment being present.
Older versions of azd may have actually worked for your situation, but recent refactorings may have changed the behavior here.
Yes, it seems azd fails when it tries to call dotnet user-secrets ...
which was introduced some time ago.
Any update on this?
In my scenario, I tried creating an empty file matching the path specified in the service definition in case I could unblock provisioning if all it expects is for the specified file to be there, and I got the same result that @sebastianmattar had - a stack trace beginning:
ERROR: initializing service 'api', failed to initialize secrets at project '/home/vsts/work/1/s/src/
': exit code: 1, stdout: System.Xml.XmlException: Root element is missing
I agree that this operation has no reason to care about source code at all, and certainly not mess with user-secrets.
Any update?
Output from
azd version
azd version 0.8.0-beta.1 (commit 08209da7c22d28c6a123ef4e88d433132066b800)Describe the bug My company requires separation of build, provision and deployment steps in our build pipeline. azd seems to support this scenario in the deployment step by using
azd deploy --with-package
. Currently, runningazd provision
without the source code available fails with an error. This does not make sense to me, as there should be not dependency on the source code to provision the bicep templates.My azure.yaml:
To Reproduce Try to provision/deploy your project without the source code being available.
Expected behavior I would to be able to deploy/provision my project without the source code, just binaries, config file and templates.
Environment Information on your environment:
Additional context Add any other context about the problem here.