We are going to talk about this, on the basis that you are already familiar with the verb grouping and the distinction between transitive and intransitive verbs.
There are basically 2 types of passive sentences, Direct Passive and Indirect Passive.
Luckily, the idea is pretty much the same as the English language :)
To get used to the grammar rule, let's focus on transitive verbs for start and do not worry about the context, tense and the use of articles.
(We are also only using the topic marker は to simplify the sentences.)
A regular affirmative sentence with a group 2 transitive verb:
I eat chocolate.
Chocolate is eaten by me.
I have/get chocolate eaten by my brother.
A regular affirmative sentence with a Group 1 transitive verb:
I drink coffee.
Coffee is drunk by me.
I have/get coffee drunk by my brother.
As you can see, between the Direct and Indirect, the context changes significantly but the verb conjugation remains the same.
Next, unlike the English language, in Japanese, you can also make passive sentences with intransitive verbs, whereby you can express disappointment and suffering.
To envisage better, the sentences below are in past tense on purpose.
It has rained. I did not expect it to happen and I am not happy with it.
The train has left the train station. I did not expect it to happen and I am not happy with it.
If you get to speak Japanese regularly, you probably realise that Japanese people generally rely on passive sentences a lot more frequently than English speakers, so it is definitely worth practicing :)