Ofc, it is all detailed in the UN press release the exact laws that were violated by bombing the Iranian Consulate in Damascus even with military personnel inside it. See:https://press.un.org/en/2024/sc15650.doc.htm
“…seven missile airstrikes from the occupied Golan Heights intentionally targeted her country’s diplomatic premises in Damascus, including the consular section building and the Ambassador’s residence.”
“In the ensuing discussion, many delegations asserted that any attack on diplomatic and consular premises violates the Charter of the United Nations as well as the 1961 Vienna Convention on Diplomatic Relations and the 1963 Vienna Convention on Consular Relations.”
”Assistant Secretary-General for Middle East, Asia and the Pacific, Departments of Political and Peacebuilding Affairs and Peace Operations, noted that Iran transmitted a letter to the Secretary-General and the Security Council stating that Israel has attacked its diplomatic premises in Damascus by missile strikes, killing at least five Iranian personnel, including senior military advisors and injuring others. According to media reports, the death toll has risen to 13 — seven Iranian personnel and six Syrian citizens. Reiterating the Secretary-General’s condemnation of the attack, he declared that the inviolability of diplomatic and consular premises and personnel must be respected in all cases and the sovereignty and territorial integrity of Member States must be respected under international law.
“The rules-based international order is essential for international peace and security, which this Council is mandated to maintain,” he said.
For those of you unfamiliar with consulates they usually have military personnel posted abroad working in them. It doesn’t mean they are being used as a military command centre. Every consulate and embassy will have a Defense Attaché and their staff (active duty military) there to advise on military cooperation and treaties between the countries. Embassies and consulates will also have use their own nations active duty military working as security guards for the premises, they don’t hire rent a cop contractors for security. This is perfectly normal. Edited to correct typos