It becomes apparent that miracles are only possible when God is involved. They are God's will. So the only way you're going to be able to perform them is by aligning with God's will.
That means you don't get to have your special ego party with magic tricks.
This is why Jesus warns against attempting to use miracles as party tricks.
Miracle principle 10: "The use of miracles as spectacles to induce belief is a misunderstanding of their purpose."
You can't really perform a miracle unless God is involved, so an attempt to do so is actually magic.
It also means you can't perform miracles if you want to get your ego will performed. I've done this many times. It's a mistake, trying to be an ego-healer or an ego-miracle-worker, to get to happen what you want for ego reasons, even if they seem like good reasons.
Surrendering the notion that you can just "do whatever you like" with the miracle, which suits your ego greatly, has to make you come to realize that miracles MUST and can ONLY work, IF God is involved.
And that means "thy will not my will be done". It means surrender.