We may calculate β, the probability of making a Type II error for a Z test for μ, given a particular alternative value for the population mean, μa.
The power of a hypothesis test is the probability of rejecting a false null hypothesis, and is calculated as power=1-β. We may then build the power curve by plotting the power against values of μa.