It depends a bit on what activation settings you are using. Your force inside the structure must be active and is best if led by an activated leader.
If activated, then sortie is best if in offensive posture, but it is not essential. A defensive posture is ok, as long as it not passive.
To maximize the chance for a sortie, ideally the force in the structure will be a corps of the force relieving the structure.