This document should include considerations for .NET developers to make sure the proxies.json is set to "Copy to Output" and Preserve Newest. Especially for VS Code and Visual Studio
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
For example for VS Code the doc can be updated to tell the user how to include the file at the CSPROJ so proxies.json will be within the deployment package:
<None Update="proxies.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Repro:
Hey @nzthiago
Thank you for your feedback! We have assigned this issue to the author to review further and take the right course of action.
@mike-urnun-msft please assign this to @ggailey777.
I'm still confused by this—it wasn't obvious in the docs how to make sure proxies.json gets uploaded. I still have no proxies showing in the portal for my function.
I'm using Node and TypeScript with a version 2 Azure Function.
Where in extensions.csproj
do I add the following?
<None Update="proxies.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
@danielgwilson You should see other entries for existing files in your csproj in an ItemGroup section. Add proxies.json there if it isn't already.
I have a Python function app and using VSCode to deploy - I am facing the same problem - proxies.json is not deployed (locally all works fine). Is there any workaround for VSCode to get proxies.json deployed ?
Update: Proxies are deployed, but they don't show up in the Azure portal, so the only way see what they are is to have the code of the function...
Thanks for the feedback everyone. I am going to close this issue because: 1) deploying a project file is not functions-specific and 2) we aren't currently funded to document Functions Proxies. If this is still an major issue, we should consider providing feedback to have Proxies supported in the tooling. #please-close
Most helpful comment
Hey @nzthiago
Thank you for your feedback! We have assigned this issue to the author to review further and take the right course of action.