I have two packages (A & B)
When I publish the package-B to Azure Artifacts , why all 3rd packages from nuget are Also publish to the Azure Artifacts , but if I just publish package-A to the Azure Artifacts , that just have package-A
You have the 'Upstream sources' setting enabled for this artifacts feed:
Microsoft Docs on Upstream sources states:
Upstream sources enable you to use a single feed to store both the packages you produce and the packages you consume from "remote feeds": both public package managers (npmjs.com, NuGet.org, Maven Central, and PyPI) and Artifacts feeds. Once you've enabled an upstream source, any user connected to your feed can install a package from the remote feed, and your feed will save a copy.
You can remove upstream sources like this: