David Fish QC, for the defence, told the court it was a "sad day" for Evans.
"He is aged 23 and has, until now, had a promising career to which he has devoted his whole life since his teens," he said.
"That career has now been lost."
In mitigation, Mr Fish said Evans had not targeted the complainant and had come to the matter "very late".
More top news
Scotty Moore was the last surviving member of the rock combo that included Presley, producer Sam Phillips and bassist Bill Black.
Sex and drugs are off limits for undercover police, official guidelines published for the first time state.
Nicola Sturgeon will hold talks with European Parliament president Martin Schulz in Brussels today.