microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.36k stars 2.22k forks source link

Dotnet Not picking path of env variable in pipeline #1410

Open akash-onedealerlane opened 11 months ago

akash-onedealerlane commented 11 months ago

I created a VM and installed all required software, including Java and Dotnet, but when I created an image from the VM for my VMSS, Dotnet was not working. [VM image of the dotnet check version] (https://i.stack.imgur.com/Ce72K.png) In VM, it shows the path, version, and environment, but when I capture the image and set it to VMSS, Dotnet does not recognize the path and is not variable. [vm dotnet path set image] (https://i.stack.imgur.com/tJ3Bl.png) All software that needs to set paths is not accessible in the pipeline. Anyone can help. I tried to set a path in /etc/environment/. and /etc/profile.d/ but still the same error [pipeline issue image for DotNet version check] (https://i.stack.imgur.com/4PRZb.png) Thanks