In general, providing a link to the source alone is not enough, especially not when the link text is "For more details". Copied content has to be marked explicitly in a blockquote and a proper attribution has to be given. Also note, that
This can, for example, be done in the following form
As stated in the Microsoft Documentation, Section XYZ, the following code should help:
CODEBLOCK
If that doesn't help, you can also try ABC.
Providing an answer that consists solely of a quote from one source is in general a bad idea. Every answer should contain at least some original content.
Also note, that a user tried to fix the problem with your question by marking it correctly as copied content, but you rolled the edit back which left not many other options than deleting the answer.
As stated by Temani Afif:
Old answers with 6+ won't have reputation removed if they are deleted but this is a clear case of plagiarism so special action was needed to remove the reputation. (I remember flagging such answer and the same was done)