In combat that device would last a few minutes before a missile strike took it out. Even an artillery barrage would suffice.
Plus shielding against microwaves is well-known. Even consumer microwave ovens employ it.