Does your magical system still obey Laws of Conservation, etc?
Technology, in large part, is a mechanism for storing work and energy so it can be released with little effort later on. For example, a bulldozer clears lots of dirt really easy, yay! But that dozer represents a lot of stored work and energy; the fuel in the gas tank, the labor of construction and design, etc. A man with a shovel represents very little stored energy, so it takes a lot of work, on the spot, to move the same amount of dirt.
So can magic move the same amount of dirt for LESS energy or work? If so, how? What is the cost of that magic? Are portions of the earth's core going cold, is the magic user losing years off their life? What is the cost of magic? In most stories magic taps a virtually infinite "mana" reserve, the only limit is the amount the user can wield (i.e. the user is a small drain on a vast tank of magic). But we are seeing how technology impacts our planet, would widespread use of magic do the same?
So, WRT magic and near-future warfare, it all depends on the availability of magic and the training required to use it. Every human can use a radio or fire a gun, can the same be said for magic telepathy and fireballs? The radio and gun represent stored work/energy, a human can use both with very little cost to themselves. Can the same be said for magic communications and combat? I suspect magic using soldiers would fatigue very quickly when trying to resist artillery shells or dish out damage to a tank. This is why most magic settings are set in low tech "muscle powered" worlds, a magic user scales better when compared to manual labor than when compared to factory output and mechanization.
Of course you can circumvent my limitation on magic by having magic "batteries", but then magic starts looking so similar to technology that the narrative distinction is meaningless.
Shadowrun is a setting like what you describe. There technology and magic are mostly alternate pathways to the same resolution. But since magic is limited to specific users, an all-tech nation would ultimately defeat an all-magic one since mass production favors technology, even if a "one on one" confrontation might favor the magic user.
If magic is universal, accessible to everyone, then anything easier to do with magic would trump the technological counterpart. But really, factory consistency and advertising would still favor technology; plus folks are lazy. Folks can cook their own food now, but still go out to eat. Even if you could cast a fly spell it may be simpler and less effort to take the bus. Just depends on the amount of study required and how the energy to cast a spell is sourced.
Obviously the real concern are for "magic" things like teleportation, instant healing, etc. These are things with no current technological analogue so they would probably the where generals would focus the most. Could you make a unit of teleporting shock troops? What do you have to do to COUNTER such a spell? Defensive magics would have as much priority as offensive spells. Magical healing, if limited, could have to be reserved, but to get lightly wounded troops back out quickly, or just to stabilized gravely wounded soldiers so they can recover with traditional therapy over time? Can magical shields resist all kinetic force? Can bullets be enchanted to zip right through magical shields? I suspect that most magical forces could basically neutralize each other or, at best, have an ancillary effect on the battlefield, kinda like cyberwarfare today. A critical edge would tip the scales, but all things being equal, comparable conventional forces would be comparable in the magic aspect as well.