From 1ee20b63a0e7f1678fba610a789d59ebfd385daf Mon Sep 17 00:00:00 2001 From: Justin Dyer Date: Wed, 18 Dec 2024 14:50:33 -0500 Subject: [PATCH] Added params and telemetry tracking to generated policies --- ..._bb83ae53-3b91-49ff-a351-9545ea747335.json | 63 ++++++++++++++++--- ..._282cb835-592b-4e49-89c1-ea1aaefb37c4.json | 63 ++++++++++++++++--- ..._23ac19cb-5eff-4cfa-9817-93466e1a94f7.json | 63 ++++++++++++++++--- ..._a2f5e5a3-ec38-4201-970f-971ad4707b93.json | 63 ++++++++++++++++--- ..._e840c7a9-e070-4dc9-919b-c75a3679f6b7.json | 63 ++++++++++++++++--- ..._8bafb3d5-d961-49a4-9867-f1cddfd703e0.json | 63 ++++++++++++++++--- ..._b9f2fe91-023a-443c-b376-b12f0cd5d965.json | 63 ++++++++++++++++--- ..._0289bc11-db65-4a58-91ed-fda8637322ec.json | 63 ++++++++++++++++--- ..._ea6a4d59-822f-4fb7-a29d-69e523e95bdb.json | 63 ++++++++++++++++--- ..._fd5d63e0-ab2f-4300-af65-05bf2e490d0e.json | 63 ++++++++++++++++--- ..._6b1dd1ae-05de-43d2-bdea-7981c49127fc.json | 63 ++++++++++++++++--- ..._52cd4aba-4ad0-402a-880d-ba625ebcf37f.json | 63 ++++++++++++++++--- ..._1f8626fe-812a-48a7-b237-2f9181a5ea12.json | 63 ++++++++++++++++--- ..._2e16fd84-d92f-44ee-8191-ff47e90a9526.json | 63 ++++++++++++++++--- ..._a9480e7f-1cd0-4c46-b5c4-e7f35fe963a5.json | 63 ++++++++++++++++--- ..._c0c3e784-f488-43a6-a423-18dbb444d443.json | 63 ++++++++++++++++--- ..._94ae53cd-6e3b-47f5-9709-9c2e10eae6d7.json | 63 ++++++++++++++++--- ..._b12cad96-7ef2-4223-97f4-53b3dc64ecfa.json | 63 ++++++++++++++++--- ..._a9e1306a-a541-423f-a69e-bd37f8f5013a.json | 63 ++++++++++++++++--- ..._423b4280-1f68-49d8-b11a-6a816b0d9172.json | 63 ++++++++++++++++--- ..._0be9dd7c-ae7f-41f7-b3a6-844e64059b73.json | 63 ++++++++++++++++--- ..._74e0e3b4-62aa-4503-b05d-c5c79a029ed6.json | 63 ++++++++++++++++--- ..._49e7f58f-4910-4d2f-8589-573e8a65c6dd.json | 63 ++++++++++++++++--- ..._c521bf0d-efec-4d3a-8541-d8749915bfd4.json | 63 ++++++++++++++++--- ..._b40fdb04-cada-4870-80f3-317afc57e5fb.json | 63 ++++++++++++++++--- ..._8ce7d791-41a5-4d6a-9516-b009eabbd8f7.json | 63 ++++++++++++++++--- ..._f49539ff-35b1-4d83-8541-e3cf49b383e5.json | 63 ++++++++++++++++--- ..._70b8ce6d-0d28-4997-84df-957791877eec.json | 63 ++++++++++++++++--- ..._6c9857e4-7d6b-4384-80da-b88a2e6858ac.json | 63 ++++++++++++++++--- ..._af750dfc-62e5-4b74-9514-ca419d800590.json | 63 ++++++++++++++++--- ..._24c5276b-77b1-48ab-a8c1-15844b11e0aa.json | 63 ++++++++++++++++--- ..._7072ba94-41d2-4584-89ab-a5824ed045f4.json | 63 ++++++++++++++++--- ..._b9ffe52a-f430-4605-a2b1-d815eb1bcc56.json | 63 ++++++++++++++++--- ..._82cb3ad7-d44f-4131-9078-5aac82d3333a.json | 63 ++++++++++++++++--- ..._cc764431-e1b0-4455-94b1-b66d32cc54b4.json | 63 ++++++++++++++++--- ..._f0c2ec92-15bc-47b1-8edb-d0c5d10aaddc.json | 63 ++++++++++++++++--- ..._24b37318-9353-4424-9d8e-ac28450328b6.json | 63 ++++++++++++++++--- ..._8d5df17c-a5b7-4cf1-a01e-f9d8625297a6.json | 63 ++++++++++++++++--- ..._837ecf42-3f25-41ae-b97d-34193f0669da.json | 63 ++++++++++++++++--- ..._1b68776d-4d11-4d27-96c5-4d51cf17e1fc.json | 63 ++++++++++++++++--- ..._aecc75bf-f961-4c22-86e9-84c5039a2938.json | 63 ++++++++++++++++--- ..._d6c4011c-f4e6-4b12-b6e6-9486eab0fecc.json | 63 ++++++++++++++++--- ..._5e8aaa27-e5b3-4774-9807-af61ec96b001.json | 63 ++++++++++++++++--- ..._c42138d4-bb4c-4171-8802-ba44d671d72f.json | 63 ++++++++++++++++--- ..._c47441d4-7061-4acd-8ad8-69e52d00557c.json | 63 ++++++++++++++++--- ..._cf6babc2-f623-4f12-a352-c30a02bcb6c6.json | 63 ++++++++++++++++--- ..._5fb9c4bf-3799-44e0-bd75-656d1cfa26d2.json | 63 ++++++++++++++++--- ..._397fef65-9192-4310-b9da-57cc1513c809.json | 63 ++++++++++++++++--- ..._780c451d-bf30-4e36-b544-ea994ca32f43.json | 63 ++++++++++++++++--- ..._69338f82-3e4a-4ff2-bb00-6aec7e84e3f4.json | 63 ++++++++++++++++--- ..._0db7da9c-960d-4122-9976-adc029da7b12.json | 63 ++++++++++++++++--- ..._1221f6e7-8f44-4d91-b0ed-d72920d4d496.json | 63 ++++++++++++++++--- ..._ab9d016d-b31b-4144-9b76-f5b1c625fa9b.json | 63 ++++++++++++++++--- ..._43d8c4af-9534-4bda-8840-1513181fabb2.json | 63 ++++++++++++++++--- ..._d0bc3cdd-eade-4dfd-9b44-3ce8219a5e13.json | 63 ++++++++++++++++--- ..._0fc4ed4a-068b-4144-b2b3-d34114577175.json | 63 ++++++++++++++++--- ..._81f8369c-65bf-4194-bfd2-ffdfa2470577.json | 63 ++++++++++++++++--- ..._693a3b37-1e2a-42d1-aaed-b1f374276d1c.json | 63 ++++++++++++++++--- ..._5ca4e110-09b4-4fe5-bb8f-4fa3f35f8fca.json | 63 ++++++++++++++++--- ..._a1528d17-f288-46b1-b084-8b8fe3af90fa.json | 63 ++++++++++++++++--- ..._995cc12a-1887-4669-92c5-70a6ca8bfe70.json | 63 ++++++++++++++++--- ..._a27171ed-8c6c-4995-b3e4-ff1f1dd0cc90.json | 63 ++++++++++++++++--- ..._cd9ba872-2f2d-4cf8-8957-e7ffa6b7e5fc.json | 63 ++++++++++++++++--- ..._8081760a-4b0c-4ae8-86a0-5b7cc418d2bb.json | 63 ++++++++++++++++--- ..._7fd0ac93-49e5-4ecd-96dd-5a1b91c27ce1.json | 63 ++++++++++++++++--- ..._b34ff46a-3335-485d-8955-3c12b89e0429.json | 63 ++++++++++++++++--- ..._d4666cca-c55a-4c38-9c83-35184d82dbb0.json | 63 ++++++++++++++++--- ..._87fe8679-655d-4acb-a37c-b7faebe26d47.json | 63 ++++++++++++++++--- ..._87cf02fd-d12a-4c8d-85b7-01f616866f8c.json | 63 ++++++++++++++++--- ..._ec8c928a-5206-4059-8aea-8486004dd30d.json | 63 ++++++++++++++++--- ..._493511fe-f9a1-450d-a5c6-c4062fb0d2c9.json | 63 ++++++++++++++++--- ..._404c9224-ecfd-4f11-b6de-9439f5c4ff9b.json | 63 ++++++++++++++++--- ..._4be881a1-a702-481c-a1ad-399b100cabdb.json | 63 ++++++++++++++++--- ..._a86c358c-5603-4e66-b5f7-87c19ddd5e9f.json | 63 ++++++++++++++++--- ..._0704975d-f5fb-4031-8d07-18a79f4788da.json | 63 ++++++++++++++++--- ..._60aa78cd-66d4-421b-92a4-e20f138518d9.json | 63 ++++++++++++++++--- ..._1de7e287-53d0-41e4-b37c-701470e82543.json | 63 ++++++++++++++++--- ..._e7d44227-8e9b-4698-a398-24e2afe25408.json | 63 ++++++++++++++++--- ..._0fd9d459-4d84-422c-ad72-ce8788a13f4d.json | 63 ++++++++++++++++--- ..._0e4e5a62-95e2-4fc0-97e0-b6b6574fe1f5.json | 63 ++++++++++++++++--- ..._fe4eba6e-8488-4d69-8c5b-b247fe556012.json | 63 ++++++++++++++++--- ..._7fce7630-0db2-4279-9b81-cb06ad7d83ca.json | 63 ++++++++++++++++--- ..._fa6564b0-870b-4b21-b648-6a793d7a2797.json | 63 ++++++++++++++++--- ..._c382a635-df8d-4d19-86de-daa28de4dce7.json | 63 ++++++++++++++++--- ...d_3846fe0-d373-4548-af44-a2d7a2ba3399.json | 63 ++++++++++++++++--- ..._3657d258-5623-4480-84ca-3ba6226d1378.json | 63 ++++++++++++++++--- ..._d582a978-ce14-484a-b759-84903838979c.json | 63 ++++++++++++++++--- ..._bfe3b067-314b-46bf-925e-e81f66cf910f.json | 63 ++++++++++++++++--- ..._52909b9b-190d-4d7b-9900-1789ce0b937b.json | 63 ++++++++++++++++--- ..._7fbd5f2d-00f0-4ca1-8d5f-0233d0a3f910.json | 63 ++++++++++++++++--- ..._2b1b7563-e1ec-4f56-9caf-f2cb019bc04f.json | 63 ++++++++++++++++--- ..._e4c3e04b-15c3-4883-8351-a87a4510e40e.json | 63 ++++++++++++++++--- ..._4c766f95-57b7-4a3b-bba3-8801265dbc01.json | 63 ++++++++++++++++--- ..._d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json | 63 ++++++++++++++++--- ..._66b4ade6-1ae4-430e-b545-5c1c188b780c.json | 63 ++++++++++++++++--- ..._c41c172e-b804-42c4-b329-aa255c85f506.json | 63 ++++++++++++++++--- ..._b5283ee6-b4a5-4e5e-890d-12ebca7f54e7.json | 63 ++++++++++++++++--- ..._a1d7f8c7-1182-4241-b3f6-e086309d7ac1.json | 63 ++++++++++++++++--- ..._f5425eb7-e311-4336-b5ab-7a9b2b0d5dea.json | 63 ++++++++++++++++--- ..._6b7ae03b-e2c8-4115-a560-4144a455816b.json | 63 ++++++++++++++++--- ..._eee95c4b-db79-48e5-9a5c-ef921a22e3c0.json | 63 ++++++++++++++++--- ..._73c87a60-8de8-414e-9cc5-81a3ca14d687.json | 63 ++++++++++++++++--- ..._c61d3a5c-4aa4-4c6a-8bc0-859061559b4c.json | 63 ++++++++++++++++--- ..._e360aeac-66a6-4bf0-8e36-475608c6d02b.json | 63 ++++++++++++++++--- ..._86e00692-7e42-4a4c-86a3-21c70add7bd3.json | 63 ++++++++++++++++--- ..._4b474463-3243-4966-a4d0-8404760b9ca3.json | 63 ++++++++++++++++--- ..._bf42c604-b4f7-4b6c-8a33-2f5e1912d306.json | 63 ++++++++++++++++--- ..._fcd3e37c-82bb-48df-8860-f1b4f01d4cc3.json | 63 ++++++++++++++++--- ..._bb4ebaf2-e5ec-47cc-b8a8-2428e924721c.json | 63 ++++++++++++++++--- ..._30dc0126-1466-4c11-9096-a7fffc552bc8.json | 63 ++++++++++++++++--- ..._5aeb1d15-f8f3-49d5-8894-b6af0d89d935.json | 63 ++++++++++++++++--- ..._c8f71cfd-42cd-4063-92fc-d6560697250d.json | 63 ++++++++++++++++--- ..._f2926569-df78-4c68-90a7-3c5f96cfa1f3.json | 63 ++++++++++++++++--- ..._e7341b29-84ea-4ca2-8140-e774b1cd1444.json | 63 ++++++++++++++++--- ..._a97c7421-8268-4837-b433-762882c3887f.json | 63 ++++++++++++++++--- ..._b0bf777b-90e9-4aed-b8e2-94ab9755d1ca.json | 63 ++++++++++++++++--- ..._82c2b472-2084-4122-8bb5-51142ce19101.json | 63 ++++++++++++++++--- ..._b269a4f9-ba74-4061-abc1-655d656c1c5f.json | 63 ++++++++++++++++--- ..._3984067c-1e9b-41ee-9464-1f6b2df45cea.json | 63 ++++++++++++++++--- ..._3c550d9c-8276-4a61-b0cf-ef437a55e299.json | 63 ++++++++++++++++--- ..._b05249b2-d6f2-4c2e-a14b-a25353053e6d.json | 63 ++++++++++++++++--- ..._6495d787-2701-45ea-8abd-f23b18ed6e66.json | 63 ++++++++++++++++--- ..._12ffdc4a-2ac4-4b4b-bf04-c5b48d2f0904.json | 63 ++++++++++++++++--- ..._c87a2b96-2308-4d2c-9353-8d300f0e542c.json | 63 ++++++++++++++++--- ..._13d1dc54-12a8-475d-8a87-d9060df9f348.json | 63 ++++++++++++++++--- ..._1f6e25bb-1412-46b8-b4cf-de1498a03927.json | 63 ++++++++++++++++--- ..._0433dc7d-e9c0-4d32-8295-ce24cd9e453b.json | 63 ++++++++++++++++--- ..._2aa2bd92-85bd-47b8-ac48-3c672fdbb486.json | 63 ++++++++++++++++--- ..._80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json | 63 ++++++++++++++++--- ..._715804f2-6789-4b83-9c5f-bee2a805bbc2.json | 63 ++++++++++++++++--- ..._b0320e4c-7f6d-4990-b2b9-12f1fcb103cf.json | 63 ++++++++++++++++--- ..._2785f1ab-abcc-44da-8e08-d16c74e67002.json | 63 ++++++++++++++++--- ..._50959073-a6ad-4b63-b76e-4a22745e5852.json | 63 ++++++++++++++++--- ..._528496f5-e701-4a9e-8b4c-c876be59c9dc.json | 63 ++++++++++++++++--- ..._287a29bf-097d-4c4a-9ac5-df70a10f6903.json | 63 ++++++++++++++++--- ..._07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json | 63 ++++++++++++++++--- ..._e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json | 63 ++++++++++++++++--- ..._2a65a81a-be78-499f-bca4-64976249a0cd.json | 63 ++++++++++++++++--- ..._369652ae-56b1-4620-be56-0024629b2cad.json | 63 ++++++++++++++++--- ..._61defc4a-43af-4667-b63a-02c28af099be.json | 63 ++++++++++++++++--- ..._9386f63a-026e-4c91-886e-c10478132bdd.json | 63 ++++++++++++++++--- ..._81268206-66e5-4b33-8205-93147fc5989c.json | 63 ++++++++++++++++--- ..._7d5cc479-cf69-44bc-a612-eac4b20fdc08.json | 63 ++++++++++++++++--- ..._39eaa390-7c58-4b79-af20-e47138e7ed97.json | 63 ++++++++++++++++--- ..._e98657ed-8a0b-4992-9d20-a54e2d6065ef.json | 63 ++++++++++++++++--- ..._d9089d09-ddec-4f6a-8dc1-e2544e5765cb.json | 63 ++++++++++++++++--- ..._a8c08a0f-fcd7-4b97-8a6e-06b34bac0b9f.json | 63 ++++++++++++++++--- ..._ea8be16a-f5e9-4a8b-a1df-a8c5efff039b.json | 63 ++++++++++++++++--- ..._dce1cda8-1dab-4941-b607-1d5d449709d5.json | 63 ++++++++++++++++--- ..._86991e6e-efc9-4898-adf8-4e8e3a60c57e.json | 63 ++++++++++++++++--- ..._f0e94112-5509-47b6-8def-91fb5ca5d0cd.json | 63 ++++++++++++++++--- ..._87dfe717-217f-4447-b59a-7ea39160b83a.json | 63 ++++++++++++++++--- ..._98de2aed-3493-4e65-919b-b1f8e6995819.json | 63 ++++++++++++++++--- ..._55dc79f4-5666-420f-8c53-141d73e01fee.json | 63 ++++++++++++++++--- ..._d336cfa2-724e-419a-809d-c716741d5279.json | 63 ++++++++++++++++--- ..._310c2a27-8933-434e-a366-cb35831cde44.json | 63 ++++++++++++++++--- ..._6cf11f1e-273a-4f42-bf9b-9310b26c1c4f.json | 63 ++++++++++++++++--- ..._b0bd7c37-eb24-47c2-a032-f925594152ed.json | 63 ++++++++++++++++--- ..._bf1e0006-6089-4f92-a115-fc83aa0fbdd5.json | 63 ++++++++++++++++--- ..._a407ae10-6263-449c-81b9-172760d6dc6d.json | 63 ++++++++++++++++--- ..._821888a1-6490-4a2d-8850-bdc45057a853.json | 63 ++++++++++++++++--- ..._b57b0749-f851-4c3d-b7fb-7cf26f3bf16a.json | 63 ++++++++++++++++--- ..._b0cbb9f8-cc67-4e7d-95a8-5a058c6de7e0.json | 63 ++++++++++++++++--- ..._9b0f41af-1c52-4890-a23a-3bfebfee1154.json | 63 ++++++++++++++++--- ..._040bc9c3-da5c-4fd0-b160-979ce89364ae.json | 63 ++++++++++++++++--- ..._3c5518ea-9a0f-44ff-b197-47b3d6db060b.json | 63 ++++++++++++++++--- ..._e45d685d-14c4-4422-8096-6f11d628fb20.json | 63 ++++++++++++++++--- ..._326b359d-e0a2-4055-8e1f-f9c5f9df5599.json | 63 ++++++++++++++++--- ..._b9221998-f2bb-4ae8-b2c8-f9c4750e06f7.json | 63 ++++++++++++++++--- ..._8bc489c0-d2f7-43c1-9bb7-478c9503fb2e.json | 63 ++++++++++++++++--- ..._b1cc650c-24fe-4f9e-a2ec-5757816526c0.json | 63 ++++++++++++++++--- ..._edff41cb-d9b8-46ba-ba39-42747c1a4c4b.json | 63 ++++++++++++++++--- ..._6de4e570-4270-4e9b-949e-5680b061e7fd.json | 63 ++++++++++++++++--- ..._ea4501a3-1e77-4df1-ab61-3ee28ae529eb.json | 63 ++++++++++++++++--- ..._e2028144-b142-445c-b544-3bb438537c8f.json | 63 ++++++++++++++++--- ..._f7e19635-0118-4040-83d5-2f4c2150aef1.json | 63 ++++++++++++++++--- ..._a2bf3c43-d327-473b-9204-f77e2a0fe398.json | 63 ++++++++++++++++--- ..._916dc60b-b2d2-4708-9fa4-6a36b244f499.json | 63 ++++++++++++++++--- ..._36262245-4c8a-4143-9ab4-68e9c23ae19a.json | 63 ++++++++++++++++--- ..._929b095e-5ea1-48b4-bf4e-bfc1a941a908.json | 63 ++++++++++++++++--- ..._3be4037a-c692-402d-843d-b3fe43053edf.json | 63 ++++++++++++++++--- ..._a477bf96-4b0f-471c-b5d3-0acdb59612e6.json | 63 ++++++++++++++++--- ..._a9bac9fd-2382-4ce1-b68b-8898caf45038.json | 63 ++++++++++++++++--- ..._eb85f15b-b705-418f-b8ed-93d8cc7a9a6c.json | 63 ++++++++++++++++--- ..._c878115f-2a89-446e-8980-ef4f152120c5.json | 63 ++++++++++++++++--- ..._e3981e7b-fd8b-4e07-bb68-d598c020c12d.json | 63 ++++++++++++++++--- ..._765ceb5b-ec1d-44d7-b94d-bb139030df81.json | 63 ++++++++++++++++--- ..._3fa5376a-705a-48e4-b314-6282a74c9f7c.json | 63 ++++++++++++++++--- ..._970af9d6-9212-420d-af7b-4fbd790a2596.json | 63 ++++++++++++++++--- ..._4758386e-12ee-411a-9e49-445b5c5c3051.json | 63 ++++++++++++++++--- ..._8beff742-9cd8-43ed-9680-57ae35bee6e8.json | 63 ++++++++++++++++--- ..._5b26b965-2662-4a89-9d7e-771486357f39.json | 63 ++++++++++++++++--- ..._fa9efde4-3586-4595-a442-b7e97f70fe91.json | 63 ++++++++++++++++--- ..._42995506-5bd2-4687-9316-d9399919990b.json | 63 ++++++++++++++++--- ..._b8c8a846-a8d0-4e8f-b854-030955a20135.json | 63 ++++++++++++++++--- ..._9dca87c2-de00-40fd-b0bb-c8335e5f978a.json | 63 ++++++++++++++++--- ..._49fd8bac-d061-459d-8d80-a048c4c8ba56.json | 63 ++++++++++++++++--- ..._301ca0e3-fc88-4285-be99-a2a587c412f5.json | 63 ++++++++++++++++--- ..._64a872f9-5ec6-4121-acad-edd12f4c3466.json | 63 ++++++++++++++++--- ..._14fa63fb-7da9-4d2e-9de9-203c4a3e0401.json | 63 ++++++++++++++++--- ..._ebbbbb92-5208-4d52-b407-6bea8e4473b9.json | 63 ++++++++++++++++--- ..._e38e6e11-ac88-4014-98c8-8e64f70b832a.json | 63 ++++++++++++++++--- ..._cebf00b7-7294-4cf7-bc50-108f999d0c67.json | 63 ++++++++++++++++--- ..._1303e91d-bc80-4ec2-937e-1d179fc32b43.json | 63 ++++++++++++++++--- ..._aa3c5697-5cca-4c16-a37e-94f1d580701e.json | 63 ++++++++++++++++--- ..._e89e023e-117b-4db4-bfb2-853849e273f5.json | 63 ++++++++++++++++--- ..._9ae2dfbf-d69b-4802-8497-8b7836bef5e9.json | 63 ++++++++++++++++--- ..._0f19979d-9dc2-4636-8e15-435bbfa1f0f9.json | 63 ++++++++++++++++--- ..._13bbfe6e-3b65-4940-9344-6d1cc78e7d54.json | 63 ++++++++++++++++--- ..._faf01668-c98a-4755-ae74-9dd4151f4c39.json | 63 ++++++++++++++++--- ..._ef38051a-d9e3-4705-b208-29a421e729be.json | 63 ++++++++++++++++--- ..._269d640c-b6ba-45e1-a52f-67708f9f99d7.json | 63 ++++++++++++++++--- ..._347674ce-8534-403d-8281-cac9ea6f412a.json | 63 ++++++++++++++++--- ..._218161be-4952-495b-aed1-03cccda3d42f.json | 63 ++++++++++++++++--- ..._a3601973-f48c-4bf2-8384-90d250702a79.json | 63 ++++++++++++++++--- ..._757e2adf-60b8-4688-ae8f-03dd7dcd5226.json | 63 ++++++++++++++++--- ..._dfe563fc-0ec1-401d-a362-8d293a06d02b.json | 63 ++++++++++++++++--- ..._f285c23f-3b8e-428a-b289-8ff38a3c0e4b.json | 63 ++++++++++++++++--- ..._e6771f44-f6d3-4a27-a9e4-b402a79c2891.json | 63 ++++++++++++++++--- ..._60453255-5e0e-4fa5-95b5-6c449bee6902.json | 63 ++++++++++++++++--- ..._f0767b27-b88b-46a1-ab90-37dc8c399358.json | 63 ++++++++++++++++--- ..._173e6b88-e8a9-4763-becb-9c749878c767.json | 63 ++++++++++++++++--- ..._978944c7-a049-4847-8483-dcf5baa92f6a.json | 63 ++++++++++++++++--- ..._3a1dd0bd-ebe9-4f9b-b38c-88686a390bdd.json | 63 ++++++++++++++++--- ..._85466088-8eb2-4faa-81f2-1ea40d8b6953.json | 63 ++++++++++++++++--- ..._af2b7bbb-9476-475a-b523-da3ee521eda7.json | 63 ++++++++++++++++--- ..._4f988eb2-c420-4ef2-82ed-2569b21b70e1.json | 63 ++++++++++++++++--- ..._f9b59221-8055-449e-bfd5-7a056945c694.json | 63 ++++++++++++++++--- ..._5f9cdad0-db39-48c9-a4eb-3107b5b79414.json | 63 ++++++++++++++++--- ..._389057c9-a0e0-4327-b89f-58c3dabb519d.json | 63 ++++++++++++++++--- ..._1904dd93-9655-403f-bb89-dc42e5ebc666.json | 63 ++++++++++++++++--- ..._5856ad80-7256-441f-8a62-af1fdc712018.json | 63 ++++++++++++++++--- ..._eb3e1fb3-83e9-4764-b6e1-532bb22ce1aa.json | 63 ++++++++++++++++--- ..._b0ac25d8-ae08-45e1-8a1e-5204514ad7bd.json | 63 ++++++++++++++++--- ..._1103b9a5-3d3d-4aa8-a3c2-66958e32c220.json | 63 ++++++++++++++++--- ..._0c64aa8f-4bdb-4bb0-961c-d298000536af.json | 63 ++++++++++++++++--- ..._d389ee62-f431-4faa-a4bc-4a3d02cea182.json | 63 ++++++++++++++++--- ..._e397645f-359b-46d1-8182-d2cabab71aae.json | 63 ++++++++++++++++--- ..._186c5227-a9f4-4cd0-a355-c8d28f359398.json | 63 ++++++++++++++++--- ..._0a6de1a0-e4df-470f-9bc7-247838fc428c.json | 63 ++++++++++++++++--- ..._a2b3fa9d-f7e8-4d1e-967c-3d661bc06708.json | 63 ++++++++++++++++--- ..._ea7248bd-f96c-4391-ac48-c95312441028.json | 63 ++++++++++++++++--- ..._1d53e3ac-e98a-426c-81f1-aa1834c49692.json | 63 ++++++++++++++++--- ..._90c0997a-f96e-4a34-87c7-c394c6e8b940.json | 63 ++++++++++++++++--- ..._56a13163-c2b6-4235-96bd-ef1e373b19ba.json | 63 ++++++++++++++++--- ..._e031f8bf-ed3f-4a41-87fe-b301c1d02367.json | 63 ++++++++++++++++--- ..._980f53cb-3eef-4263-952e-e69709e2a6e7.json | 63 ++++++++++++++++--- ..._321c2df7-c548-4e06-8729-8132b4dc3386.json | 63 ++++++++++++++++--- ..._08bfad59-0c23-4e6b-b577-e325f445a2cc.json | 63 ++++++++++++++++--- ..._e8fec7b1-ca81-48cd-a7ea-f81cc2fcb4a5.json | 63 ++++++++++++++++--- ..._4b40d85d-f0be-41e5-9d60-ad9a99c54a41.json | 63 ++++++++++++++++--- ..._473c5450-95cc-4f86-bb8a-d0a06edd1357.json | 63 ++++++++++++++++--- ..._71d5d464-ae1c-4383-835f-bb7369e307ea.json | 63 ++++++++++++++++--- ..._a678b284-d23b-46e4-a8fa-75bb744a53bb.json | 63 ++++++++++++++++--- ..._f5e0a050-1994-4864-b2c3-a09dc77fb5b4.json | 63 ++++++++++++++++--- ..._df4f3e6f-757e-4fa0-a411-b2cdf4039649.json | 63 ++++++++++++++++--- ..._2dd0b760-3235-479d-86d4-c152ca76b7e8.json | 63 ++++++++++++++++--- ..._47615ecc-bf5d-47e2-8c10-f8411e6c5d56.json | 63 ++++++++++++++++--- ..._740b104c-1ad2-4ef7-bafc-c98f22551548.json | 63 ++++++++++++++++--- ..._5f2a0272-792a-4cdd-ba94-9f46db438a0e.json | 63 ++++++++++++++++--- ..._c30b6089-59c5-4452-b382-d33152be9b03.json | 63 ++++++++++++++++--- ..._9c7bde49-f0c2-4a07-b150-5dc9464fcf29.json | 63 ++++++++++++++++--- ..._b8286cfa-9f86-4309-954b-ef69a6d8982d.json | 63 ++++++++++++++++--- ..._d5a028d1-ae0e-4349-8a79-630f891c8235.json | 63 ++++++++++++++++--- ..._65deae31-85e8-477a-b17e-50d2d10cd7b0.json | 63 ++++++++++++++++--- ..._85de8003-c1d8-4cd1-80b5-e125399ef293.json | 63 ++++++++++++++++--- ..._d78fc655-68ca-4877-ac60-7fc805f1ae94.json | 63 ++++++++++++++++--- ..._0914c189-0adc-45d6-8704-d2ae73b9b7b6.json | 63 ++++++++++++++++--- ..._3f30e3aa-7e17-4eaf-a437-a420f5a23bf2.json | 63 ++++++++++++++++--- ..._9bae539a-12ed-46e2-b105-101ce036c9a4.json | 63 ++++++++++++++++--- ..._0cb53be3-76b5-44be-9f32-bcc821be34b6.json | 63 ++++++++++++++++--- ..._f77ce9c2-bb95-47e7-8e5d-75d5c098f489.json | 63 ++++++++++++++++--- ..._9c41c539-b81b-4917-b04a-e67225f78e75.json | 63 ++++++++++++++++--- ..._228e104f-002a-441d-91ec-6140f233c1a4.json | 63 ++++++++++++++++--- ..._cf0655a4-042d-4979-bbc7-5559eaa8f2b9.json | 63 ++++++++++++++++--- ..._28f2e10d-2297-47f9-ac6a-c7a8cc0c8ead.json | 63 ++++++++++++++++--- ..._ee10b769-b38b-44d1-9fd3-926b8dca4c41.json | 63 ++++++++++++++++--- ..._faf5510e-28b7-42c9-8ad1-de68a5737eaf.json | 63 ++++++++++++++++--- ..._a7958120-a386-46d0-9790-e80bfa72fb22.json | 63 ++++++++++++++++--- ..._14fc7c6b-484f-427f-a1d2-94cded799f88.json | 63 ++++++++++++++++--- ..._2a1deb2d-1fc0-499b-a828-04aeece855fe.json | 63 ++++++++++++++++--- ..._d4d7685a-ce55-4709-a847-747d02165cb7.json | 63 ++++++++++++++++--- ..._51ff86c0-2add-42e0-aab8-f6f0edcf2b51.json | 63 ++++++++++++++++--- ..._c02f2d18-2b7e-4d85-81fa-2c1437d0b092.json | 63 ++++++++++++++++--- ..._6584a39d-0795-4132-8c33-376d3926d21b.json | 63 ++++++++++++++++--- ..._fb8bc2ae-26bc-45a1-b616-1f45ffb864ae.json | 63 ++++++++++++++++--- ..._343258f9-4bb2-41fb-abfa-d04ea62a6aad.json | 63 ++++++++++++++++--- ..._95865d3b-41d0-4ad6-b08b-a2dcfe0940a9.json | 63 ++++++++++++++++--- ..._e9561f89-282e-4145-b5cc-8485a7fc987c.json | 63 ++++++++++++++++--- ..._230c0173-8b36-4412-9617-3e096886a403.json | 63 ++++++++++++++++--- ..._8875590a-9f72-49a2-807f-62437f8079b1.json | 63 ++++++++++++++++--- ..._2959b52d-6756-480d-9193-b2c0c4c5d305.json | 63 ++++++++++++++++--- ..._2ca39ff3-6f87-438c-81f6-7ce51f70902f.json | 63 ++++++++++++++++--- ..._4f1964ce-6938-499a-af3d-bb746aaff72a.json | 63 ++++++++++++++++--- ..._a9c1e74c-bd3a-438c-bd13-7a2fec2d172c.json | 63 ++++++++++++++++--- ..._26972609-fbb4-4fb9-b7f8-7b99a06bb4e3.json | 63 ++++++++++++++++--- ..._46a66177-c487-4ed1-b2fc-19c0bf52b168.json | 63 ++++++++++++++++--- ..._c67b86dc-74d5-4ea1-882e-de257d054ff3.json | 63 ++++++++++++++++--- ..._237493ef-15c0-4e87-80bc-f8c59dd897ce.json | 63 ++++++++++++++++--- ..._48581aa9-53ee-4467-b04c-402061fe40e8.json | 63 ++++++++++++++++--- ..._1684f387-04e6-440c-a931-f57efdc84cd2.json | 63 ++++++++++++++++--- ..._b1700765-b168-4ad4-a73e-f3a93a6bf5cf.json | 63 ++++++++++++++++--- ..._30ba09b3-4e96-403d-a295-8f37788914aa.json | 63 ++++++++++++++++--- ..._75dbbcf0-d6ae-401f-8765-ba643385da9b.json | 63 ++++++++++++++++--- ..._a3c8bcb4-22ca-45be-92f7-605f232ecec2.json | 63 ++++++++++++++++--- ..._dc852755-e5df-4fd0-83ac-cbbc516f60b3.json | 63 ++++++++++++++++--- ..._7b52bf07-3d86-4429-b5d4-829a6a5542df.json | 63 ++++++++++++++++--- ..._2651f57f-ac74-44f3-8511-c245488134f8.json | 63 ++++++++++++++++--- ..._14356b19-1264-498d-b1cd-e3fa9f0c9fc9.json | 63 ++++++++++++++++--- ..._422c292e-54e3-4e7d-93e2-bcd1bf65dae6.json | 63 ++++++++++++++++--- ..._cae6ec0a-a26d-494b-94b2-3d93dcedff42.json | 63 ++++++++++++++++--- ..._8493c362-2524-4079-9025-8f5ffee62936.json | 63 ++++++++++++++++--- ..._6c4213c5-743f-48b8-b957-dd26fbf8809e.json | 63 ++++++++++++++++--- ..._188fc0b5-a686-48a7-950f-76f183ba49d6.json | 63 ++++++++++++++++--- ..._b131dc45-d6ac-4521-8206-a365ac2dbe52.json | 63 ++++++++++++++++--- ..._d8bf77d2-8572-4392-8097-5e84f136513d.json | 63 ++++++++++++++++--- ..._5aa5790b-2bff-40b0-9099-38485b9a9e0a.json | 63 ++++++++++++++++--- ..._514f695a-4f11-4a28-9516-f7f3b5b1c53b.json | 63 ++++++++++++++++--- ..._c4864d80-dd28-4344-a135-03b600920c06.json | 63 ++++++++++++++++--- ..._eb44cbdc-a259-4354-9b54-2bc72f811440.json | 63 ++++++++++++++++--- ..._6524b22c-661e-48cd-87e7-7ee9ddea7b8b.json | 63 ++++++++++++++++--- ..._346ba728-f7a1-4ca4-8486-786d6ebb9f9a.json | 63 ++++++++++++++++--- ..._9d324d21-ab2b-48b7-a637-4b1d9891d6b5.json | 63 ++++++++++++++++--- ..._a4b5f1f3-aa12-4ed5-8a9d-a135204d22de.json | 63 ++++++++++++++++--- ..._5d020d4d-9359-4ecd-934a-409d0e4a5abd.json | 63 ++++++++++++++++--- ..._350cc22f-d202-4c7c-9239-cbdb3b71e14b.json | 63 ++++++++++++++++--- ..._8f7a8cb8-feef-4eaa-9e74-18693ce9969e.json | 63 ++++++++++++++++--- ..._16c2d231-f28b-4146-9aa3-57d419eb8780.json | 63 ++++++++++++++++--- ..._85bb464e-d9ce-496a-a66d-4c6d28d808df.json | 63 ++++++++++++++++--- ..._114f7c8e-e285-487d-9e50-7fe160769167.json | 63 ++++++++++++++++--- ..._42ae6a24-d545-4bbd-a7f9-8a3b6f977366.json | 63 ++++++++++++++++--- ..._0378fd1f-976e-4a32-aa2b-25003e7d6ee5.json | 63 ++++++++++++++++--- ..._cb35fd68-9568-42f9-b527-44e77726b100.json | 63 ++++++++++++++++--- ..._c897902c-40a5-497b-a0ce-86c3eda7c61d.json | 63 ++++++++++++++++--- ..._0337a76f-238e-4d4d-9cd1-48b205874dbb.json | 63 ++++++++++++++++--- ..._d3b80f22-9f1d-3038-86ff-c4dd5ba02d7a.json | 63 ++++++++++++++++--- ..._be3f1bfc-c21a-4399-9b9f-a33ebdc470cb.json | 63 ++++++++++++++++--- ..._a171bc0c-676f-464b-a7b5-e50cd6c612a2.json | 63 ++++++++++++++++--- ..._c0f647d6-d7f4-46ab-8591-b2f2b481e8e8.json | 63 ++++++++++++++++--- ..._65d02c68-e50f-4a0e-9de9-0d52edea4af0.json | 63 ++++++++++++++++--- ..._9f91c6f3-e93e-4510-b72b-8678f6d38014.json | 63 ++++++++++++++++--- ..._cb7001d3-8a0e-41ed-b281-44fee5379f06.json | 63 ++++++++++++++++--- ..._30b0cb86-ba8b-4eeb-9067-88456ec403ad.json | 63 ++++++++++++++++--- ..._075f0066-51f6-4c36-8000-ce7070493674.json | 63 ++++++++++++++++--- ..._27768691-301d-4938-bd8a-85598c2b50c6.json | 63 ++++++++++++++++--- ..._1be09484-96ee-4399-8ed4-35f5f4b5c23e.json | 63 ++++++++++++++++--- ..._d474e6d2-0b9a-4912-ae61-16dc23126b3f.json | 63 ++++++++++++++++--- ..._149f6b6c-4729-4da4-af00-bccbb1cce9ae.json | 63 ++++++++++++++++--- ..._73fa1878-d22d-4e8d-922d-9f146454cc40.json | 63 ++++++++++++++++--- ..._d5827f03-efb6-4257-96e2-b6e34e3bef7e.json | 63 ++++++++++++++++--- ..._e636b3ea-da2d-42f5-aedf-12b69432ac1f.json | 63 ++++++++++++++++--- ..._3cbcad15-0bb6-423e-87c1-4d40722103d6.json | 63 ++++++++++++++++--- ..._57c7b576-d4b2-4aa7-8c58-5c0ccbf94726.json | 63 ++++++++++++++++--- ..._c319a40c-3750-4fb4-a36d-beb3d09ef2ee.json | 63 ++++++++++++++++--- ..._d43ca9ef-6211-40ff-972e-fffb17923fc9.json | 63 ++++++++++++++++--- ..._e59f4d17-2600-4bcc-ab57-6c695d37a0b2.json | 63 ++++++++++++++++--- ..._9c8be4c5-5ba3-47ef-8a0a-97144734a336.json | 63 ++++++++++++++++--- ..._695b9710-e432-4521-9042-36287f0fc5ba.json | 63 ++++++++++++++++--- ..._e77b6820-e115-4e33-97c1-9bb902eec3b2.json | 63 ++++++++++++++++--- ..._73afde26-bd0c-4c31-8801-5b2444629448.json | 63 ++++++++++++++++--- ..._f03d1a7a-6bd3-42ae-89db-b36fd6ce5633.json | 63 ++++++++++++++++--- ..._6d77d848-23b1-4ff4-b9de-d421845d9566.json | 63 ++++++++++++++++--- ..._7640663c-b2f7-41bf-9419-be5e8cfdf74e.json | 63 ++++++++++++++++--- ..._06982a17-4def-405d-bb59-4ecfb6486f9e.json | 63 ++++++++++++++++--- ..._c88acf4e-2d23-4ac7-93fb-e44ded53ecee.json | 63 ++++++++++++++++--- ..._0ff72493-3822-4315-a146-8977a0963e39.json | 63 ++++++++++++++++--- ..._b23f1e82-a791-4610-aaa6-2d960b48b81d.json | 63 ++++++++++++++++--- ..._e8fdab4c-cc9a-4729-8619-a0f468f4dfdc.json | 63 ++++++++++++++++--- ..._afd848a8-8b18-410c-bcc1-1b6f06a5a231.json | 63 ++++++++++++++++--- ..._0d4040d7-4478-46b5-98e0-14bb2f7b8ecf.json | 63 ++++++++++++++++--- ..._2c288e52-422b-4f7e-85cf-feb3d08a1602.json | 63 ++++++++++++++++--- ..._494aa5d6-444d-4c86-9de5-431b3e12a233.json | 63 ++++++++++++++++--- ..._b050d767-098e-4947-aa88-2a3090e62eab.json | 63 ++++++++++++++++--- ..._0d1709ed-805e-4ca1-8490-f2d6b393e92f.json | 63 ++++++++++++++++--- ..._dfbcdbb7-fed8-49c5-8a10-ed34d20fc617.json | 63 ++++++++++++++++--- ..._efc101c0-0623-4928-86a7-6f2d37faf24b.json | 63 ++++++++++++++++--- ..._37302f31-86e2-45c8-a39f-d0b41c1271df.json | 63 ++++++++++++++++--- ..._2e4ae517-3d35-4677-a4b0-441ca19e7670.json | 63 ++++++++++++++++--- ..._cc428042-1a21-43f7-b5f8-598dea50f4a2.json | 63 ++++++++++++++++--- ..._d56551a8-1355-4aa3-871e-e20e1ce40f05.json | 63 ++++++++++++++++--- ..._5808dbdb-712e-4bd3-b92e-4a08388c32c6.json | 63 ++++++++++++++++--- ..._afc45643-7bd3-4321-9924-ac710bb78f88.json | 63 ++++++++++++++++--- ..._47fe6c76-47a0-433f-92d6-a23d9f573771.json | 63 ++++++++++++++++--- ..._8a586e59-0f53-41bd-8406-174f9f0ecf7e.json | 63 ++++++++++++++++--- ..._ff147700-c9e6-4063-bb23-45500c00067a.json | 63 ++++++++++++++++--- ..._4d5c7854-e044-4dd6-971b-df433fa3ad37.json | 63 ++++++++++++++++--- ..._af1ba971-9b73-4b7f-8040-5eff9f5778d5.json | 63 ++++++++++++++++--- ..._0fac138d-cf48-4dc2-ac02-053d0b24e620.json | 63 ++++++++++++++++--- ..._08dad105-6416-4348-9feb-339f73e24262.json | 63 ++++++++++++++++--- ..._ca29484c-b6e5-467e-984d-567e262380d7.json | 63 ++++++++++++++++--- ..._ceaeccae-ffa5-4c8c-8415-c7be8266977d.json | 63 ++++++++++++++++--- ..._bf37971c-60f4-4652-a059-7607b1d6d31b.json | 63 ++++++++++++++++--- ..._dee0e83f-8d5c-4735-9730-1a850354e4b1.json | 63 ++++++++++++++++--- ..._378a85f8-f24c-4ce6-bfb0-eb5ccbd61768.json | 63 ++++++++++++++++--- ..._15a67b66-30eb-4d0f-aa98-7350304347d0.json | 63 ++++++++++++++++--- ..._a4de0a96-9e79-4a03-a91c-cbd09ea3d29a.json | 63 ++++++++++++++++--- ..._5ec4f863-ec6f-4fe8-b258-a53b3183138a.json | 63 ++++++++++++++++--- ..._1987b5a9-bbc3-43c6-af35-cd69e61fe043.json | 63 ++++++++++++++++--- ..._5b64d91c-54de-4f8c-a5d6-054967f4ceaf.json | 63 ++++++++++++++++--- ..._d15179b2-4b57-41e4-997b-dc7c380963d9.json | 63 ++++++++++++++++--- ..._a39efd3b-04ef-48d4-a862-053092bdd6e5.json | 63 ++++++++++++++++--- ..._055c20da-0d21-4c6a-a80b-f2c4b3887804.json | 63 ++++++++++++++++--- ..._d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5.json | 63 ++++++++++++++++--- ..._94c90db6-8fd7-460c-b704-c2a429913376.json | 63 ++++++++++++++++--- ..._39d3123b-daaa-4f70-97a3-8a4f326104af.json | 63 ++++++++++++++++--- ..._a92cb746-f19f-450b-b413-8b9710b0176b.json | 63 ++++++++++++++++--- ..._b239797f-e627-4e48-8609-94db72098c3d.json | 63 ++++++++++++++++--- ..._e1808855-9a4d-464d-b75a-a41183c520bd.json | 63 ++++++++++++++++--- ..._7cb8821d-c178-4c02-ba8a-1c6fcbcde2e8.json | 63 ++++++++++++++++--- ..._53bb49ec-ed5b-40c3-999b-efefa9be4536.json | 63 ++++++++++++++++--- ..._4c2e410b-644e-4331-a55c-19bfdc3e4754.json | 63 ++++++++++++++++--- ..._c57f27b1-151c-4d27-a77e-b85547d817f7.json | 63 ++++++++++++++++--- ..._61cbc62a-1382-4581-850f-4ea69d8a9615.json | 63 ++++++++++++++++--- ..._7659c9f8-c257-4f0b-a8d9-1ceae6177ff5.json | 63 ++++++++++++++++--- ..._1744119b-cabb-4ac4-97c6-a61249a6c5be.json | 63 ++++++++++++++++--- ..._370ff9a8-11ea-469a-9f52-b1c39d61c39d.json | 63 ++++++++++++++++--- ..._4d219611-6487-4fcf-9bac-29cd9e5046a9.json | 63 ++++++++++++++++--- ..._95473b2f-74ea-4929-bf22-f6f3be4ccbd5.json | 63 ++++++++++++++++--- ..._b410b69e-8bd5-44fe-899d-f4d5dce9931a.json | 63 ++++++++++++++++--- ..._e71f87d1-81bb-4ee6-802d-9da4ab1cb3e3.json | 63 ++++++++++++++++--- ..._c064753f-ea6a-4940-b603-975adb5127ae.json | 63 ++++++++++++++++--- ..._652acaf1-c5a1-4a88-b3bb-822a14dece19.json | 63 ++++++++++++++++--- ..._cb9a5dd7-4ae2-4adf-ab11-95363032ee5d.json | 63 ++++++++++++++++--- ..._a78addf1-4632-4fc2-9afc-d1fb75049872.json | 63 ++++++++++++++++--- ..._54d85ec1-6c8d-4372-bdab-f6f0b5cc12c4.json | 63 ++++++++++++++++--- ..._529b0b1f-46fc-423f-94ab-dd71dd7894e2.json | 63 ++++++++++++++++--- ..._8020f41e-ca61-43b4-88ca-f520057dfa92.json | 63 ++++++++++++++++--- ..._27181c58-ca7a-433f-a0ee-a7a33102cb36.json | 63 ++++++++++++++++--- ..._7f4c355a-5411-4400-826a-b82007bbd83d.json | 63 ++++++++++++++++--- ..._dd3f294f-d12e-4e34-8f6a-c304d3d977e2.json | 63 ++++++++++++++++--- ..._f4699243-1ba2-49a8-85f8-c4a22a563925.json | 63 ++++++++++++++++--- ..._88642ff7-6c08-486a-9bf2-37764d5bf6a3.json | 63 ++++++++++++++++--- ..._4c3c25d2-7473-4d0c-9174-609162571859.json | 63 ++++++++++++++++--- ..._56491bc7-1267-42a2-92c6-fe9efe822ff1.json | 63 ++++++++++++++++--- ..._09bb7f01-a715-437d-b692-325f89e1869e.json | 63 ++++++++++++++++--- ..._092f6e09-1eb5-436d-b7c2-eadb70318920.json | 63 ++++++++++++++++--- ..._6f02e3e8-9bfa-4312-a352-6506139e3dba.json | 63 ++++++++++++++++--- ..._ca909c09-89c4-467e-bdca-9140e72d6c82.json | 63 ++++++++++++++++--- ..._a34fa329-da3e-4947-8d06-9bd2bee6c8a7.json | 63 ++++++++++++++++--- ..._b511650f-535c-45d1-a089-0ea402245deb.json | 63 ++++++++++++++++--- ..._1cc4a539-e4bf-40e8-a280-f4e9e178fb51.json | 63 ++++++++++++++++--- ..._72dea6f4-858c-423f-8189-406aac7d20ac.json | 63 ++++++++++++++++--- ..._b0ea832c-aae8-42c0-ad83-0bb13d66d56e.json | 63 ++++++++++++++++--- ..._d74fd111-125f-45b8-8bbc-e23bd40aa869.json | 63 ++++++++++++++++--- ..._cd3b834d-f34f-4a67-af01-b1c5d32195a9.json | 63 ++++++++++++++++--- ..._c5ae6d80-59db-4087-8e9b-0df36c54ebe9.json | 63 ++++++++++++++++--- ..._7b361791-127e-4a6f-9c1b-c8d9f41ec223.json | 63 ++++++++++++++++--- ..._a05d97b8-37b9-4100-a860-d57363aaaf5f.json | 63 ++++++++++++++++--- ..._c2c9a09d-7fad-4c67-9a29-4c2c376a7214.json | 63 ++++++++++++++++--- ..._7affb4da-2058-4f12-b15b-ca58e92b63e5.json | 63 ++++++++++++++++--- ..._99ba0b14-4b3c-49b5-8763-3161b9aae538.json | 63 ++++++++++++++++--- ..._b0c5e86f-eb2d-41ea-a4a0-9819ad841c70.json | 63 ++++++++++++++++--- ..._91044c16-83bc-457f-80a9-360bad5dedb4.json | 63 ++++++++++++++++--- ..._8b472051-ff68-4059-9e50-243bfb64bae4.json | 63 ++++++++++++++++--- ..._aad0e64e-3cda-45bf-b6bd-8cff29ee35e5.json | 63 ++++++++++++++++--- ..._60ec2790-dc83-419c-bdb5-38da9a477c68.json | 63 ++++++++++++++++--- ..._de6d5087-bc5a-474f-9319-248a3c03ab44.json | 63 ++++++++++++++++--- ..._a70e406c-a0ae-4e0f-99cd-8b0836812c59.json | 63 ++++++++++++++++--- ..._08a4f049-9bb8-45d0-9dfb-320f385cc71f.json | 63 ++++++++++++++++--- ..._30b462dd-d026-4122-9bcf-3a114517e04c.json | 63 ++++++++++++++++--- ..._969677fe-d1e0-42f6-92af-c9269780411b.json | 63 ++++++++++++++++--- ..._db621663-ec0a-4fa3-82a7-b6b110726568.json | 63 ++++++++++++++++--- ..._1116a5eb-9e12-415a-af46-fad552421d36.json | 63 ++++++++++++++++--- ..._732c0a7b-ac17-47cb-bf78-2ebaa839fa0d.json | 63 ++++++++++++++++--- ..._88b7198b-32a5-4ae2-aaa5-7925066cc08c.json | 63 ++++++++++++++++--- ..._0c416177-e7ce-40d5-8f15-8566b3d7c03c.json | 63 ++++++++++++++++--- ..._593b6885-3fb8-4562-89f1-8b0b68649185.json | 63 ++++++++++++++++--- ..._76583e85-8be6-4d02-8e09-aff0ce8574f8.json | 63 ++++++++++++++++--- ..._af5d055f-0e1f-4c48-808a-d21f8268357d.json | 63 ++++++++++++++++--- ..._171e5b5c-78cc-44a1-b7fb-7d750914ed5e.json | 63 ++++++++++++++++--- ..._49ba0df7-18bf-4b3e-9d0f-f8c055762fd5.json | 63 ++++++++++++++++--- ..._04f64694-48a2-48ee-9455-ccce8e59b66f.json | 63 ++++++++++++++++--- ..._b8140cdb-5492-4177-881f-8668372947a8.json | 63 ++++++++++++++++--- ..._0b608189-b028-4851-8854-9ce1a48c3dd6.json | 63 ++++++++++++++++--- ..._83703f70-9ea8-44aa-b88a-a8e56eb42858.json | 63 ++++++++++++++++--- ..._2993107e-d54f-4fc4-af7a-6a9bc6b4ea46.json | 63 ++++++++++++++++--- ..._8f9b2819-9c51-4f30-91fd-195b7bc5d7a5.json | 63 ++++++++++++++++--- ..._805aa9c8-4d52-411d-9811-cc02b33952e3.json | 63 ++++++++++++++++--- ..._25a1c11a-3ec4-47aa-b67e-f359fd14483a.json | 63 ++++++++++++++++--- ..._d3985fe5-c7f0-47a1-b52e-26098345a433.json | 63 ++++++++++++++++--- ..._7a044f2f-f38f-4f13-82eb-c7f49bf17ad0.json | 63 ++++++++++++++++--- ..._172396a9-27f0-4c01-9510-94ba4a0d4738.json | 63 ++++++++++++++++--- ..._784a29e7-5799-4fde-90ee-b6ebcb2a8747.json | 63 ++++++++++++++++--- ..._0b3362f7-b1ff-4d78-8c25-f14ee9300ae1.json | 63 ++++++++++++++++--- ..._868a7fc3-9c5c-4fb4-9289-fbe10dd4db82.json | 63 ++++++++++++++++--- ..._c1095936-da8d-4c63-ac70-cf97d5b1f630.json | 63 ++++++++++++++++--- ..._67872571-d13d-4123-81c5-60404c4eea45.json | 63 ++++++++++++++++--- ..._52ec94f5-0d89-434b-9d51-df92d69ba284.json | 63 ++++++++++++++++--- ..._860d21ea-8c6a-4c78-ac40-f556eb02c3ac.json | 63 ++++++++++++++++--- ..._fdde6805-edf8-4277-adb8-ad2f44e3f977.json | 63 ++++++++++++++++--- ..._5543b815-f2c8-420e-847e-7507a9724557.json | 63 ++++++++++++++++--- ..._c51c3514-1730-42f3-b8ae-f2980bd22d83.json | 63 ++++++++++++++++--- ..._487c6beb-1468-4167-8eb6-e9b3ad8743b1.json | 63 ++++++++++++++++--- ..._950586ee-6926-4483-96d4-82838afe1ca6.json | 63 ++++++++++++++++--- ..._19785707-24c9-4852-b92a-31732b86ee04.json | 63 ++++++++++++++++--- ..._a57a1cc4-4ec9-4d8f-a81d-7e18afe54948.json | 63 ++++++++++++++++--- ..._b7581df7-f127-405e-9408-9d484122be74.json | 63 ++++++++++++++++--- ..._c7567682-8723-4426-8c27-848a9cc634d0.json | 63 ++++++++++++++++--- ..._58f62f20-b9ba-472c-a2a4-37b53ed3e21d.json | 63 ++++++++++++++++--- ..._dfd37715-0d5c-4ec5-98ae-836cd626a27f.json | 63 ++++++++++++++++--- ..._641ca3dc-a00f-43ac-b6bd-4f5d16f35cac.json | 63 ++++++++++++++++--- ..._05591510-5fe2-454a-96d8-bbda8201c6a4.json | 63 ++++++++++++++++--- ..._c5c95fe9-a4b4-4afa-a07a-a0d18804d416.json | 63 ++++++++++++++++--- ..._2cda2f3a-8657-431a-a50f-56835aea9a81.json | 63 ++++++++++++++++--- ..._7157dc17-9d5a-4835-a122-1d0d904d61ff.json | 63 ++++++++++++++++--- ..._d528ffcb-3a99-4356-96d1-981499139ffb.json | 63 ++++++++++++++++--- ..._460b6b29-a602-4409-b748-6b47b232a984.json | 63 ++++++++++++++++--- ..._3ddd3f95-989c-4777-b6b8-728439aae1df.json | 63 ++++++++++++++++--- ..._ce44fc81-3610-4165-a107-9dd4b8ab3972.json | 63 ++++++++++++++++--- ..._50124594-a291-4183-a8e3-195f5e6f5204.json | 63 ++++++++++++++++--- ..._d26f4c8b-0461-4c57-b230-cbd1a5424db1.json | 63 ++++++++++++++++--- ..._70f88865-7a8b-4e03-9252-a9369df503ef.json | 63 ++++++++++++++++--- ..._f5c13b49-8528-457d-9d7d-083b8433bf96.json | 63 ++++++++++++++++--- ..._07eeae07-010e-47ca-ad90-fa7adb5a6c52.json | 63 ++++++++++++++++--- ..._1a8132b9-fbd2-4ac5-9e08-96358e16b7f7.json | 63 ++++++++++++++++--- ..._f44a3cb0-6e99-4a5e-a691-c5d7d5bf7e64.json | 63 ++++++++++++++++--- ..._86922a27-41bb-4834-bc54-0b602b275597.json | 63 ++++++++++++++++--- ..._0fe27fd1-e4f7-48c1-bbd2-a6953755d5e8.json | 63 ++++++++++++++++--- ..._3743016a-a056-43fe-b53a-36dd9a17626d.json | 63 ++++++++++++++++--- ..._7e9d0710-3243-4cf2-8b73-6be1539b8545.json | 63 ++++++++++++++++--- ..._805c4ae5-a852-43bd-ad1c-0f7f381d8f32.json | 63 ++++++++++++++++--- ..._5d9075b5-3c19-4cf6-9c2e-50ba4c175691.json | 63 ++++++++++++++++--- ..._16a64053-1905-4d8e-8198-810584cad108.json | 63 ++++++++++++++++--- ..._47cd814e-1991-437e-8feb-e589a250d2a3.json | 63 ++++++++++++++++--- ..._92efc2ea-b6ed-41aa-921c-6d40e7b58c27.json | 63 ++++++++++++++++--- ..._6b2e0ce9-d1b8-4061-b3ce-c39f9c5c1763.json | 63 ++++++++++++++++--- ..._73ec4301-872a-4bea-928e-420255aae8cb.json | 63 ++++++++++++++++--- ..._fa056aaf-57c4-4abe-9bc5-23ba413a1f5b.json | 63 ++++++++++++++++--- ..._88f3cbc0-bcfb-482f-b6f4-709a335afcad.json | 63 ++++++++++++++++--- ..._af66de51-079c-4d34-af92-f52f887642dc.json | 63 ++++++++++++++++--- ..._1b37038e-6e5c-4463-97d4-8a632251d70e.json | 63 ++++++++++++++++--- ..._db517009-30ad-4cbc-b282-7f212052c3b4.json | 63 ++++++++++++++++--- ..._b1a4849b-78a8-437f-8113-7c6f2dc34927.json | 63 ++++++++++++++++--- ..._eb186756-b63b-408a-bbaf-ac94c1010287.json | 63 ++++++++++++++++--- ..._a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80.json | 63 ++++++++++++++++--- ..._5d872cb4-7f71-4275-81eb-98c968c0cadd.json | 63 ++++++++++++++++--- ..._f75dec98-78a3-4e42-954d-375fe3352857.json | 63 ++++++++++++++++--- ..._5e544473-d84f-427d-869d-9d982619e4cb.json | 63 ++++++++++++++++--- ..._b663a689-6db8-467d-8b5d-8cd34afe4b0e.json | 63 ++++++++++++++++--- ..._8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c.json | 63 ++++++++++++++++--- ..._c4d93fac-a6b6-4731-a92a-c499b6fb2bcb.json | 63 ++++++++++++++++--- ..._0acc30dc-881d-46c9-b634-8cba507a263f.json | 63 ++++++++++++++++--- ..._0a3689c7-b610-4c52-ae84-ab0640f3d6e4.json | 63 ++++++++++++++++--- ..._45fef979-c27e-425a-a6c3-e5bd28b1eb86.json | 63 ++++++++++++++++--- ..._26e09eae-c784-4e8f-a225-d3f13efff76f.json | 63 ++++++++++++++++--- ..._8660f357-83f9-4719-bdf3-bae57af2d967.json | 63 ++++++++++++++++--- ..._8cbe449d-9264-4ae1-8221-5d97989005a8.json | 63 ++++++++++++++++--- ..._c81d3e6c-5539-42ad-a95f-9bba504d91f0.json | 63 ++++++++++++++++--- ..._7815fc6f-bfb1-4474-9ea6-05e1449a2ed5.json | 63 ++++++++++++++++--- ..._34769aaa-5014-4ced-bb08-9fabfba3d959.json | 63 ++++++++++++++++--- ..._7f951991-c6ce-4c72-9f55-7eade2c4f57c.json | 63 ++++++++++++++++--- ..._ea68cbf2-b8a6-4f47-afda-94cab9ce4622.json | 63 ++++++++++++++++--- ..._eb627157-b9c8-4e8f-a00e-f9eb7df45c78.json | 63 ++++++++++++++++--- ..._0020bd6d-cd35-491e-9c71-f66bd64ed9a9.json | 63 ++++++++++++++++--- ..._f0fa5804-9d5f-4e23-91c0-996c561585ef.json | 63 ++++++++++++++++--- ..._7d30aeb3-31e5-4742-aa7e-825c2a6af42a.json | 63 ++++++++++++++++--- ..._381221db-fd9a-4d65-a16f-63e7492b0a49.json | 63 ++++++++++++++++--- ..._ebd9a9cf-7aa1-4c75-8b76-33f94e4bb8ef.json | 63 ++++++++++++++++--- ..._b46ef7a9-6597-4c4f-a5ca-9ca653e1b716.json | 63 ++++++++++++++++--- ..._1dc8c746-4caf-4355-9d82-bdeaa1cf95bf.json | 63 ++++++++++++++++--- ..._c0dbcbee-eefd-4ee4-bd25-48d42444c882.json | 63 ++++++++++++++++--- ..._289283c0-87ae-475f-b756-306783c7ec4d.json | 63 ++++++++++++++++--- ..._ea14eb56-238e-42b2-95ae-4d624d720d10.json | 63 ++++++++++++++++--- ..._4f2ead64-7412-4695-9855-47f36ade6f7e.json | 63 ++++++++++++++++--- ..._8e2a7c77-890c-49d5-aadd-052764135995.json | 63 ++++++++++++++++--- ..._6cf01e09-24d5-4097-bac1-1d39b0f577c8.json | 63 ++++++++++++++++--- ..._21280a1a-d4e5-4ec3-83f5-f8d22ae0340a.json | 63 ++++++++++++++++--- ..._16072e08-8ffb-48c9-afa9-fe2192b4513b.json | 63 ++++++++++++++++--- ..._583c6484-b7a3-4908-b4d4-9a8b08d1edf9.json | 63 ++++++++++++++++--- ..._d8d1bc29-bfdb-48a5-89bd-7e34522d8085.json | 63 ++++++++++++++++--- ..._64f41eaa-048f-4892-b80f-593e74ef4f84.json | 63 ++++++++++++++++--- ..._4c4d35e8-fdd7-4951-8a71-7b9add69d337.json | 63 ++++++++++++++++--- ..._f6c1126c-48cf-499a-b0a2-e4fdd80cdf0e.json | 63 ++++++++++++++++--- ..._c7ad761f-19bf-4289-ab47-2721c6d387eb.json | 63 ++++++++++++++++--- ..._7bdc68c3-7679-482d-82e4-92a8229db9d7.json | 63 ++++++++++++++++--- ..._520cc4d4-2caa-42df-b8b7-86dbc4786ce6.json | 63 ++++++++++++++++--- ..._8748b7d6-ef2a-4548-bf8e-dc6eecd2a651.json | 63 ++++++++++++++++--- ..._14dbacac-2559-4537-9be9-7d08bdd0888d.json | 63 ++++++++++++++++--- ..._e85efb6a-239a-41e0-8cdd-b1792c41ec41.json | 63 ++++++++++++++++--- ..._b87ecc60-7558-4cb4-8ef9-3185c4c19579.json | 63 ++++++++++++++++--- ..._96257455-b2cf-4f35-9c64-00eea637471a.json | 63 ++++++++++++++++--- ..._f03350e9-f936-4ac0-a64f-2d2df1fc9f75.json | 63 ++++++++++++++++--- ..._2a129b1b-36a7-4048-9403-004dc5e6b0b2.json | 63 ++++++++++++++++--- ..._a74bd8f3-cab7-46e6-ac1e-7527d2385bee.json | 63 ++++++++++++++++--- ..._b16f8234-e6c6-4723-933e-e5f8c179f23d.json | 63 ++++++++++++++++--- ..._a9177e32-e3fa-425a-a02e-727ff3515ae0.json | 63 ++++++++++++++++--- ..._49f62a85-7edf-4afc-9201-7a8939d6a42a.json | 63 ++++++++++++++++--- ..._48fcc15e-f043-4bb5-a628-6aefc60432c1.json | 63 ++++++++++++++++--- ..._b63593ad-6c47-49e3-9b4a-e8b19f0cc7db.json | 63 ++++++++++++++++--- ..._b0c0fca3-1832-4a18-8832-5eebd2c1370a.json | 63 ++++++++++++++++--- ..._1e71d59c-b29f-4b43-9f49-7aa0da50c88c.json | 63 ++++++++++++++++--- ..._12241b03-3f62-4100-9cf3-7798a7796600.json | 63 ++++++++++++++++--- ..._dc560ab2-18ad-49ae-9937-9b9a770faaab.json | 63 ++++++++++++++++--- ..._e4fa68d2-55cd-4371-9574-95ae5c34d4ae.json | 63 ++++++++++++++++--- ..._0853a13e-b316-4ea0-98a2-9d722a508d1e.json | 63 ++++++++++++++++--- ..._a8024ffc-b3b7-48eb-8f24-ae7da834cde2.json | 63 ++++++++++++++++--- ..._02ef5600-fed6-474a-8fbb-5ed088b04d0d.json | 63 ++++++++++++++++--- ..._93768520-ab75-4e4e-b39b-a210a32379c0.json | 63 ++++++++++++++++--- ..._3acdc4ab-514c-42c3-82e1-cb41fa338c2f.json | 63 ++++++++++++++++--- ..._2e62242b-6d20-44b5-86f9-f9a0de8ffe3f.json | 63 ++++++++++++++++--- ..._fa87c863-2d21-4b9d-897f-452fd35b06c3.json | 63 ++++++++++++++++--- ..._9e412261-433b-45fd-8944-2f891bf14a56.json | 63 ++++++++++++++++--- ..._89ec4b6f-d1b2-4402-8a1d-48440624fc31.json | 63 ++++++++++++++++--- ..._8a492278-c49f-4e4c-8fd5-a1680590864a.json | 63 ++++++++++++++++--- ..._e6f23a76-11f3-471e-b7d7-ebc787487069.json | 63 ++++++++++++++++--- ..._ff5238a3-e40f-47c7-a142-f7a19b7764f9.json | 63 ++++++++++++++++--- ..._67ca6d43-ab88-4fb8-9c18-2862765681e6.json | 63 ++++++++++++++++--- ..._265b54e0-33a0-44b3-9f7b-ce53328439e3.json | 63 ++++++++++++++++--- ..._0bdd95e0-1d48-40e5-85c7-cd8008b966b0.json | 63 ++++++++++++++++--- ..._fe7cfeb1-c18f-4822-8e6c-fb73dcd175a8.json | 63 ++++++++++++++++--- ..._b4e2bc80-9307-44d8-89f1-04c7133f37fc.json | 63 ++++++++++++++++--- .../generate-policies-full-arm.ps1 | 1 + .../policy/metric-dynamic-full-arm.json | 63 ++++++++++++++++--- .../policy/metric-static-full-arm.json | 63 ++++++++++++++++--- 614 files changed, 34329 insertions(+), 4291 deletions(-) diff --git a/services/AVS/privateClouds/templates/policy-arm/CPUCritical_bb83ae53-3b91-49ff-a351-9545ea747335.json b/services/AVS/privateClouds/templates/policy-arm/CPUCritical_bb83ae53-3b91-49ff-a351-9545ea747335.json index eead24530..31f720c08 100644 --- a/services/AVS/privateClouds/templates/policy-arm/CPUCritical_bb83ae53-3b91-49ff-a351-9545ea747335.json +++ b/services/AVS/privateClouds/templates/policy-arm/CPUCritical_bb83ae53-3b91-49ff-a351-9545ea747335.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds EffectiveCpuAverage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds EffectiveCpuAverage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds EffectiveCpuAverage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds EffectiveCpuAverage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/CPU_282cb835-592b-4e49-89c1-ea1aaefb37c4.json b/services/AVS/privateClouds/templates/policy-arm/CPU_282cb835-592b-4e49-89c1-ea1aaefb37c4.json index 1f258e0e3..6a7f98545 100644 --- a/services/AVS/privateClouds/templates/policy-arm/CPU_282cb835-592b-4e49-89c1-ea1aaefb37c4.json +++ b/services/AVS/privateClouds/templates/policy-arm/CPU_282cb835-592b-4e49-89c1-ea1aaefb37c4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds EffectiveCpuAverage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds EffectiveCpuAverage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds EffectiveCpuAverage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds EffectiveCpuAverage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/DiskUsedPercentage_23ac19cb-5eff-4cfa-9817-93466e1a94f7.json b/services/AVS/privateClouds/templates/policy-arm/DiskUsedPercentage_23ac19cb-5eff-4cfa-9817-93466e1a94f7.json index 4f86325ed..6a0877f70 100644 --- a/services/AVS/privateClouds/templates/policy-arm/DiskUsedPercentage_23ac19cb-5eff-4cfa-9817-93466e1a94f7.json +++ b/services/AVS/privateClouds/templates/policy-arm/DiskUsedPercentage_23ac19cb-5eff-4cfa-9817-93466e1a94f7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds DiskUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds DiskUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds DiskUsedPercentage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds DiskUsedPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/MemoryCritical_a2f5e5a3-ec38-4201-970f-971ad4707b93.json b/services/AVS/privateClouds/templates/policy-arm/MemoryCritical_a2f5e5a3-ec38-4201-970f-971ad4707b93.json index d2cc41d0c..89b3f11c9 100644 --- a/services/AVS/privateClouds/templates/policy-arm/MemoryCritical_a2f5e5a3-ec38-4201-970f-971ad4707b93.json +++ b/services/AVS/privateClouds/templates/policy-arm/MemoryCritical_a2f5e5a3-ec38-4201-970f-971ad4707b93.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds UsageAverage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/Memory_e840c7a9-e070-4dc9-919b-c75a3679f6b7.json b/services/AVS/privateClouds/templates/policy-arm/Memory_e840c7a9-e070-4dc9-919b-c75a3679f6b7.json index 7273b40de..dae471980 100644 --- a/services/AVS/privateClouds/templates/policy-arm/Memory_e840c7a9-e070-4dc9-919b-c75a3679f6b7.json +++ b/services/AVS/privateClouds/templates/policy-arm/Memory_e840c7a9-e070-4dc9-919b-c75a3679f6b7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds UsageAverage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/Storage_8bafb3d5-d961-49a4-9867-f1cddfd703e0.json b/services/AVS/privateClouds/templates/policy-arm/Storage_8bafb3d5-d961-49a4-9867-f1cddfd703e0.json index dffce18ec..0ab627f59 100644 --- a/services/AVS/privateClouds/templates/policy-arm/Storage_8bafb3d5-d961-49a4-9867-f1cddfd703e0.json +++ b/services/AVS/privateClouds/templates/policy-arm/Storage_8bafb3d5-d961-49a4-9867-f1cddfd703e0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds DiskUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds DiskUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds DiskUsedPercentage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds DiskUsedPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AVS/privateClouds/templates/policy-arm/UsageAverage_b9f2fe91-023a-443c-b376-b12f0cd5d965.json b/services/AVS/privateClouds/templates/policy-arm/UsageAverage_b9f2fe91-023a-443c-b376-b12f0cd5d965.json index 60904afcd..7008b1a0f 100644 --- a/services/AVS/privateClouds/templates/policy-arm/UsageAverage_b9f2fe91-023a-443c-b376-b12f0cd5d965.json +++ b/services/AVS/privateClouds/templates/policy-arm/UsageAverage_b9f2fe91-023a-443c-b376-b12f0cd5d965.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AVS privateClouds UsageAverage Alert", - "description": "Policy to Audit/Deploy AVS privateClouds UsageAverage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AVS", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AnalysisServices/servers/templates/policy-arm/memorymetric_0289bc11-db65-4a58-91ed-fda8637322ec.json b/services/AnalysisServices/servers/templates/policy-arm/memorymetric_0289bc11-db65-4a58-91ed-fda8637322ec.json index e6a2ff81e..460890fe6 100644 --- a/services/AnalysisServices/servers/templates/policy-arm/memorymetric_0289bc11-db65-4a58-91ed-fda8637322ec.json +++ b/services/AnalysisServices/servers/templates/policy-arm/memorymetric_0289bc11-db65-4a58-91ed-fda8637322ec.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AnalysisServices servers memory_metric Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AnalysisServices servers memory_metric Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AnalysisServices servers memory_metric Alert", - "description": "Policy to Audit/Deploy AnalysisServices servers memory_metric Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AnalysisServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AnalysisServices/servers/templates/policy-arm/qpumetric_ea6a4d59-822f-4fb7-a29d-69e523e95bdb.json b/services/AnalysisServices/servers/templates/policy-arm/qpumetric_ea6a4d59-822f-4fb7-a29d-69e523e95bdb.json index 95dd1250c..25f22ec3f 100644 --- a/services/AnalysisServices/servers/templates/policy-arm/qpumetric_ea6a4d59-822f-4fb7-a29d-69e523e95bdb.json +++ b/services/AnalysisServices/servers/templates/policy-arm/qpumetric_ea6a4d59-822f-4fb7-a29d-69e523e95bdb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AnalysisServices servers qpu_metric Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AnalysisServices servers qpu_metric Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AnalysisServices servers qpu_metric Alert", - "description": "Policy to Audit/Deploy AnalysisServices servers qpu_metric Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AnalysisServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/BackendDuration_fd5d63e0-ab2f-4300-af65-05bf2e490d0e.json b/services/ApiManagement/service/templates/policy-arm/BackendDuration_fd5d63e0-ab2f-4300-af65-05bf2e490d0e.json index 6babeeac2..ea4cb2bad 100644 --- a/services/ApiManagement/service/templates/policy-arm/BackendDuration_fd5d63e0-ab2f-4300-af65-05bf2e490d0e.json +++ b/services/ApiManagement/service/templates/policy-arm/BackendDuration_fd5d63e0-ab2f-4300-af65-05bf2e490d0e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service BackendDuration Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service BackendDuration Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service BackendDuration Alert", - "description": "Policy to Audit/Deploy ApiManagement service BackendDuration Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/Capacity_6b1dd1ae-05de-43d2-bdea-7981c49127fc.json b/services/ApiManagement/service/templates/policy-arm/Capacity_6b1dd1ae-05de-43d2-bdea-7981c49127fc.json index 669b005dd..5e1dcb6b3 100644 --- a/services/ApiManagement/service/templates/policy-arm/Capacity_6b1dd1ae-05de-43d2-bdea-7981c49127fc.json +++ b/services/ApiManagement/service/templates/policy-arm/Capacity_6b1dd1ae-05de-43d2-bdea-7981c49127fc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service Capacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service Capacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service Capacity Alert", - "description": "Policy to Audit/Deploy ApiManagement service Capacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/Duration_52cd4aba-4ad0-402a-880d-ba625ebcf37f.json b/services/ApiManagement/service/templates/policy-arm/Duration_52cd4aba-4ad0-402a-880d-ba625ebcf37f.json index a4ce2bde7..c04b12d5a 100644 --- a/services/ApiManagement/service/templates/policy-arm/Duration_52cd4aba-4ad0-402a-880d-ba625ebcf37f.json +++ b/services/ApiManagement/service/templates/policy-arm/Duration_52cd4aba-4ad0-402a-880d-ba625ebcf37f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service Duration Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service Duration Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service Duration Alert", - "description": "Policy to Audit/Deploy ApiManagement service Duration Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/FailedRequests_1f8626fe-812a-48a7-b237-2f9181a5ea12.json b/services/ApiManagement/service/templates/policy-arm/FailedRequests_1f8626fe-812a-48a7-b237-2f9181a5ea12.json index 90639d5a2..61deec515 100644 --- a/services/ApiManagement/service/templates/policy-arm/FailedRequests_1f8626fe-812a-48a7-b237-2f9181a5ea12.json +++ b/services/ApiManagement/service/templates/policy-arm/FailedRequests_1f8626fe-812a-48a7-b237-2f9181a5ea12.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service FailedRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service FailedRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service FailedRequests Alert", - "description": "Policy to Audit/Deploy ApiManagement service FailedRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/Requests_2e16fd84-d92f-44ee-8191-ff47e90a9526.json b/services/ApiManagement/service/templates/policy-arm/Requests_2e16fd84-d92f-44ee-8191-ff47e90a9526.json index 104f8f468..597ad70bb 100644 --- a/services/ApiManagement/service/templates/policy-arm/Requests_2e16fd84-d92f-44ee-8191-ff47e90a9526.json +++ b/services/ApiManagement/service/templates/policy-arm/Requests_2e16fd84-d92f-44ee-8191-ff47e90a9526.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service Requests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service Requests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service Requests Alert", - "description": "Policy to Audit/Deploy ApiManagement service Requests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/TotalRequests_a9480e7f-1cd0-4c46-b5c4-e7f35fe963a5.json b/services/ApiManagement/service/templates/policy-arm/TotalRequests_a9480e7f-1cd0-4c46-b5c4-e7f35fe963a5.json index 3c0960878..36737134c 100644 --- a/services/ApiManagement/service/templates/policy-arm/TotalRequests_a9480e7f-1cd0-4c46-b5c4-e7f35fe963a5.json +++ b/services/ApiManagement/service/templates/policy-arm/TotalRequests_a9480e7f-1cd0-4c46-b5c4-e7f35fe963a5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service TotalRequests Alert", - "description": "Policy to Audit/Deploy ApiManagement service TotalRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ApiManagement/service/templates/policy-arm/UnauthorizedRequests_c0c3e784-f488-43a6-a423-18dbb444d443.json b/services/ApiManagement/service/templates/policy-arm/UnauthorizedRequests_c0c3e784-f488-43a6-a423-18dbb444d443.json index ad5f9f83b..398f9f8ec 100644 --- a/services/ApiManagement/service/templates/policy-arm/UnauthorizedRequests_c0c3e784-f488-43a6-a423-18dbb444d443.json +++ b/services/ApiManagement/service/templates/policy-arm/UnauthorizedRequests_c0c3e784-f488-43a6-a423-18dbb444d443.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ApiManagement service UnauthorizedRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ApiManagement service UnauthorizedRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ApiManagement service UnauthorizedRequests Alert", - "description": "Policy to Audit/Deploy ApiManagement service UnauthorizedRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ApiManagement", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/App/containerApps/templates/policy-arm/Replicas_94ae53cd-6e3b-47f5-9709-9c2e10eae6d7.json b/services/App/containerApps/templates/policy-arm/Replicas_94ae53cd-6e3b-47f5-9709-9c2e10eae6d7.json index 8d530e3b5..dab450f2f 100644 --- a/services/App/containerApps/templates/policy-arm/Replicas_94ae53cd-6e3b-47f5-9709-9c2e10eae6d7.json +++ b/services/App/containerApps/templates/policy-arm/Replicas_94ae53cd-6e3b-47f5-9709-9c2e10eae6d7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy App containerApps Replicas Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy App containerApps Replicas Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy App containerApps Replicas Alert", - "description": "Policy to Audit/Deploy App containerApps Replicas Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "App", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/App/containerApps/templates/policy-arm/RestartCount_b12cad96-7ef2-4223-97f4-53b3dc64ecfa.json b/services/App/containerApps/templates/policy-arm/RestartCount_b12cad96-7ef2-4223-97f4-53b3dc64ecfa.json index 346629dfb..2bb5befd9 100644 --- a/services/App/containerApps/templates/policy-arm/RestartCount_b12cad96-7ef2-4223-97f4-53b3dc64ecfa.json +++ b/services/App/containerApps/templates/policy-arm/RestartCount_b12cad96-7ef2-4223-97f4-53b3dc64ecfa.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy App containerApps RestartCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy App containerApps RestartCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy App containerApps RestartCount Alert", - "description": "Policy to Audit/Deploy App containerApps RestartCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "App", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/App/containerApps/templates/policy-arm/UsageNanoCores_a9e1306a-a541-423f-a69e-bd37f8f5013a.json b/services/App/containerApps/templates/policy-arm/UsageNanoCores_a9e1306a-a541-423f-a69e-bd37f8f5013a.json index 0bee4c3c2..f274f05b5 100644 --- a/services/App/containerApps/templates/policy-arm/UsageNanoCores_a9e1306a-a541-423f-a69e-bd37f8f5013a.json +++ b/services/App/containerApps/templates/policy-arm/UsageNanoCores_a9e1306a-a541-423f-a69e-bd37f8f5013a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy App containerApps UsageNanoCores Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy App containerApps UsageNanoCores Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy App containerApps UsageNanoCores Alert", - "description": "Policy to Audit/Deploy App containerApps UsageNanoCores Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "App", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/App/containerApps/templates/policy-arm/WorkingSetBytes_423b4280-1f68-49d8-b11a-6a816b0d9172.json b/services/App/containerApps/templates/policy-arm/WorkingSetBytes_423b4280-1f68-49d8-b11a-6a816b0d9172.json index 6038e8550..057361f58 100644 --- a/services/App/containerApps/templates/policy-arm/WorkingSetBytes_423b4280-1f68-49d8-b11a-6a816b0d9172.json +++ b/services/App/containerApps/templates/policy-arm/WorkingSetBytes_423b4280-1f68-49d8-b11a-6a816b0d9172.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy App containerApps WorkingSetBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy App containerApps WorkingSetBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy App containerApps WorkingSetBytes Alert", - "description": "Policy to Audit/Deploy App containerApps WorkingSetBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "App", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/AppConfiguration/configurationStores/templates/policy-arm/ThrottledHttpRequestCount_0be9dd7c-ae7f-41f7-b3a6-844e64059b73.json b/services/AppConfiguration/configurationStores/templates/policy-arm/ThrottledHttpRequestCount_0be9dd7c-ae7f-41f7-b3a6-844e64059b73.json index f84cbe87a..d191238da 100644 --- a/services/AppConfiguration/configurationStores/templates/policy-arm/ThrottledHttpRequestCount_0be9dd7c-ae7f-41f7-b3a6-844e64059b73.json +++ b/services/AppConfiguration/configurationStores/templates/policy-arm/ThrottledHttpRequestCount_0be9dd7c-ae7f-41f7-b3a6-844e64059b73.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AppConfiguration configurationStores ThrottledHttpRequestCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AppConfiguration configurationStores ThrottledHttpRequestCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AppConfiguration configurationStores ThrottledHttpRequestCount Alert", - "description": "Policy to Audit/Deploy AppConfiguration configurationStores ThrottledHttpRequestCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "AppConfiguration", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Automation/automationAccounts/templates/policy-arm/TotalJob_74e0e3b4-62aa-4503-b05d-c5c79a029ed6.json b/services/Automation/automationAccounts/templates/policy-arm/TotalJob_74e0e3b4-62aa-4503-b05d-c5c79a029ed6.json index dfc9fa7a4..284c1c6be 100644 --- a/services/Automation/automationAccounts/templates/policy-arm/TotalJob_74e0e3b4-62aa-4503-b05d-c5c79a029ed6.json +++ b/services/Automation/automationAccounts/templates/policy-arm/TotalJob_74e0e3b4-62aa-4503-b05d-c5c79a029ed6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Automation Account TotalJob Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Automation Account TotalJob Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Automation Account TotalJob Alert", - "description": "Policy to Audit/Deploy Automation Account TotalJob Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Automation", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentMachineRuns_49e7f58f-4910-4d2f-8589-573e8a65c6dd.json b/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentMachineRuns_49e7f58f-4910-4d2f-8589-573e8a65c6dd.json index 8208be376..001cbe0d1 100644 --- a/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentMachineRuns_49e7f58f-4910-4d2f-8589-573e8a65c6dd.json +++ b/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentMachineRuns_49e7f58f-4910-4d2f-8589-573e8a65c6dd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Automation automationAccounts TotalUpdateDeploymentMachineRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Automation automationAccounts TotalUpdateDeploymentMachineRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Automation automationAccounts TotalUpdateDeploymentMachineRuns Alert", - "description": "Policy to Audit/Deploy Automation automationAccounts TotalUpdateDeploymentMachineRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Automation", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentRuns_c521bf0d-efec-4d3a-8541-d8749915bfd4.json b/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentRuns_c521bf0d-efec-4d3a-8541-d8749915bfd4.json index 546de70b2..32d949207 100644 --- a/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentRuns_c521bf0d-efec-4d3a-8541-d8749915bfd4.json +++ b/services/Automation/automationAccounts/templates/policy-arm/TotalUpdateDeploymentRuns_c521bf0d-efec-4d3a-8541-d8749915bfd4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Automation automationAccounts TotalUpdateDeploymentRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Automation automationAccounts TotalUpdateDeploymentRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Automation automationAccounts TotalUpdateDeploymentRuns Alert", - "description": "Policy to Audit/Deploy Automation automationAccounts TotalUpdateDeploymentRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Automation", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Batch/batchAccounts/templates/policy-arm/OfflineNodeCount_b40fdb04-cada-4870-80f3-317afc57e5fb.json b/services/Batch/batchAccounts/templates/policy-arm/OfflineNodeCount_b40fdb04-cada-4870-80f3-317afc57e5fb.json index 87831d764..5aa12b7e7 100644 --- a/services/Batch/batchAccounts/templates/policy-arm/OfflineNodeCount_b40fdb04-cada-4870-80f3-317afc57e5fb.json +++ b/services/Batch/batchAccounts/templates/policy-arm/OfflineNodeCount_b40fdb04-cada-4870-80f3-317afc57e5fb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Batch batchAccounts OfflineNodeCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Batch batchAccounts OfflineNodeCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Batch batchAccounts OfflineNodeCount Alert", - "description": "Policy to Audit/Deploy Batch batchAccounts OfflineNodeCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Batch", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Batch/batchAccounts/templates/policy-arm/PreemptedNodeCount_8ce7d791-41a5-4d6a-9516-b009eabbd8f7.json b/services/Batch/batchAccounts/templates/policy-arm/PreemptedNodeCount_8ce7d791-41a5-4d6a-9516-b009eabbd8f7.json index b7ff75587..b9af0398c 100644 --- a/services/Batch/batchAccounts/templates/policy-arm/PreemptedNodeCount_8ce7d791-41a5-4d6a-9516-b009eabbd8f7.json +++ b/services/Batch/batchAccounts/templates/policy-arm/PreemptedNodeCount_8ce7d791-41a5-4d6a-9516-b009eabbd8f7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Batch batchAccounts PreemptedNodeCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Batch batchAccounts PreemptedNodeCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Batch batchAccounts PreemptedNodeCount Alert", - "description": "Policy to Audit/Deploy Batch batchAccounts PreemptedNodeCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Batch", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Batch/batchAccounts/templates/policy-arm/RebootingNodeCount_f49539ff-35b1-4d83-8541-e3cf49b383e5.json b/services/Batch/batchAccounts/templates/policy-arm/RebootingNodeCount_f49539ff-35b1-4d83-8541-e3cf49b383e5.json index 749c45a7e..edf9a0631 100644 --- a/services/Batch/batchAccounts/templates/policy-arm/RebootingNodeCount_f49539ff-35b1-4d83-8541-e3cf49b383e5.json +++ b/services/Batch/batchAccounts/templates/policy-arm/RebootingNodeCount_f49539ff-35b1-4d83-8541-e3cf49b383e5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Batch batchAccounts RebootingNodeCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Batch batchAccounts RebootingNodeCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Batch batchAccounts RebootingNodeCount Alert", - "description": "Policy to Audit/Deploy Batch batchAccounts RebootingNodeCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Batch", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Batch/batchAccounts/templates/policy-arm/TaskFailEvent_70b8ce6d-0d28-4997-84df-957791877eec.json b/services/Batch/batchAccounts/templates/policy-arm/TaskFailEvent_70b8ce6d-0d28-4997-84df-957791877eec.json index c2c84ffd1..6b0e7c501 100644 --- a/services/Batch/batchAccounts/templates/policy-arm/TaskFailEvent_70b8ce6d-0d28-4997-84df-957791877eec.json +++ b/services/Batch/batchAccounts/templates/policy-arm/TaskFailEvent_70b8ce6d-0d28-4997-84df-957791877eec.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Batch batchAccounts TaskFailEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Batch batchAccounts TaskFailEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Batch batchAccounts TaskFailEvent Alert", - "description": "Policy to Audit/Deploy Batch batchAccounts TaskFailEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Batch", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Batch/batchAccounts/templates/policy-arm/UnusableNodeCount_6c9857e4-7d6b-4384-80da-b88a2e6858ac.json b/services/Batch/batchAccounts/templates/policy-arm/UnusableNodeCount_6c9857e4-7d6b-4384-80da-b88a2e6858ac.json index f7c5b5fde..783c6b56f 100644 --- a/services/Batch/batchAccounts/templates/policy-arm/UnusableNodeCount_6c9857e4-7d6b-4384-80da-b88a2e6858ac.json +++ b/services/Batch/batchAccounts/templates/policy-arm/UnusableNodeCount_6c9857e4-7d6b-4384-80da-b88a2e6858ac.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Batch batchAccounts UnusableNodeCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Batch batchAccounts UnusableNodeCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Batch batchAccounts UnusableNodeCount Alert", - "description": "Policy to Audit/Deploy Batch batchAccounts UnusableNodeCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Batch", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/allconnectedclients_af750dfc-62e5-4b74-9514-ca419d800590.json b/services/Cache/Redis/templates/policy-arm/allconnectedclients_af750dfc-62e5-4b74-9514-ca419d800590.json index 6f2c7cc5a..0b572e717 100644 --- a/services/Cache/Redis/templates/policy-arm/allconnectedclients_af750dfc-62e5-4b74-9514-ca419d800590.json +++ b/services/Cache/Redis/templates/policy-arm/allconnectedclients_af750dfc-62e5-4b74-9514-ca419d800590.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis allconnectedclients Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis allconnectedclients Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis allconnectedclients Alert", - "description": "Policy to Audit/Deploy Cache Redis allconnectedclients Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/allpercentprocessortime_24c5276b-77b1-48ab-a8c1-15844b11e0aa.json b/services/Cache/Redis/templates/policy-arm/allpercentprocessortime_24c5276b-77b1-48ab-a8c1-15844b11e0aa.json index ae25fd9ea..2e13c16d4 100644 --- a/services/Cache/Redis/templates/policy-arm/allpercentprocessortime_24c5276b-77b1-48ab-a8c1-15844b11e0aa.json +++ b/services/Cache/Redis/templates/policy-arm/allpercentprocessortime_24c5276b-77b1-48ab-a8c1-15844b11e0aa.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis allpercentprocessortime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis allpercentprocessortime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis allpercentprocessortime Alert", - "description": "Policy to Audit/Deploy Cache Redis allpercentprocessortime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/allserverLoad_7072ba94-41d2-4584-89ab-a5824ed045f4.json b/services/Cache/Redis/templates/policy-arm/allserverLoad_7072ba94-41d2-4584-89ab-a5824ed045f4.json index 89b07f98a..f1b552a69 100644 --- a/services/Cache/Redis/templates/policy-arm/allserverLoad_7072ba94-41d2-4584-89ab-a5824ed045f4.json +++ b/services/Cache/Redis/templates/policy-arm/allserverLoad_7072ba94-41d2-4584-89ab-a5824ed045f4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis allserverLoad Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis allserverLoad Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis allserverLoad Alert", - "description": "Policy to Audit/Deploy Cache Redis allserverLoad Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/allusedmemorypercentage_b9ffe52a-f430-4605-a2b1-d815eb1bcc56.json b/services/Cache/Redis/templates/policy-arm/allusedmemorypercentage_b9ffe52a-f430-4605-a2b1-d815eb1bcc56.json index 0d2bd99f1..8a1131e46 100644 --- a/services/Cache/Redis/templates/policy-arm/allusedmemorypercentage_b9ffe52a-f430-4605-a2b1-d815eb1bcc56.json +++ b/services/Cache/Redis/templates/policy-arm/allusedmemorypercentage_b9ffe52a-f430-4605-a2b1-d815eb1bcc56.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis allusedmemorypercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis allusedmemorypercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis allusedmemorypercentage Alert", - "description": "Policy to Audit/Deploy Cache Redis allusedmemorypercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/cacheLatency_82cb3ad7-d44f-4131-9078-5aac82d3333a.json b/services/Cache/Redis/templates/policy-arm/cacheLatency_82cb3ad7-d44f-4131-9078-5aac82d3333a.json index 2d20b3b42..2a2aec132 100644 --- a/services/Cache/Redis/templates/policy-arm/cacheLatency_82cb3ad7-d44f-4131-9078-5aac82d3333a.json +++ b/services/Cache/Redis/templates/policy-arm/cacheLatency_82cb3ad7-d44f-4131-9078-5aac82d3333a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis cacheLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis cacheLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis cacheLatency Alert", - "description": "Policy to Audit/Deploy Cache Redis cacheLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/cacheRead_cc764431-e1b0-4455-94b1-b66d32cc54b4.json b/services/Cache/Redis/templates/policy-arm/cacheRead_cc764431-e1b0-4455-94b1-b66d32cc54b4.json index 681a814b9..2b16d3c38 100644 --- a/services/Cache/Redis/templates/policy-arm/cacheRead_cc764431-e1b0-4455-94b1-b66d32cc54b4.json +++ b/services/Cache/Redis/templates/policy-arm/cacheRead_cc764431-e1b0-4455-94b1-b66d32cc54b4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis cacheRead Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis cacheRead Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis cacheRead Alert", - "description": "Policy to Audit/Deploy Cache Redis cacheRead Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/connectedclients_f0c2ec92-15bc-47b1-8edb-d0c5d10aaddc.json b/services/Cache/Redis/templates/policy-arm/connectedclients_f0c2ec92-15bc-47b1-8edb-d0c5d10aaddc.json index 78720df07..307397e3f 100644 --- a/services/Cache/Redis/templates/policy-arm/connectedclients_f0c2ec92-15bc-47b1-8edb-d0c5d10aaddc.json +++ b/services/Cache/Redis/templates/policy-arm/connectedclients_f0c2ec92-15bc-47b1-8edb-d0c5d10aaddc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis connectedclients Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis connectedclients Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis connectedclients Alert", - "description": "Policy to Audit/Deploy Cache Redis connectedclients Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/errors_24b37318-9353-4424-9d8e-ac28450328b6.json b/services/Cache/Redis/templates/policy-arm/errors_24b37318-9353-4424-9d8e-ac28450328b6.json index 12e0032d7..e16624c00 100644 --- a/services/Cache/Redis/templates/policy-arm/errors_24b37318-9353-4424-9d8e-ac28450328b6.json +++ b/services/Cache/Redis/templates/policy-arm/errors_24b37318-9353-4424-9d8e-ac28450328b6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis errors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis errors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis errors Alert", - "description": "Policy to Audit/Deploy Cache Redis errors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/percentProcessorTime_8d5df17c-a5b7-4cf1-a01e-f9d8625297a6.json b/services/Cache/Redis/templates/policy-arm/percentProcessorTime_8d5df17c-a5b7-4cf1-a01e-f9d8625297a6.json index e56a72b7e..9c040cef3 100644 --- a/services/Cache/Redis/templates/policy-arm/percentProcessorTime_8d5df17c-a5b7-4cf1-a01e-f9d8625297a6.json +++ b/services/Cache/Redis/templates/policy-arm/percentProcessorTime_8d5df17c-a5b7-4cf1-a01e-f9d8625297a6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis percentProcessorTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis percentProcessorTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis percentProcessorTime Alert", - "description": "Policy to Audit/Deploy Cache Redis percentProcessorTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/serverLoad_837ecf42-3f25-41ae-b97d-34193f0669da.json b/services/Cache/Redis/templates/policy-arm/serverLoad_837ecf42-3f25-41ae-b97d-34193f0669da.json index 366fc75f4..37a5fafa6 100644 --- a/services/Cache/Redis/templates/policy-arm/serverLoad_837ecf42-3f25-41ae-b97d-34193f0669da.json +++ b/services/Cache/Redis/templates/policy-arm/serverLoad_837ecf42-3f25-41ae-b97d-34193f0669da.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis serverLoad Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis serverLoad Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis serverLoad Alert", - "description": "Policy to Audit/Deploy Cache Redis serverLoad Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/usedmemoryRss_1b68776d-4d11-4d27-96c5-4d51cf17e1fc.json b/services/Cache/Redis/templates/policy-arm/usedmemoryRss_1b68776d-4d11-4d27-96c5-4d51cf17e1fc.json index 62efc1428..6ff1634a1 100644 --- a/services/Cache/Redis/templates/policy-arm/usedmemoryRss_1b68776d-4d11-4d27-96c5-4d51cf17e1fc.json +++ b/services/Cache/Redis/templates/policy-arm/usedmemoryRss_1b68776d-4d11-4d27-96c5-4d51cf17e1fc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis usedmemoryRss Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis usedmemoryRss Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis usedmemoryRss Alert", - "description": "Policy to Audit/Deploy Cache Redis usedmemoryRss Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/usedmemory_aecc75bf-f961-4c22-86e9-84c5039a2938.json b/services/Cache/Redis/templates/policy-arm/usedmemory_aecc75bf-f961-4c22-86e9-84c5039a2938.json index 59da73950..f6aec13cc 100644 --- a/services/Cache/Redis/templates/policy-arm/usedmemory_aecc75bf-f961-4c22-86e9-84c5039a2938.json +++ b/services/Cache/Redis/templates/policy-arm/usedmemory_aecc75bf-f961-4c22-86e9-84c5039a2938.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis usedmemory Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis usedmemory Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis usedmemory Alert", - "description": "Policy to Audit/Deploy Cache Redis usedmemory Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cache/Redis/templates/policy-arm/usedmemorypercentage_d6c4011c-f4e6-4b12-b6e6-9486eab0fecc.json b/services/Cache/Redis/templates/policy-arm/usedmemorypercentage_d6c4011c-f4e6-4b12-b6e6-9486eab0fecc.json index 2ab2e1b9e..21a27c6f7 100644 --- a/services/Cache/Redis/templates/policy-arm/usedmemorypercentage_d6c4011c-f4e6-4b12-b6e6-9486eab0fecc.json +++ b/services/Cache/Redis/templates/policy-arm/usedmemorypercentage_d6c4011c-f4e6-4b12-b6e6-9486eab0fecc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cache Redis usedmemorypercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cache Redis usedmemorypercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cache Redis usedmemorypercentage Alert", - "description": "Policy to Audit/Deploy Cache Redis usedmemorypercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cdn/profiles/templates/policy-arm/ByteHitRatio_5e8aaa27-e5b3-4774-9807-af61ec96b001.json b/services/Cdn/profiles/templates/policy-arm/ByteHitRatio_5e8aaa27-e5b3-4774-9807-af61ec96b001.json index 118b6ea2d..ed59dfdd7 100644 --- a/services/Cdn/profiles/templates/policy-arm/ByteHitRatio_5e8aaa27-e5b3-4774-9807-af61ec96b001.json +++ b/services/Cdn/profiles/templates/policy-arm/ByteHitRatio_5e8aaa27-e5b3-4774-9807-af61ec96b001.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cdn profiles ByteHitRatio Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cdn profiles ByteHitRatio Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cdn profiles ByteHitRatio Alert", - "description": "Policy to Audit/Deploy Cdn profiles ByteHitRatio Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cdn", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cdn/profiles/templates/policy-arm/OriginHealthPercentage_c42138d4-bb4c-4171-8802-ba44d671d72f.json b/services/Cdn/profiles/templates/policy-arm/OriginHealthPercentage_c42138d4-bb4c-4171-8802-ba44d671d72f.json index 3430cbe21..2db1d1f01 100644 --- a/services/Cdn/profiles/templates/policy-arm/OriginHealthPercentage_c42138d4-bb4c-4171-8802-ba44d671d72f.json +++ b/services/Cdn/profiles/templates/policy-arm/OriginHealthPercentage_c42138d4-bb4c-4171-8802-ba44d671d72f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cdn profiles OriginHealthPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cdn profiles OriginHealthPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cdn profiles OriginHealthPercentage Alert", - "description": "Policy to Audit/Deploy Cdn profiles OriginHealthPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cdn", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cdn/profiles/templates/policy-arm/Percentage5XX_c47441d4-7061-4acd-8ad8-69e52d00557c.json b/services/Cdn/profiles/templates/policy-arm/Percentage5XX_c47441d4-7061-4acd-8ad8-69e52d00557c.json index e3dff4f9d..8728f5e4c 100644 --- a/services/Cdn/profiles/templates/policy-arm/Percentage5XX_c47441d4-7061-4acd-8ad8-69e52d00557c.json +++ b/services/Cdn/profiles/templates/policy-arm/Percentage5XX_c47441d4-7061-4acd-8ad8-69e52d00557c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cdn profiles Percentage5XX Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cdn profiles Percentage5XX Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cdn profiles Percentage5XX Alert", - "description": "Policy to Audit/Deploy Cdn profiles Percentage5XX Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cdn", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cdn/profiles/templates/policy-arm/RequestCount_cf6babc2-f623-4f12-a352-c30a02bcb6c6.json b/services/Cdn/profiles/templates/policy-arm/RequestCount_cf6babc2-f623-4f12-a352-c30a02bcb6c6.json index 836b9ce6c..6eead8f9e 100644 --- a/services/Cdn/profiles/templates/policy-arm/RequestCount_cf6babc2-f623-4f12-a352-c30a02bcb6c6.json +++ b/services/Cdn/profiles/templates/policy-arm/RequestCount_cf6babc2-f623-4f12-a352-c30a02bcb6c6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cdn profiles RequestCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cdn profiles RequestCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cdn profiles RequestCount Alert", - "description": "Policy to Audit/Deploy Cdn profiles RequestCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cdn", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Cdn/profiles/templates/policy-arm/TotalLatency_5fb9c4bf-3799-44e0-bd75-656d1cfa26d2.json b/services/Cdn/profiles/templates/policy-arm/TotalLatency_5fb9c4bf-3799-44e0-bd75-656d1cfa26d2.json index 8ecf71da9..18a0b06b8 100644 --- a/services/Cdn/profiles/templates/policy-arm/TotalLatency_5fb9c4bf-3799-44e0-bd75-656d1cfa26d2.json +++ b/services/Cdn/profiles/templates/policy-arm/TotalLatency_5fb9c4bf-3799-44e0-bd75-656d1cfa26d2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Cdn profiles TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Cdn profiles TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Cdn profiles TotalLatency Alert", - "description": "Policy to Audit/Deploy Cdn profiles TotalLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Cdn", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesIdOccurrences_397fef65-9192-4310-b9da-57cc1513c809.json b/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesIdOccurrences_397fef65-9192-4310-b9da-57cc1513c809.json index 0896b493c..8e5bfbd06 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesIdOccurrences_397fef65-9192-4310-b9da-57cc1513c809.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesIdOccurrences_397fef65-9192-4310-b9da-57cc1513c809.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActionFeaturesIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActionFeaturesIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActionFeaturesIdOccurrences Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActionFeaturesIdOccurrences Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesPerEvent_780c451d-bf30-4e36-b544-ea994ca32f43.json b/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesPerEvent_780c451d-bf30-4e36-b544-ea994ca32f43.json index 3b8a970ec..035aa833c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesPerEvent_780c451d-bf30-4e36-b544-ea994ca32f43.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActionFeaturesPerEvent_780c451d-bf30-4e36-b544-ea994ca32f43.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActionFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActionFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActionFeaturesPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActionFeaturesPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActionIfOccurrence_69338f82-3e4a-4ff2-bb00-6aec7e84e3f4.json b/services/CognitiveServices/accounts/templates/policy-arm/ActionIfOccurrence_69338f82-3e4a-4ff2-bb00-6aec7e84e3f4.json index e9887f610..b0273da2d 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActionIfOccurrence_69338f82-3e4a-4ff2-bb00-6aec7e84e3f4.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActionIfOccurrence_69338f82-3e4a-4ff2-bb00-6aec7e84e3f4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActionIfOccurrence Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActionIfOccurrence Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActionIfOccurrence Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActionIfOccurrence Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActionNamespacePerEvent_0db7da9c-960d-4122-9976-adc029da7b12.json b/services/CognitiveServices/accounts/templates/policy-arm/ActionNamespacePerEvent_0db7da9c-960d-4122-9976-adc029da7b12.json index 4362208c2..350ee6618 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActionNamespacePerEvent_0db7da9c-960d-4122-9976-adc029da7b12.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActionNamespacePerEvent_0db7da9c-960d-4122-9976-adc029da7b12.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActionNamespacePerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActionNamespacePerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActionNamespacePerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActionNamespacePerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActionPerEvent_1221f6e7-8f44-4d91-b0ed-d72920d4d496.json b/services/CognitiveServices/accounts/templates/policy-arm/ActionPerEvent_1221f6e7-8f44-4d91-b0ed-d72920d4d496.json index e653898bf..b8565666a 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActionPerEvent_1221f6e7-8f44-4d91-b0ed-d72920d4d496.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActionPerEvent_1221f6e7-8f44-4d91-b0ed-d72920d4d496.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActionPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActionPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActionPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActionPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ActiveTokens_ab9d016d-b31b-4144-9b76-f5b1c625fa9b.json b/services/CognitiveServices/accounts/templates/policy-arm/ActiveTokens_ab9d016d-b31b-4144-9b76-f5b1c625fa9b.json index 4a7ec09e4..b2a2c28f6 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ActiveTokens_ab9d016d-b31b-4144-9b76-f5b1c625fa9b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ActiveTokens_ab9d016d-b31b-4144-9b76-f5b1c625fa9b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ActiveTokens Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ActiveTokens Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ActiveTokens Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ActiveTokens Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranscribed_43d8c4af-9534-4bda-8840-1513181fabb2.json b/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranscribed_43d8c4af-9534-4bda-8840-1513181fabb2.json index ebb494004..3ea714a49 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranscribed_43d8c4af-9534-4bda-8840-1513181fabb2.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranscribed_43d8c4af-9534-4bda-8840-1513181fabb2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AudioSecondsTranscribed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AudioSecondsTranscribed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AudioSecondsTranscribed Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AudioSecondsTranscribed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranslated_d0bc3cdd-eade-4dfd-9b44-3ce8219a5e13.json b/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranslated_d0bc3cdd-eade-4dfd-9b44-3ce8219a5e13.json index 7062ceb8e..d0da57187 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranslated_d0bc3cdd-eade-4dfd-9b44-3ce8219a5e13.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AudioSecondsTranslated_d0bc3cdd-eade-4dfd-9b44-3ce8219a5e13.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AudioSecondsTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AudioSecondsTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AudioSecondsTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AudioSecondsTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AvatarModelHostingSeconds_0fc4ed4a-068b-4144-b2b3-d34114577175.json b/services/CognitiveServices/accounts/templates/policy-arm/AvatarModelHostingSeconds_0fc4ed4a-068b-4144-b2b3-d34114577175.json index d280336dd..2ab1912ff 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AvatarModelHostingSeconds_0fc4ed4a-068b-4144-b2b3-d34114577175.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AvatarModelHostingSeconds_0fc4ed4a-068b-4144-b2b3-d34114577175.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AvatarModelHostingSeconds Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AvatarModelHostingSeconds Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AvatarModelHostingSeconds Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AvatarModelHostingSeconds Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIContextTokensCacheMatchRate_81f8369c-65bf-4194-bfd2-ffdfa2470577.json b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIContextTokensCacheMatchRate_81f8369c-65bf-4194-bfd2-ffdfa2470577.json index 17e8442cc..7f7f3a270 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIContextTokensCacheMatchRate_81f8369c-65bf-4194-bfd2-ffdfa2470577.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIContextTokensCacheMatchRate_81f8369c-65bf-4194-bfd2-ffdfa2470577.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AzureOpenAIContextTokensCacheMatchRate Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIContextTokensCacheMatchRate Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AzureOpenAIContextTokensCacheMatchRate Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIContextTokensCacheMatchRate Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilizationV2_693a3b37-1e2a-42d1-aaed-b1f374276d1c.json b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilizationV2_693a3b37-1e2a-42d1-aaed-b1f374276d1c.json index b740eb560..dd1607d87 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilizationV2_693a3b37-1e2a-42d1-aaed-b1f374276d1c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilizationV2_693a3b37-1e2a-42d1-aaed-b1f374276d1c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilizationV2 Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilizationV2 Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilizationV2 Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilizationV2 Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilization_5ca4e110-09b4-4fe5-bb8f-4fa3f35f8fca.json b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilization_5ca4e110-09b4-4fe5-bb8f-4fa3f35f8fca.json index 354e3a9e2..b81adea58 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilization_5ca4e110-09b4-4fe5-bb8f-4fa3f35f8fca.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIProvisionedManagedUtilization_5ca4e110-09b4-4fe5-bb8f-4fa3f35f8fca.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilization Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIProvisionedManagedUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIRequests_a1528d17-f288-46b1-b084-8b8fe3af90fa.json b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIRequests_a1528d17-f288-46b1-b084-8b8fe3af90fa.json index 1b9e93651..62359aa18 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIRequests_a1528d17-f288-46b1-b084-8b8fe3af90fa.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAIRequests_a1528d17-f288-46b1-b084-8b8fe3af90fa.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AzureOpenAIRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AzureOpenAIRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAIRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAITimeToResponse_995cc12a-1887-4669-92c5-70a6ca8bfe70.json b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAITimeToResponse_995cc12a-1887-4669-92c5-70a6ca8bfe70.json index 0ad46a08d..8d1d931bb 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAITimeToResponse_995cc12a-1887-4669-92c5-70a6ca8bfe70.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/AzureOpenAITimeToResponse_995cc12a-1887-4669-92c5-70a6ca8bfe70.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts AzureOpenAITimeToResponse Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAITimeToResponse Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts AzureOpenAITimeToResponse Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts AzureOpenAITimeToResponse Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorOverallReward_a27171ed-8c6c-4995-b3e4-ff1f1dd0cc90.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorOverallReward_a27171ed-8c6c-4995-b3e4-ff1f1dd0cc90.json index bc40d78fb..1bc71ca86 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorOverallReward_a27171ed-8c6c-4995-b3e4-ff1f1dd0cc90.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorOverallReward_a27171ed-8c6c-4995-b3e4-ff1f1dd0cc90.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineEstimatorOverallReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineEstimatorOverallReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorSlotReward_cd9ba872-2f2d-4cf8-8957-e7ffa6b7e5fc.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorSlotReward_cd9ba872-2f2d-4cf8-8957-e7ffa6b7e5fc.json index b0ae84569..ace18d8c7 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorSlotReward_cd9ba872-2f2d-4cf8-8957-e7ffa6b7e5fc.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineEstimatorSlotReward_cd9ba872-2f2d-4cf8-8957-e7ffa6b7e5fc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineEstimatorSlotReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineEstimatorSlotReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorOverallReward_8081760a-4b0c-4ae8-86a0-5b7cc418d2bb.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorOverallReward_8081760a-4b0c-4ae8-86a0-5b7cc418d2bb.json index 8636637c4..926622483 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorOverallReward_8081760a-4b0c-4ae8-86a0-5b7cc418d2bb.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorOverallReward_8081760a-4b0c-4ae8-86a0-5b7cc418d2bb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineRandomEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineRandomEstimatorOverallReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEstimatorOverallReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorSlotReward_7fd0ac93-49e5-4ecd-96dd-5a1b91c27ce1.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorSlotReward_7fd0ac93-49e5-4ecd-96dd-5a1b91c27ce1.json index ca87c175a..2e65497be 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorSlotReward_7fd0ac93-49e5-4ecd-96dd-5a1b91c27ce1.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEstimatorSlotReward_7fd0ac93-49e5-4ecd-96dd-5a1b91c27ce1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineRandomEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineRandomEstimatorSlotReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEstimatorSlotReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEventCount_b34ff46a-3335-485d-8955-3c12b89e0429.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEventCount_b34ff46a-3335-485d-8955-3c12b89e0429.json index 755ae44c0..0568c1a0e 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEventCount_b34ff46a-3335-485d-8955-3c12b89e0429.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomEventCount_b34ff46a-3335-485d-8955-3c12b89e0429.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineRandomEventCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEventCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineRandomEventCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomEventCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomReward_d4666cca-c55a-4c38-9c83-35184d82dbb0.json b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomReward_d4666cca-c55a-4c38-9c83-35184d82dbb0.json index 757124447..3d612cc90 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomReward_d4666cca-c55a-4c38-9c83-35184d82dbb0.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BaselineRandomReward_d4666cca-c55a-4c38-9c83-35184d82dbb0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BaselineRandomReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BaselineRandomReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BaselineRandomReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json b/services/CognitiveServices/accounts/templates/policy-arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json index 39bb123f7..1c8e5c66b 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts BlockedCalls Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts BlockedCalls Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts BlockedCalls Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts BlockedCalls Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/CarnegieInferenceCount_87cf02fd-d12a-4c8d-85b7-01f616866f8c.json b/services/CognitiveServices/accounts/templates/policy-arm/CarnegieInferenceCount_87cf02fd-d12a-4c8d-85b7-01f616866f8c.json index 3ffa0c7d9..fb28236c7 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/CarnegieInferenceCount_87cf02fd-d12a-4c8d-85b7-01f616866f8c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/CarnegieInferenceCount_87cf02fd-d12a-4c8d-85b7-01f616866f8c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts CarnegieInferenceCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts CarnegieInferenceCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts CarnegieInferenceCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts CarnegieInferenceCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json b/services/CognitiveServices/accounts/templates/policy-arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json index 0c0c95919..eaf5c2452 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ClientErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ClientErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ClientErrors Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ClientErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ComputerVisionTransactions_493511fe-f9a1-450d-a5c6-c4062fb0d2c9.json b/services/CognitiveServices/accounts/templates/policy-arm/ComputerVisionTransactions_493511fe-f9a1-450d-a5c6-c4062fb0d2c9.json index 1792ac846..3ae27126d 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ComputerVisionTransactions_493511fe-f9a1-450d-a5c6-c4062fb0d2c9.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ComputerVisionTransactions_493511fe-f9a1-450d-a5c6-c4062fb0d2c9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ComputerVisionTransactions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ComputerVisionTransactions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ComputerVisionTransactions Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ComputerVisionTransactions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyImageAnalyzeRequestCount_404c9224-ecfd-4f11-b6de-9439f5c4ff9b.json b/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyImageAnalyzeRequestCount_404c9224-ecfd-4f11-b6de-9439f5c4ff9b.json index 1212b2afe..97791a551 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyImageAnalyzeRequestCount_404c9224-ecfd-4f11-b6de-9439f5c4ff9b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyImageAnalyzeRequestCount_404c9224-ecfd-4f11-b6de-9439f5c4ff9b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ContentSafetyImageAnalyzeRequestCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ContentSafetyImageAnalyzeRequestCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ContentSafetyImageAnalyzeRequestCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ContentSafetyImageAnalyzeRequestCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyTextAnalyzeRequestCount_4be881a1-a702-481c-a1ad-399b100cabdb.json b/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyTextAnalyzeRequestCount_4be881a1-a702-481c-a1ad-399b100cabdb.json index d3d74bbaf..33ecbbeb2 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyTextAnalyzeRequestCount_4be881a1-a702-481c-a1ad-399b100cabdb.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ContentSafetyTextAnalyzeRequestCount_4be881a1-a702-481c-a1ad-399b100cabdb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ContentSafetyTextAnalyzeRequestCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ContentSafetyTextAnalyzeRequestCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ContentSafetyTextAnalyzeRequestCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ContentSafetyTextAnalyzeRequestCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ContextFeatureIdOccurrences_a86c358c-5603-4e66-b5f7-87c19ddd5e9f.json b/services/CognitiveServices/accounts/templates/policy-arm/ContextFeatureIdOccurrences_a86c358c-5603-4e66-b5f7-87c19ddd5e9f.json index 63a271bdc..cb2a85898 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ContextFeatureIdOccurrences_a86c358c-5603-4e66-b5f7-87c19ddd5e9f.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ContextFeatureIdOccurrences_a86c358c-5603-4e66-b5f7-87c19ddd5e9f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ContextFeatureIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ContextFeatureIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ContextFeatureIdOccurrences Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ContextFeatureIdOccurrences Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ContextFeaturesPerEvent_0704975d-f5fb-4031-8d07-18a79f4788da.json b/services/CognitiveServices/accounts/templates/policy-arm/ContextFeaturesPerEvent_0704975d-f5fb-4031-8d07-18a79f4788da.json index 084b44e94..d0a4a112f 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ContextFeaturesPerEvent_0704975d-f5fb-4031-8d07-18a79f4788da.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ContextFeaturesPerEvent_0704975d-f5fb-4031-8d07-18a79f4788da.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ContextFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ContextFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ContextFeaturesPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ContextFeaturesPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ContextNamespacesPerEvent_60aa78cd-66d4-421b-92a4-e20f138518d9.json b/services/CognitiveServices/accounts/templates/policy-arm/ContextNamespacesPerEvent_60aa78cd-66d4-421b-92a4-e20f138518d9.json index 5a87b6833..c016822f5 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ContextNamespacesPerEvent_60aa78cd-66d4-421b-92a4-e20f138518d9.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ContextNamespacesPerEvent_60aa78cd-66d4-421b-92a4-e20f138518d9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ContextNamespacesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ContextNamespacesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ContextNamespacesPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ContextNamespacesPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTrainingTime_1de7e287-53d0-41e4-b37c-701470e82543.json b/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTrainingTime_1de7e287-53d0-41e4-b37c-701470e82543.json index 1be5622ba..6d7044f8e 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTrainingTime_1de7e287-53d0-41e4-b37c-701470e82543.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTrainingTime_1de7e287-53d0-41e4-b37c-701470e82543.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts CustomVisionTrainingTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts CustomVisionTrainingTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts CustomVisionTrainingTime Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts CustomVisionTrainingTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTransactions_e7d44227-8e9b-4698-a398-24e2afe25408.json b/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTransactions_e7d44227-8e9b-4698-a398-24e2afe25408.json index bb97d9b01..021d10adf 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTransactions_e7d44227-8e9b-4698-a398-24e2afe25408.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/CustomVisionTransactions_e7d44227-8e9b-4698-a398-24e2afe25408.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts CustomVisionTransactions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts CustomVisionTransactions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts CustomVisionTransactions Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts CustomVisionTransactions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/DataIn_0fd9d459-4d84-422c-ad72-ce8788a13f4d.json b/services/CognitiveServices/accounts/templates/policy-arm/DataIn_0fd9d459-4d84-422c-ad72-ce8788a13f4d.json index 81ead049f..9418e9705 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/DataIn_0fd9d459-4d84-422c-ad72-ce8788a13f4d.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/DataIn_0fd9d459-4d84-422c-ad72-ce8788a13f4d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts DataIn Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts DataIn Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts DataIn Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts DataIn Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/DataOut_0e4e5a62-95e2-4fc0-97e0-b6b6574fe1f5.json b/services/CognitiveServices/accounts/templates/policy-arm/DataOut_0e4e5a62-95e2-4fc0-97e0-b6b6574fe1f5.json index e00a42e15..e973796af 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/DataOut_0e4e5a62-95e2-4fc0-97e0-b6b6574fe1f5.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/DataOut_0e4e5a62-95e2-4fc0-97e0-b6b6574fe1f5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts DataOut Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts DataOut Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts DataOut Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts DataOut Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/DocumentCharactersTranslated_fe4eba6e-8488-4d69-8c5b-b247fe556012.json b/services/CognitiveServices/accounts/templates/policy-arm/DocumentCharactersTranslated_fe4eba6e-8488-4d69-8c5b-b247fe556012.json index 418ad2672..29e01102d 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/DocumentCharactersTranslated_fe4eba6e-8488-4d69-8c5b-b247fe556012.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/DocumentCharactersTranslated_fe4eba6e-8488-4d69-8c5b-b247fe556012.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts DocumentCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts DocumentCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts DocumentCharactersTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts DocumentCharactersTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/DocumentCustomCharactersTranslated_7fce7630-0db2-4279-9b81-cb06ad7d83ca.json b/services/CognitiveServices/accounts/templates/policy-arm/DocumentCustomCharactersTranslated_7fce7630-0db2-4279-9b81-cb06ad7d83ca.json index 965728ac0..ab8bc3b63 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/DocumentCustomCharactersTranslated_7fce7630-0db2-4279-9b81-cb06ad7d83ca.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/DocumentCustomCharactersTranslated_7fce7630-0db2-4279-9b81-cb06ad7d83ca.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts DocumentCustomCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts DocumentCustomCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts DocumentCustomCharactersTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts DocumentCustomCharactersTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FaceImagesTrained_fa6564b0-870b-4b21-b648-6a793d7a2797.json b/services/CognitiveServices/accounts/templates/policy-arm/FaceImagesTrained_fa6564b0-870b-4b21-b648-6a793d7a2797.json index 4532ca1aa..a5bb9918d 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FaceImagesTrained_fa6564b0-870b-4b21-b648-6a793d7a2797.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FaceImagesTrained_fa6564b0-870b-4b21-b648-6a793d7a2797.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FaceImagesTrained Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FaceImagesTrained Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FaceImagesTrained Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FaceImagesTrained Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FaceTransactions_c382a635-df8d-4d19-86de-daa28de4dce7.json b/services/CognitiveServices/accounts/templates/policy-arm/FaceTransactions_c382a635-df8d-4d19-86de-daa28de4dce7.json index bc4540ad4..9d168f2bc 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FaceTransactions_c382a635-df8d-4d19-86de-daa28de4dce7.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FaceTransactions_c382a635-df8d-4d19-86de-daa28de4dce7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FaceTransactions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FaceTransactions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FaceTransactions Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FaceTransactions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FacesStored_3846fe0-d373-4548-af44-a2d7a2ba3399.json b/services/CognitiveServices/accounts/templates/policy-arm/FacesStored_3846fe0-d373-4548-af44-a2d7a2ba3399.json index fc8b66261..9f1e5080c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FacesStored_3846fe0-d373-4548-af44-a2d7a2ba3399.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FacesStored_3846fe0-d373-4548-af44-a2d7a2ba3399.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FacesStored Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FacesStored Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FacesStored Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FacesStored Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityAction_3657d258-5623-4480-84ca-3ba6226d1378.json b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityAction_3657d258-5623-4480-84ca-3ba6226d1378.json index 37d21560c..e9bfd77c2 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityAction_3657d258-5623-4480-84ca-3ba6226d1378.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityAction_3657d258-5623-4480-84ca-3ba6226d1378.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FeatureCardinality_Action Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Action Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FeatureCardinality_Action Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Action Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityContext_d582a978-ce14-484a-b759-84903838979c.json b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityContext_d582a978-ce14-484a-b759-84903838979c.json index 90fdabad5..09e567539 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityContext_d582a978-ce14-484a-b759-84903838979c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalityContext_d582a978-ce14-484a-b759-84903838979c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FeatureCardinality_Context Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Context Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FeatureCardinality_Context Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Context Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalitySlot_bfe3b067-314b-46bf-925e-e81f66cf910f.json b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalitySlot_bfe3b067-314b-46bf-925e-e81f66cf910f.json index 1f4ebf5e3..a4c28d151 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalitySlot_bfe3b067-314b-46bf-925e-e81f66cf910f.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FeatureCardinalitySlot_bfe3b067-314b-46bf-925e-e81f66cf910f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FeatureCardinality_Slot Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Slot Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FeatureCardinality_Slot Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FeatureCardinality_Slot Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/FineTunedTrainingHours_52909b9b-190d-4d7b-9900-1789ce0b937b.json b/services/CognitiveServices/accounts/templates/policy-arm/FineTunedTrainingHours_52909b9b-190d-4d7b-9900-1789ce0b937b.json index 9b48c2000..319a45852 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/FineTunedTrainingHours_52909b9b-190d-4d7b-9900-1789ce0b937b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/FineTunedTrainingHours_52909b9b-190d-4d7b-9900-1789ce0b937b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts FineTunedTrainingHours Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts FineTunedTrainingHours Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts FineTunedTrainingHours Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts FineTunedTrainingHours Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/GeneratedTokens_7fbd5f2d-00f0-4ca1-8d5f-0233d0a3f910.json b/services/CognitiveServices/accounts/templates/policy-arm/GeneratedTokens_7fbd5f2d-00f0-4ca1-8d5f-0233d0a3f910.json index 33e9c50b8..597ede8e3 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/GeneratedTokens_7fbd5f2d-00f0-4ca1-8d5f-0233d0a3f910.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/GeneratedTokens_7fbd5f2d-00f0-4ca1-8d5f-0233d0a3f910.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts GeneratedTokens Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts GeneratedTokens Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts GeneratedTokens Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts GeneratedTokens Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ImagesStored_2b1b7563-e1ec-4f56-9caf-f2cb019bc04f.json b/services/CognitiveServices/accounts/templates/policy-arm/ImagesStored_2b1b7563-e1ec-4f56-9caf-f2cb019bc04f.json index 9dd745a5f..6bad86fc1 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ImagesStored_2b1b7563-e1ec-4f56-9caf-f2cb019bc04f.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ImagesStored_2b1b7563-e1ec-4f56-9caf-f2cb019bc04f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ImagesStored Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ImagesStored Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ImagesStored Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ImagesStored Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/LUISSpeechRequests_e4c3e04b-15c3-4883-8351-a87a4510e40e.json b/services/CognitiveServices/accounts/templates/policy-arm/LUISSpeechRequests_e4c3e04b-15c3-4883-8351-a87a4510e40e.json index 90a2f4282..d20930770 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/LUISSpeechRequests_e4c3e04b-15c3-4883-8351-a87a4510e40e.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/LUISSpeechRequests_e4c3e04b-15c3-4883-8351-a87a4510e40e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts LUISSpeechRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts LUISSpeechRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts LUISSpeechRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts LUISSpeechRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/LUISTextRequests_4c766f95-57b7-4a3b-bba3-8801265dbc01.json b/services/CognitiveServices/accounts/templates/policy-arm/LUISTextRequests_4c766f95-57b7-4a3b-bba3-8801265dbc01.json index bbd4847cb..902c533e8 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/LUISTextRequests_4c766f95-57b7-4a3b-bba3-8801265dbc01.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/LUISTextRequests_4c766f95-57b7-4a3b-bba3-8801265dbc01.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts LUISTextRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts LUISTextRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts LUISTextRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts LUISTextRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json b/services/CognitiveServices/accounts/templates/policy-arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json index ee396dd57..29fa59d0b 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts Latency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts Latency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts Latency Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts Latency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/LearnedEvents_66b4ade6-1ae4-430e-b545-5c1c188b780c.json b/services/CognitiveServices/accounts/templates/policy-arm/LearnedEvents_66b4ade6-1ae4-430e-b545-5c1c188b780c.json index eb61267bd..b35ec8ed8 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/LearnedEvents_66b4ade6-1ae4-430e-b545-5c1c188b780c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/LearnedEvents_66b4ade6-1ae4-430e-b545-5c1c188b780c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts LearnedEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts LearnedEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts LearnedEvents Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts LearnedEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/MatchedRewards_c41c172e-b804-42c4-b329-aa255c85f506.json b/services/CognitiveServices/accounts/templates/policy-arm/MatchedRewards_c41c172e-b804-42c4-b329-aa255c85f506.json index 7f64c7db3..527d4f58c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/MatchedRewards_c41c172e-b804-42c4-b329-aa255c85f506.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/MatchedRewards_c41c172e-b804-42c4-b329-aa255c85f506.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts MatchedRewards Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts MatchedRewards Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts MatchedRewards Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts MatchedRewards Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/NonActivatedEvents_b5283ee6-b4a5-4e5e-890d-12ebca7f54e7.json b/services/CognitiveServices/accounts/templates/policy-arm/NonActivatedEvents_b5283ee6-b4a5-4e5e-890d-12ebca7f54e7.json index d0ff0626b..face443e8 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/NonActivatedEvents_b5283ee6-b4a5-4e5e-890d-12ebca7f54e7.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/NonActivatedEvents_b5283ee6-b4a5-4e5e-890d-12ebca7f54e7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts NonActivatedEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts NonActivatedEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts NonActivatedEvents Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts NonActivatedEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/NumberOfSlots_a1d7f8c7-1182-4241-b3f6-e086309d7ac1.json b/services/CognitiveServices/accounts/templates/policy-arm/NumberOfSlots_a1d7f8c7-1182-4241-b3f6-e086309d7ac1.json index efa6c25bf..0fc8f2ae1 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/NumberOfSlots_a1d7f8c7-1182-4241-b3f6-e086309d7ac1.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/NumberOfSlots_a1d7f8c7-1182-4241-b3f6-e086309d7ac1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts NumberOfSlots Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts NumberOfSlots Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts NumberOfSlots Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts NumberOfSlots Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/NumberofSpeakerProfiles_f5425eb7-e311-4336-b5ab-7a9b2b0d5dea.json b/services/CognitiveServices/accounts/templates/policy-arm/NumberofSpeakerProfiles_f5425eb7-e311-4336-b5ab-7a9b2b0d5dea.json index 246a86289..b9ffb79bc 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/NumberofSpeakerProfiles_f5425eb7-e311-4336-b5ab-7a9b2b0d5dea.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/NumberofSpeakerProfiles_f5425eb7-e311-4336-b5ab-7a9b2b0d5dea.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts NumberofSpeakerProfiles Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts NumberofSpeakerProfiles Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts NumberofSpeakerProfiles Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts NumberofSpeakerProfiles Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ObservedRewards_6b7ae03b-e2c8-4115-a560-4144a455816b.json b/services/CognitiveServices/accounts/templates/policy-arm/ObservedRewards_6b7ae03b-e2c8-4115-a560-4144a455816b.json index 62f832f7a..2cb472245 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ObservedRewards_6b7ae03b-e2c8-4115-a560-4144a455816b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ObservedRewards_6b7ae03b-e2c8-4115-a560-4144a455816b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ObservedRewards Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ObservedRewards Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ObservedRewards Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ObservedRewards Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/OneDocumentCharactersTranslated_eee95c4b-db79-48e5-9a5c-ef921a22e3c0.json b/services/CognitiveServices/accounts/templates/policy-arm/OneDocumentCharactersTranslated_eee95c4b-db79-48e5-9a5c-ef921a22e3c0.json index 0cd29a92e..48dec0479 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/OneDocumentCharactersTranslated_eee95c4b-db79-48e5-9a5c-ef921a22e3c0.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/OneDocumentCharactersTranslated_eee95c4b-db79-48e5-9a5c-ef921a22e3c0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts OneDocumentCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts OneDocumentCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts OneDocumentCharactersTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts OneDocumentCharactersTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorOverallReward_73c87a60-8de8-414e-9cc5-81a3ca14d687.json b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorOverallReward_73c87a60-8de8-414e-9cc5-81a3ca14d687.json index a22860f4d..c04303bc7 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorOverallReward_73c87a60-8de8-414e-9cc5-81a3ca14d687.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorOverallReward_73c87a60-8de8-414e-9cc5-81a3ca14d687.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts OnlineEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts OnlineEstimatorOverallReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts OnlineEstimatorOverallReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts OnlineEstimatorOverallReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorSlotReward_c61d3a5c-4aa4-4c6a-8bc0-859061559b4c.json b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorSlotReward_c61d3a5c-4aa4-4c6a-8bc0-859061559b4c.json index 0b07f2ddd..5d162c5fa 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorSlotReward_c61d3a5c-4aa4-4c6a-8bc0-859061559b4c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEstimatorSlotReward_c61d3a5c-4aa4-4c6a-8bc0-859061559b4c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts OnlineEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts OnlineEstimatorSlotReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts OnlineEstimatorSlotReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts OnlineEstimatorSlotReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEventCount_e360aeac-66a6-4bf0-8e36-475608c6d02b.json b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEventCount_e360aeac-66a6-4bf0-8e36-475608c6d02b.json index 03638a88a..a3875a8b7 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/OnlineEventCount_e360aeac-66a6-4bf0-8e36-475608c6d02b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/OnlineEventCount_e360aeac-66a6-4bf0-8e36-475608c6d02b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts OnlineEventCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts OnlineEventCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts OnlineEventCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts OnlineEventCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/OnlineReward_86e00692-7e42-4a4c-86a3-21c70add7bd3.json b/services/CognitiveServices/accounts/templates/policy-arm/OnlineReward_86e00692-7e42-4a4c-86a3-21c70add7bd3.json index d0f23173a..b6fa6ea3a 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/OnlineReward_86e00692-7e42-4a4c-86a3-21c70add7bd3.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/OnlineReward_86e00692-7e42-4a4c-86a3-21c70add7bd3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts OnlineReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts OnlineReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts OnlineReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts OnlineReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedCharacters_4b474463-3243-4966-a4d0-8404760b9ca3.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedCharacters_4b474463-3243-4966-a4d0-8404760b9ca3.json index 810f7d1f5..277d44900 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedCharacters_4b474463-3243-4966-a4d0-8404760b9ca3.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedCharacters_4b474463-3243-4966-a4d0-8404760b9ca3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedCharacters Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedCharacters Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedCharacters Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedCharacters Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedHealthTextRecords_bf42c604-b4f7-4b6c-8a33-2f5e1912d306.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedHealthTextRecords_bf42c604-b4f7-4b6c-8a33-2f5e1912d306.json index ddcf82e44..bc25bf288 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedHealthTextRecords_bf42c604-b4f7-4b6c-8a33-2f5e1912d306.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedHealthTextRecords_bf42c604-b4f7-4b6c-8a33-2f5e1912d306.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedHealthTextRecords Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedHealthTextRecords Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedHealthTextRecords Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedHealthTextRecords Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedImages_fcd3e37c-82bb-48df-8860-f1b4f01d4cc3.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedImages_fcd3e37c-82bb-48df-8860-f1b4f01d4cc3.json index a5c22b2ef..66c0b9f43 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedImages_fcd3e37c-82bb-48df-8860-f1b4f01d4cc3.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedImages_fcd3e37c-82bb-48df-8860-f1b4f01d4cc3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedImages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedImages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedImages Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedImages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPages_bb4ebaf2-e5ec-47cc-b8a8-2428e924721c.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPages_bb4ebaf2-e5ec-47cc-b8a8-2428e924721c.json index bcd83fa29..02d589095 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPages_bb4ebaf2-e5ec-47cc-b8a8-2428e924721c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPages_bb4ebaf2-e5ec-47cc-b8a8-2428e924721c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedPages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedPages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedPages Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedPages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPromptTokens_30dc0126-1466-4c11-9096-a7fffc552bc8.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPromptTokens_30dc0126-1466-4c11-9096-a7fffc552bc8.json index a8883c036..f7d155472 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPromptTokens_30dc0126-1466-4c11-9096-a7fffc552bc8.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedPromptTokens_30dc0126-1466-4c11-9096-a7fffc552bc8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedPromptTokens Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedPromptTokens Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedPromptTokens Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedPromptTokens Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedTextRecords_5aeb1d15-f8f3-49d5-8894-b6af0d89d935.json b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedTextRecords_5aeb1d15-f8f3-49d5-8894-b6af0d89d935.json index 8a126cf0f..e0a028b47 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ProcessedTextRecords_5aeb1d15-f8f3-49d5-8894-b6af0d89d935.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ProcessedTextRecords_5aeb1d15-f8f3-49d5-8894-b6af0d89d935.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ProcessedTextRecords Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ProcessedTextRecords Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ProcessedTextRecords Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ProcessedTextRecords Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/QuestionAnsweringTextRecords_c8f71cfd-42cd-4063-92fc-d6560697250d.json b/services/CognitiveServices/accounts/templates/policy-arm/QuestionAnsweringTextRecords_c8f71cfd-42cd-4063-92fc-d6560697250d.json index 6721c9662..7ecb127b1 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/QuestionAnsweringTextRecords_c8f71cfd-42cd-4063-92fc-d6560697250d.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/QuestionAnsweringTextRecords_c8f71cfd-42cd-4063-92fc-d6560697250d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts QuestionAnsweringTextRecords Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts QuestionAnsweringTextRecords Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts QuestionAnsweringTextRecords Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts QuestionAnsweringTextRecords Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/RAIAbusiveUsersCount_f2926569-df78-4c68-90a7-3c5f96cfa1f3.json b/services/CognitiveServices/accounts/templates/policy-arm/RAIAbusiveUsersCount_f2926569-df78-4c68-90a7-3c5f96cfa1f3.json index 09842c349..e6380e25e 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/RAIAbusiveUsersCount_f2926569-df78-4c68-90a7-3c5f96cfa1f3.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/RAIAbusiveUsersCount_f2926569-df78-4c68-90a7-3c5f96cfa1f3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts RAIAbusiveUsersCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts RAIAbusiveUsersCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts RAIAbusiveUsersCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts RAIAbusiveUsersCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/RAIHarmfulRequests_e7341b29-84ea-4ca2-8140-e774b1cd1444.json b/services/CognitiveServices/accounts/templates/policy-arm/RAIHarmfulRequests_e7341b29-84ea-4ca2-8140-e774b1cd1444.json index bbe3aa8ad..463fa6875 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/RAIHarmfulRequests_e7341b29-84ea-4ca2-8140-e774b1cd1444.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/RAIHarmfulRequests_e7341b29-84ea-4ca2-8140-e774b1cd1444.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts RAIHarmfulRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts RAIHarmfulRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts RAIHarmfulRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts RAIHarmfulRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/RAIRejectedRequests_a97c7421-8268-4837-b433-762882c3887f.json b/services/CognitiveServices/accounts/templates/policy-arm/RAIRejectedRequests_a97c7421-8268-4837-b433-762882c3887f.json index f41ac1398..ab193a90c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/RAIRejectedRequests_a97c7421-8268-4837-b433-762882c3887f.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/RAIRejectedRequests_a97c7421-8268-4837-b433-762882c3887f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts RAIRejectedRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts RAIRejectedRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts RAIRejectedRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts RAIRejectedRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/RAISystemEvent_b0bf777b-90e9-4aed-b8e2-94ab9755d1ca.json b/services/CognitiveServices/accounts/templates/policy-arm/RAISystemEvent_b0bf777b-90e9-4aed-b8e2-94ab9755d1ca.json index c095105c2..69e1d3e5c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/RAISystemEvent_b0bf777b-90e9-4aed-b8e2-94ab9755d1ca.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/RAISystemEvent_b0bf777b-90e9-4aed-b8e2-94ab9755d1ca.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts RAISystemEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts RAISystemEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts RAISystemEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts RAISystemEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/RAITotalRequests_82c2b472-2084-4122-8bb5-51142ce19101.json b/services/CognitiveServices/accounts/templates/policy-arm/RAITotalRequests_82c2b472-2084-4122-8bb5-51142ce19101.json index 12ccba6ea..0b855da9d 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/RAITotalRequests_82c2b472-2084-4122-8bb5-51142ce19101.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/RAITotalRequests_82c2b472-2084-4122-8bb5-51142ce19101.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts RAITotalRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts RAITotalRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts RAITotalRequests Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts RAITotalRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/Ratelimit_b269a4f9-ba74-4061-abc1-655d656c1c5f.json b/services/CognitiveServices/accounts/templates/policy-arm/Ratelimit_b269a4f9-ba74-4061-abc1-655d656c1c5f.json index bcad387e4..02bf76b0c 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/Ratelimit_b269a4f9-ba74-4061-abc1-655d656c1c5f.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/Ratelimit_b269a4f9-ba74-4061-abc1-655d656c1c5f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts Ratelimit Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts Ratelimit Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts Ratelimit Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts Ratelimit Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/Reward_3984067c-1e9b-41ee-9464-1f6b2df45cea.json b/services/CognitiveServices/accounts/templates/policy-arm/Reward_3984067c-1e9b-41ee-9464-1f6b2df45cea.json index 236c5307c..6b86bf712 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/Reward_3984067c-1e9b-41ee-9464-1f6b2df45cea.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/Reward_3984067c-1e9b-41ee-9464-1f6b2df45cea.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts Reward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts Reward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts Reward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts Reward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json b/services/CognitiveServices/accounts/templates/policy-arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json index 964a20173..8d06ecfdb 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts ServerErrors Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts ServerErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SlotFeatureIdOccurrences_b05249b2-d6f2-4c2e-a14b-a25353053e6d.json b/services/CognitiveServices/accounts/templates/policy-arm/SlotFeatureIdOccurrences_b05249b2-d6f2-4c2e-a14b-a25353053e6d.json index d040f1ca3..e43c8bc94 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SlotFeatureIdOccurrences_b05249b2-d6f2-4c2e-a14b-a25353053e6d.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SlotFeatureIdOccurrences_b05249b2-d6f2-4c2e-a14b-a25353053e6d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SlotFeatureIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SlotFeatureIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SlotFeatureIdOccurrences Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SlotFeatureIdOccurrences Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SlotFeaturesPerEvent_6495d787-2701-45ea-8abd-f23b18ed6e66.json b/services/CognitiveServices/accounts/templates/policy-arm/SlotFeaturesPerEvent_6495d787-2701-45ea-8abd-f23b18ed6e66.json index 0e1e2626d..c32d529c7 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SlotFeaturesPerEvent_6495d787-2701-45ea-8abd-f23b18ed6e66.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SlotFeaturesPerEvent_6495d787-2701-45ea-8abd-f23b18ed6e66.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SlotFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SlotFeaturesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SlotFeaturesPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SlotFeaturesPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SlotIdOccurrences_12ffdc4a-2ac4-4b4b-bf04-c5b48d2f0904.json b/services/CognitiveServices/accounts/templates/policy-arm/SlotIdOccurrences_12ffdc4a-2ac4-4b4b-bf04-c5b48d2f0904.json index 85a437b7f..ff7d898f9 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SlotIdOccurrences_12ffdc4a-2ac4-4b4b-bf04-c5b48d2f0904.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SlotIdOccurrences_12ffdc4a-2ac4-4b4b-bf04-c5b48d2f0904.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SlotIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SlotIdOccurrences Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SlotIdOccurrences Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SlotIdOccurrences Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SlotNamespacesPerEvent_c87a2b96-2308-4d2c-9353-8d300f0e542c.json b/services/CognitiveServices/accounts/templates/policy-arm/SlotNamespacesPerEvent_c87a2b96-2308-4d2c-9353-8d300f0e542c.json index bf9d30026..ee5769338 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SlotNamespacesPerEvent_c87a2b96-2308-4d2c-9353-8d300f0e542c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SlotNamespacesPerEvent_c87a2b96-2308-4d2c-9353-8d300f0e542c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SlotNamespacesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SlotNamespacesPerEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SlotNamespacesPerEvent Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SlotNamespacesPerEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SlotRewards_13d1dc54-12a8-475d-8a87-d9060df9f348.json b/services/CognitiveServices/accounts/templates/policy-arm/SlotRewards_13d1dc54-12a8-475d-8a87-d9060df9f348.json index f94040700..a1f8ceef1 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SlotRewards_13d1dc54-12a8-475d-8a87-d9060df9f348.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SlotRewards_13d1dc54-12a8-475d-8a87-d9060df9f348.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SlotRewards Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SlotRewards Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SlotRewards Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SlotRewards Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SpeakerRecognitionTransactions_1f6e25bb-1412-46b8-b4cf-de1498a03927.json b/services/CognitiveServices/accounts/templates/policy-arm/SpeakerRecognitionTransactions_1f6e25bb-1412-46b8-b4cf-de1498a03927.json index 18215ca66..b650ee96b 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SpeakerRecognitionTransactions_1f6e25bb-1412-46b8-b4cf-de1498a03927.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SpeakerRecognitionTransactions_1f6e25bb-1412-46b8-b4cf-de1498a03927.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SpeakerRecognitionTransactions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SpeakerRecognitionTransactions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SpeakerRecognitionTransactions Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SpeakerRecognitionTransactions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_0433dc7d-e9c0-4d32-8295-ce24cd9e453b.json b/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_0433dc7d-e9c0-4d32-8295-ce24cd9e453b.json index 924c86e54..e235d2b2a 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_0433dc7d-e9c0-4d32-8295-ce24cd9e453b.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_0433dc7d-e9c0-4d32-8295-ce24cd9e453b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SpeechModelHostingHours Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_2aa2bd92-85bd-47b8-ac48-3c672fdbb486.json b/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_2aa2bd92-85bd-47b8-ac48-3c672fdbb486.json index ce792f7b4..9a4edb677 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_2aa2bd92-85bd-47b8-ac48-3c672fdbb486.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SpeechModelHostingHours_2aa2bd92-85bd-47b8-ac48-3c672fdbb486.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SpeechModelHostingHours Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SpeechModelHostingHours Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json b/services/CognitiveServices/accounts/templates/policy-arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json index 5bf2df99d..99d5ba9a8 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SuccessRate Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SuccessRate Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SuccessRate Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SuccessRate Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SuccessfulCalls_715804f2-6789-4b83-9c5f-bee2a805bbc2.json b/services/CognitiveServices/accounts/templates/policy-arm/SuccessfulCalls_715804f2-6789-4b83-9c5f-bee2a805bbc2.json index adb6478e7..1a25cee08 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SuccessfulCalls_715804f2-6789-4b83-9c5f-bee2a805bbc2.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SuccessfulCalls_715804f2-6789-4b83-9c5f-bee2a805bbc2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SuccessfulCalls Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SuccessfulCalls Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SuccessfulCalls Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SuccessfulCalls Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/SynthesizedCharacters_b0320e4c-7f6d-4990-b2b9-12f1fcb103cf.json b/services/CognitiveServices/accounts/templates/policy-arm/SynthesizedCharacters_b0320e4c-7f6d-4990-b2b9-12f1fcb103cf.json index 02e2b6d76..30ddb74e4 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/SynthesizedCharacters_b0320e4c-7f6d-4990-b2b9-12f1fcb103cf.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/SynthesizedCharacters_b0320e4c-7f6d-4990-b2b9-12f1fcb103cf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts SynthesizedCharacters Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts SynthesizedCharacters Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts SynthesizedCharacters Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts SynthesizedCharacters Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TextCharactersTranslated_2785f1ab-abcc-44da-8e08-d16c74e67002.json b/services/CognitiveServices/accounts/templates/policy-arm/TextCharactersTranslated_2785f1ab-abcc-44da-8e08-d16c74e67002.json index 066b89a92..12f93c3a9 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TextCharactersTranslated_2785f1ab-abcc-44da-8e08-d16c74e67002.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TextCharactersTranslated_2785f1ab-abcc-44da-8e08-d16c74e67002.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TextCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TextCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TextCharactersTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TextCharactersTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TextCustomCharactersTranslated_50959073-a6ad-4b63-b76e-4a22745e5852.json b/services/CognitiveServices/accounts/templates/policy-arm/TextCustomCharactersTranslated_50959073-a6ad-4b63-b76e-4a22745e5852.json index c2f330143..a3c3d5a33 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TextCustomCharactersTranslated_50959073-a6ad-4b63-b76e-4a22745e5852.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TextCustomCharactersTranslated_50959073-a6ad-4b63-b76e-4a22745e5852.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TextCustomCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TextCustomCharactersTranslated Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TextCustomCharactersTranslated Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TextCustomCharactersTranslated Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TextTrainedCharacters_528496f5-e701-4a9e-8b4c-c876be59c9dc.json b/services/CognitiveServices/accounts/templates/policy-arm/TextTrainedCharacters_528496f5-e701-4a9e-8b4c-c876be59c9dc.json index 3a9a09dbc..34ddfb35a 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TextTrainedCharacters_528496f5-e701-4a9e-8b4c-c876be59c9dc.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TextTrainedCharacters_528496f5-e701-4a9e-8b4c-c876be59c9dc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TextTrainedCharacters Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TextTrainedCharacters Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TextTrainedCharacters Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TextTrainedCharacters Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json b/services/CognitiveServices/accounts/templates/policy-arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json index 370b50655..049e6bc09 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TokenTransaction Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TokenTransaction Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TokenTransaction Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TokenTransaction Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json b/services/CognitiveServices/accounts/templates/policy-arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json index d472f885f..288ffe642 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TotalCalls Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TotalCalls Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TotalCalls Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TotalCalls Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json b/services/CognitiveServices/accounts/templates/policy-arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json index 2fc4323b9..2fae2f781 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TotalErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TotalErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TotalErrors Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TotalErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TotalEvents_2a65a81a-be78-499f-bca4-64976249a0cd.json b/services/CognitiveServices/accounts/templates/policy-arm/TotalEvents_2a65a81a-be78-499f-bca4-64976249a0cd.json index a4233bd76..5d32be4cc 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TotalEvents_2a65a81a-be78-499f-bca4-64976249a0cd.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TotalEvents_2a65a81a-be78-499f-bca4-64976249a0cd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TotalEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TotalEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TotalEvents Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TotalEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/TotalTokenCalls_369652ae-56b1-4620-be56-0024629b2cad.json b/services/CognitiveServices/accounts/templates/policy-arm/TotalTokenCalls_369652ae-56b1-4620-be56-0024629b2cad.json index 69fdc276a..c51dc119e 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/TotalTokenCalls_369652ae-56b1-4620-be56-0024629b2cad.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/TotalTokenCalls_369652ae-56b1-4620-be56-0024629b2cad.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts TotalTokenCalls Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts TotalTokenCalls Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts TotalTokenCalls Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts TotalTokenCalls Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineEventCount_61defc4a-43af-4667-b63a-02c28af099be.json b/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineEventCount_61defc4a-43af-4667-b63a-02c28af099be.json index a0f4ff733..8d9b22023 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineEventCount_61defc4a-43af-4667-b63a-02c28af099be.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineEventCount_61defc4a-43af-4667-b63a-02c28af099be.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts UserBaselineEventCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts UserBaselineEventCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts UserBaselineEventCount Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts UserBaselineEventCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineReward_9386f63a-026e-4c91-886e-c10478132bdd.json b/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineReward_9386f63a-026e-4c91-886e-c10478132bdd.json index c70627f11..afd7bd257 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineReward_9386f63a-026e-4c91-886e-c10478132bdd.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/UserBaselineReward_9386f63a-026e-4c91-886e-c10478132bdd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts UserBaselineReward Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts UserBaselineReward Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts UserBaselineReward Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts UserBaselineReward Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/VideoSecondsSynthesized_81268206-66e5-4b33-8205-93147fc5989c.json b/services/CognitiveServices/accounts/templates/policy-arm/VideoSecondsSynthesized_81268206-66e5-4b33-8205-93147fc5989c.json index 485649ef9..a5d53276a 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/VideoSecondsSynthesized_81268206-66e5-4b33-8205-93147fc5989c.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/VideoSecondsSynthesized_81268206-66e5-4b33-8205-93147fc5989c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts VideoSecondsSynthesized Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts VideoSecondsSynthesized Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts VideoSecondsSynthesized Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts VideoSecondsSynthesized Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelHostingHours_7d5cc479-cf69-44bc-a612-eac4b20fdc08.json b/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelHostingHours_7d5cc479-cf69-44bc-a612-eac4b20fdc08.json index 606432b2e..412a78d49 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelHostingHours_7d5cc479-cf69-44bc-a612-eac4b20fdc08.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelHostingHours_7d5cc479-cf69-44bc-a612-eac4b20fdc08.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts VoiceModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts VoiceModelHostingHours Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts VoiceModelHostingHours Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts VoiceModelHostingHours Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelTrainingMinutes_39eaa390-7c58-4b79-af20-e47138e7ed97.json b/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelTrainingMinutes_39eaa390-7c58-4b79-af20-e47138e7ed97.json index de5c9b5d5..8f96bfc85 100644 --- a/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelTrainingMinutes_39eaa390-7c58-4b79-af20-e47138e7ed97.json +++ b/services/CognitiveServices/accounts/templates/policy-arm/VoiceModelTrainingMinutes_39eaa390-7c58-4b79-af20-e47138e7ed97.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy CognitiveServices accounts VoiceModelTrainingMinutes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy CognitiveServices accounts VoiceModelTrainingMinutes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy CognitiveServices accounts VoiceModelTrainingMinutes Alert", - "description": "Policy to Audit/Deploy CognitiveServices accounts VoiceModelTrainingMinutes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "CognitiveServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/cloudServices/templates/policy-arm/PercentageCPU_e98657ed-8a0b-4992-9d20-a54e2d6065ef.json b/services/Compute/cloudServices/templates/policy-arm/PercentageCPU_e98657ed-8a0b-4992-9d20-a54e2d6065ef.json index 0e433f6b6..7dcd71963 100644 --- a/services/Compute/cloudServices/templates/policy-arm/PercentageCPU_e98657ed-8a0b-4992-9d20-a54e2d6065ef.json +++ b/services/Compute/cloudServices/templates/policy-arm/PercentageCPU_e98657ed-8a0b-4992-9d20-a54e2d6065ef.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute cloudServices Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute cloudServices Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute cloudServices Percentage CPU Alert", - "description": "Policy to Audit/Deploy Compute cloudServices Percentage CPU Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/AvailableMemoryBytes_d9089d09-ddec-4f6a-8dc1-e2544e5765cb.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/AvailableMemoryBytes_d9089d09-ddec-4f6a-8dc1-e2544e5765cb.json index 37caba585..05c06a056 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/AvailableMemoryBytes_d9089d09-ddec-4f6a-8dc1-e2544e5765cb.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/AvailableMemoryBytes_d9089d09-ddec-4f6a-8dc1-e2544e5765cb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Available Memory Bytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Available Memory Bytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Available Memory Bytes Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Available Memory Bytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DataDiskIOPSConsumedPercentage_a8c08a0f-fcd7-4b97-8a6e-06b34bac0b9f.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DataDiskIOPSConsumedPercentage_a8c08a0f-fcd7-4b97-8a6e-06b34bac0b9f.json index 7d8778949..b83f5e62c 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DataDiskIOPSConsumedPercentage_a8c08a0f-fcd7-4b97-8a6e-06b34bac0b9f.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DataDiskIOPSConsumedPercentage_a8c08a0f-fcd7-4b97-8a6e-06b34bac0b9f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Data Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Data Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Data Disk IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Data Disk IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskReadOperationsSec_ea8be16a-f5e9-4a8b-a1df-a8c5efff039b.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskReadOperationsSec_ea8be16a-f5e9-4a8b-a1df-a8c5efff039b.json index c1c1f7a2a..a423bd70e 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskReadOperationsSec_ea8be16a-f5e9-4a8b-a1df-a8c5efff039b.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskReadOperationsSec_ea8be16a-f5e9-4a8b-a1df-a8c5efff039b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Disk Read Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Disk Read Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskWriteOperationsSec_dce1cda8-1dab-4941-b607-1d5d449709d5.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskWriteOperationsSec_dce1cda8-1dab-4941-b607-1d5d449709d5.json index b9e014b1a..c660cd707 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskWriteOperationsSec_dce1cda8-1dab-4941-b607-1d5d449709d5.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/DiskWriteOperationsSec_dce1cda8-1dab-4941-b607-1d5d449709d5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Disk Write Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Disk Write Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/InboundFlows_86991e6e-efc9-4898-adf8-4e8e3a60c57e.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/InboundFlows_86991e6e-efc9-4898-adf8-4e8e3a60c57e.json index 96877f26d..7ff6d87fa 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/InboundFlows_86991e6e-efc9-4898-adf8-4e8e3a60c57e.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/InboundFlows_86991e6e-efc9-4898-adf8-4e8e3a60c57e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Inbound Flows Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Inbound Flows Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Inbound Flows Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Inbound Flows Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkInTotal_f0e94112-5509-47b6-8def-91fb5ca5d0cd.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkInTotal_f0e94112-5509-47b6-8def-91fb5ca5d0cd.json index edcbbebe7..240fe1208 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkInTotal_f0e94112-5509-47b6-8def-91fb5ca5d0cd.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkInTotal_f0e94112-5509-47b6-8def-91fb5ca5d0cd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Network In Total Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network In Total Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Network In Total Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network In Total Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkIn_87dfe717-217f-4447-b59a-7ea39160b83a.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkIn_87dfe717-217f-4447-b59a-7ea39160b83a.json index 6f358d801..f36d5ae1b 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkIn_87dfe717-217f-4447-b59a-7ea39160b83a.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkIn_87dfe717-217f-4447-b59a-7ea39160b83a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Network In Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network In Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Network In Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network In Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkOutTotal_98de2aed-3493-4e65-919b-b1f8e6995819.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkOutTotal_98de2aed-3493-4e65-919b-b1f8e6995819.json index 6a963623b..65637ed30 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkOutTotal_98de2aed-3493-4e65-919b-b1f8e6995819.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/NetworkOutTotal_98de2aed-3493-4e65-919b-b1f8e6995819.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Network Out Total Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network Out Total Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Network Out Total Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Network Out Total Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/OSDiskIOPSConsumedPercentage_55dc79f4-5666-420f-8c53-141d73e01fee.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/OSDiskIOPSConsumedPercentage_55dc79f4-5666-420f-8c53-141d73e01fee.json index 2573dc703..ebef97cb2 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/OSDiskIOPSConsumedPercentage_55dc79f4-5666-420f-8c53-141d73e01fee.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/OSDiskIOPSConsumedPercentage_55dc79f4-5666-420f-8c53-141d73e01fee.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets OS Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets OS Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets OS Disk IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets OS Disk IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/OutboundFlows_d336cfa2-724e-419a-809d-c716741d5279.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/OutboundFlows_d336cfa2-724e-419a-809d-c716741d5279.json index 72f748180..16d692fdb 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/OutboundFlows_d336cfa2-724e-419a-809d-c716741d5279.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/OutboundFlows_d336cfa2-724e-419a-809d-c716741d5279.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Outbound Flows Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Outbound Flows Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Outbound Flows Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Outbound Flows Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/PercentageCPU_310c2a27-8933-434e-a366-cb35831cde44.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/PercentageCPU_310c2a27-8933-434e-a366-cb35831cde44.json index b83d270d6..9033e57a1 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/PercentageCPU_310c2a27-8933-434e-a366-cb35831cde44.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/PercentageCPU_310c2a27-8933-434e-a366-cb35831cde44.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets Percentage CPU Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets Percentage CPU Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachineScaleSets/templates/policy-arm/VmAvailabilityMetric_6cf11f1e-273a-4f42-bf9b-9310b26c1c4f.json b/services/Compute/virtualMachineScaleSets/templates/policy-arm/VmAvailabilityMetric_6cf11f1e-273a-4f42-bf9b-9310b26c1c4f.json index 3bdb0cdce..65ff65bc8 100644 --- a/services/Compute/virtualMachineScaleSets/templates/policy-arm/VmAvailabilityMetric_6cf11f1e-273a-4f42-bf9b-9310b26c1c4f.json +++ b/services/Compute/virtualMachineScaleSets/templates/policy-arm/VmAvailabilityMetric_6cf11f1e-273a-4f42-bf9b-9310b26c1c4f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachineScaleSets VmAvailabilityMetric Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachineScaleSets VmAvailabilityMetric Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachineScaleSets VmAvailabilityMetric Alert", - "description": "Policy to Audit/Deploy Compute virtualMachineScaleSets VmAvailabilityMetric Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytesMBytes_b0bd7c37-eb24-47c2-a032-f925594152ed.json b/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytesMBytes_b0bd7c37-eb24-47c2-a032-f925594152ed.json index e22517d05..fd863489f 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytesMBytes_b0bd7c37-eb24-47c2-a032-f925594152ed.json +++ b/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytesMBytes_b0bd7c37-eb24-47c2-a032-f925594152ed.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VM Available Memory Bytes (MBytes) Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VM Available Memory Bytes (MBytes) Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VM Available Memory Bytes (MBytes) Alert", - "description": "Policy to Audit/Deploy VM Available Memory Bytes (MBytes) Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytes_bf1e0006-6089-4f92-a115-fc83aa0fbdd5.json b/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytes_bf1e0006-6089-4f92-a115-fc83aa0fbdd5.json index feb88789c..582dd54cd 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytes_bf1e0006-6089-4f92-a115-fc83aa0fbdd5.json +++ b/services/Compute/virtualMachines/templates/policy-arm/AvailableMemoryBytes_bf1e0006-6089-4f92-a115-fc83aa0fbdd5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Available Memory Bytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Available Memory Bytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Available Memory Bytes Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Available Memory Bytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsConsumed_a407ae10-6263-449c-81b9-172760d6dc6d.json b/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsConsumed_a407ae10-6263-449c-81b9-172760d6dc6d.json index 154066199..29bff26a0 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsConsumed_a407ae10-6263-449c-81b9-172760d6dc6d.json +++ b/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsConsumed_a407ae10-6263-449c-81b9-172760d6dc6d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines CPU Credits Consumed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines CPU Credits Consumed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines CPU Credits Consumed Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines CPU Credits Consumed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsRemaining_821888a1-6490-4a2d-8850-bdc45057a853.json b/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsRemaining_821888a1-6490-4a2d-8850-bdc45057a853.json index 9b315520b..eb5f1c15d 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsRemaining_821888a1-6490-4a2d-8850-bdc45057a853.json +++ b/services/Compute/virtualMachines/templates/policy-arm/CPUCreditsRemaining_821888a1-6490-4a2d-8850-bdc45057a853.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines CPU Credits Remaining Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines CPU Credits Remaining Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines CPU Credits Remaining Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines CPU Credits Remaining Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskBandwidthConsumedPercentage_b57b0749-f851-4c3d-b7fb-7cf26f3bf16a.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskBandwidthConsumedPercentage_b57b0749-f851-4c3d-b7fb-7cf26f3bf16a.json index 6a4030112..a9b6640ab 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskBandwidthConsumedPercentage_b57b0749-f851-4c3d-b7fb-7cf26f3bf16a.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskBandwidthConsumedPercentage_b57b0749-f851-4c3d-b7fb-7cf26f3bf16a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Bandwidth Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Bandwidth Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskIOPSConsumedPercentage_b0cbb9f8-cc67-4e7d-95a8-5a058c6de7e0.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskIOPSConsumedPercentage_b0cbb9f8-cc67-4e7d-95a8-5a058c6de7e0.json index 53b6f6bee..ca09826dc 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskIOPSConsumedPercentage_b0cbb9f8-cc67-4e7d-95a8-5a058c6de7e0.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskIOPSConsumedPercentage_b0cbb9f8-cc67-4e7d-95a8-5a058c6de7e0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskMaxBurstIOPS_9b0f41af-1c52-4890-a23a-3bfebfee1154.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskMaxBurstIOPS_9b0f41af-1c52-4890-a23a-3bfebfee1154.json index bb041a03e..e9af59e58 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskMaxBurstIOPS_9b0f41af-1c52-4890-a23a-3bfebfee1154.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskMaxBurstIOPS_9b0f41af-1c52-4890-a23a-3bfebfee1154.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Max Burst IOPS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Max Burst IOPS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Max Burst IOPS Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Max Burst IOPS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskQueueDepth_040bc9c3-da5c-4fd0-b160-979ce89364ae.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskQueueDepth_040bc9c3-da5c-4fd0-b160-979ce89364ae.json index 894422cc0..3518c1e81 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskQueueDepth_040bc9c3-da5c-4fd0-b160-979ce89364ae.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskQueueDepth_040bc9c3-da5c-4fd0-b160-979ce89364ae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Queue Depth Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Queue Depth Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Queue Depth Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Queue Depth Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskReadOperationsSec_3c5518ea-9a0f-44ff-b197-47b3d6db060b.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskReadOperationsSec_3c5518ea-9a0f-44ff-b197-47b3d6db060b.json index 04690269b..30ef4a592 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskReadOperationsSec_3c5518ea-9a0f-44ff-b197-47b3d6db060b.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskReadOperationsSec_3c5518ea-9a0f-44ff-b197-47b3d6db060b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Read Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Read Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteBytessec_e45d685d-14c4-4422-8096-6f11d628fb20.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteBytessec_e45d685d-14c4-4422-8096-6f11d628fb20.json index 234897a49..ac0807eaa 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteBytessec_e45d685d-14c4-4422-8096-6f11d628fb20.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteBytessec_e45d685d-14c4-4422-8096-6f11d628fb20.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Write Bytes/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Write Bytes/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Write Bytes/sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Write Bytes/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteOperationsSec_326b359d-e0a2-4055-8e1f-f9c5f9df5599.json b/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteOperationsSec_326b359d-e0a2-4055-8e1f-f9c5f9df5599.json index 7ec38c194..7bac742b7 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteOperationsSec_326b359d-e0a2-4055-8e1f-f9c5f9df5599.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DataDiskWriteOperationsSec_326b359d-e0a2-4055-8e1f-f9c5f9df5599.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Data Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Data Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Data Disk Write Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Data Disk Write Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DiskReadBytes_b9221998-f2bb-4ae8-b2c8-f9c4750e06f7.json b/services/Compute/virtualMachines/templates/policy-arm/DiskReadBytes_b9221998-f2bb-4ae8-b2c8-f9c4750e06f7.json index 13cfbb4a6..7fb0cf78d 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DiskReadBytes_b9221998-f2bb-4ae8-b2c8-f9c4750e06f7.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DiskReadBytes_b9221998-f2bb-4ae8-b2c8-f9c4750e06f7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Disk Read Bytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Disk Read Bytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Disk Read Bytes Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Disk Read Bytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DiskReadOperationsSec_8bc489c0-d2f7-43c1-9bb7-478c9503fb2e.json b/services/Compute/virtualMachines/templates/policy-arm/DiskReadOperationsSec_8bc489c0-d2f7-43c1-9bb7-478c9503fb2e.json index fd5551b4f..d54f54629 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DiskReadOperationsSec_8bc489c0-d2f7-43c1-9bb7-478c9503fb2e.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DiskReadOperationsSec_8bc489c0-d2f7-43c1-9bb7-478c9503fb2e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Disk Read Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Disk Read Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Disk Read Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DiskWriteBytes_b1cc650c-24fe-4f9e-a2ec-5757816526c0.json b/services/Compute/virtualMachines/templates/policy-arm/DiskWriteBytes_b1cc650c-24fe-4f9e-a2ec-5757816526c0.json index 88adbd206..c807f3ba2 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DiskWriteBytes_b1cc650c-24fe-4f9e-a2ec-5757816526c0.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DiskWriteBytes_b1cc650c-24fe-4f9e-a2ec-5757816526c0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Disk Write Bytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Disk Write Bytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Disk Write Bytes Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Disk Write Bytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/DiskWriteOperationsSec_edff41cb-d9b8-46ba-ba39-42747c1a4c4b.json b/services/Compute/virtualMachines/templates/policy-arm/DiskWriteOperationsSec_edff41cb-d9b8-46ba-ba39-42747c1a4c4b.json index 627cd4ebb..6ffbd1a4e 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/DiskWriteOperationsSec_edff41cb-d9b8-46ba-ba39-42747c1a4c4b.json +++ b/services/Compute/virtualMachines/templates/policy-arm/DiskWriteOperationsSec_edff41cb-d9b8-46ba-ba39-42747c1a4c4b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Disk Write Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Disk Write Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/InboundFlows_6de4e570-4270-4e9b-949e-5680b061e7fd.json b/services/Compute/virtualMachines/templates/policy-arm/InboundFlows_6de4e570-4270-4e9b-949e-5680b061e7fd.json index c173a8a89..5c329e56f 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/InboundFlows_6de4e570-4270-4e9b-949e-5680b061e7fd.json +++ b/services/Compute/virtualMachines/templates/policy-arm/InboundFlows_6de4e570-4270-4e9b-949e-5680b061e7fd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Inbound Flows Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Inbound Flows Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Inbound Flows Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Inbound Flows Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/NetworkInTotal_ea4501a3-1e77-4df1-ab61-3ee28ae529eb.json b/services/Compute/virtualMachines/templates/policy-arm/NetworkInTotal_ea4501a3-1e77-4df1-ab61-3ee28ae529eb.json index 476d606a5..ab7d001e1 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/NetworkInTotal_ea4501a3-1e77-4df1-ab61-3ee28ae529eb.json +++ b/services/Compute/virtualMachines/templates/policy-arm/NetworkInTotal_ea4501a3-1e77-4df1-ab61-3ee28ae529eb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Network In Total Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Network In Total Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Network In Total Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Network In Total Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/NetworkOutTotal_e2028144-b142-445c-b544-3bb438537c8f.json b/services/Compute/virtualMachines/templates/policy-arm/NetworkOutTotal_e2028144-b142-445c-b544-3bb438537c8f.json index 402dce88b..874d3e9e9 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/NetworkOutTotal_e2028144-b142-445c-b544-3bb438537c8f.json +++ b/services/Compute/virtualMachines/templates/policy-arm/NetworkOutTotal_e2028144-b142-445c-b544-3bb438537c8f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Network Out Total Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Network Out Total Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Network Out Total Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Network Out Total Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskBandwidthConsumedPercentage_f7e19635-0118-4040-83d5-2f4c2150aef1.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskBandwidthConsumedPercentage_f7e19635-0118-4040-83d5-2f4c2150aef1.json index b9ad4019a..24983e52e 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskBandwidthConsumedPercentage_f7e19635-0118-4040-83d5-2f4c2150aef1.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskBandwidthConsumedPercentage_f7e19635-0118-4040-83d5-2f4c2150aef1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk Bandwidth Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk Bandwidth Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskIOPSConsumedPercentage_a2bf3c43-d327-473b-9204-f77e2a0fe398.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskIOPSConsumedPercentage_a2bf3c43-d327-473b-9204-f77e2a0fe398.json index af55d2d83..b6d3e4a8c 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskIOPSConsumedPercentage_a2bf3c43-d327-473b-9204-f77e2a0fe398.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskIOPSConsumedPercentage_a2bf3c43-d327-473b-9204-f77e2a0fe398.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskMaxBurstIOPS_916dc60b-b2d2-4708-9fa4-6a36b244f499.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskMaxBurstIOPS_916dc60b-b2d2-4708-9fa4-6a36b244f499.json index eb91fcc6e..38851a27a 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskMaxBurstIOPS_916dc60b-b2d2-4708-9fa4-6a36b244f499.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskMaxBurstIOPS_916dc60b-b2d2-4708-9fa4-6a36b244f499.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk Max Burst IOPS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk Max Burst IOPS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk Max Burst IOPS Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk Max Burst IOPS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskQueueDepth_36262245-4c8a-4143-9ab4-68e9c23ae19a.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskQueueDepth_36262245-4c8a-4143-9ab4-68e9c23ae19a.json index 6134a3730..6e2c7af35 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskQueueDepth_36262245-4c8a-4143-9ab4-68e9c23ae19a.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskQueueDepth_36262245-4c8a-4143-9ab4-68e9c23ae19a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk Queue Depth Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk Queue Depth Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk Queue Depth Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk Queue Depth Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteBytessec_929b095e-5ea1-48b4-bf4e-bfc1a941a908.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteBytessec_929b095e-5ea1-48b4-bf4e-bfc1a941a908.json index 0e4007e8e..2b116fa36 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteBytessec_929b095e-5ea1-48b4-bf4e-bfc1a941a908.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteBytessec_929b095e-5ea1-48b4-bf4e-bfc1a941a908.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk Write Bytes/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk Write Bytes/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk Write Bytes/sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk Write Bytes/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteOperationsSec_3be4037a-c692-402d-843d-b3fe43053edf.json b/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteOperationsSec_3be4037a-c692-402d-843d-b3fe43053edf.json index 2677802ef..bf7f4ffec 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteOperationsSec_3be4037a-c692-402d-843d-b3fe43053edf.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OSDiskWriteOperationsSec_3be4037a-c692-402d-843d-b3fe43053edf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines OS Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines OS Disk Write Operations/Sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines OS Disk Write Operations/Sec Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines OS Disk Write Operations/Sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/OutboundFlows_a477bf96-4b0f-471c-b5d3-0acdb59612e6.json b/services/Compute/virtualMachines/templates/policy-arm/OutboundFlows_a477bf96-4b0f-471c-b5d3-0acdb59612e6.json index 9502fee0c..ae800fee6 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/OutboundFlows_a477bf96-4b0f-471c-b5d3-0acdb59612e6.json +++ b/services/Compute/virtualMachines/templates/policy-arm/OutboundFlows_a477bf96-4b0f-471c-b5d3-0acdb59612e6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Outbound Flows Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Outbound Flows Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Outbound Flows Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Outbound Flows Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/PercentageCPU_a9bac9fd-2382-4ce1-b68b-8898caf45038.json b/services/Compute/virtualMachines/templates/policy-arm/PercentageCPU_a9bac9fd-2382-4ce1-b68b-8898caf45038.json index 5604e8bb5..8d0108532 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/PercentageCPU_a9bac9fd-2382-4ce1-b68b-8898caf45038.json +++ b/services/Compute/virtualMachines/templates/policy-arm/PercentageCPU_a9bac9fd-2382-4ce1-b68b-8898caf45038.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines Percentage CPU Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines Percentage CPU Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines Percentage CPU Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/VMCachedBandwidthConsumedPercentage_eb85f15b-b705-418f-b8ed-93d8cc7a9a6c.json b/services/Compute/virtualMachines/templates/policy-arm/VMCachedBandwidthConsumedPercentage_eb85f15b-b705-418f-b8ed-93d8cc7a9a6c.json index 7baa4524b..b76f49526 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/VMCachedBandwidthConsumedPercentage_eb85f15b-b705-418f-b8ed-93d8cc7a9a6c.json +++ b/services/Compute/virtualMachines/templates/policy-arm/VMCachedBandwidthConsumedPercentage_eb85f15b-b705-418f-b8ed-93d8cc7a9a6c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines VM Cached Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines VM Cached Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines VM Cached Bandwidth Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines VM Cached Bandwidth Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/VMCachedIOPSConsumedPercentage_c878115f-2a89-446e-8980-ef4f152120c5.json b/services/Compute/virtualMachines/templates/policy-arm/VMCachedIOPSConsumedPercentage_c878115f-2a89-446e-8980-ef4f152120c5.json index f484675bf..ef488d24d 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/VMCachedIOPSConsumedPercentage_c878115f-2a89-446e-8980-ef4f152120c5.json +++ b/services/Compute/virtualMachines/templates/policy-arm/VMCachedIOPSConsumedPercentage_c878115f-2a89-446e-8980-ef4f152120c5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines VM Cached IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines VM Cached IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines VM Cached IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines VM Cached IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/VMUncachedBandwidthConsumedPercentage_e3981e7b-fd8b-4e07-bb68-d598c020c12d.json b/services/Compute/virtualMachines/templates/policy-arm/VMUncachedBandwidthConsumedPercentage_e3981e7b-fd8b-4e07-bb68-d598c020c12d.json index 6ac1e0951..5f8918ee3 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/VMUncachedBandwidthConsumedPercentage_e3981e7b-fd8b-4e07-bb68-d598c020c12d.json +++ b/services/Compute/virtualMachines/templates/policy-arm/VMUncachedBandwidthConsumedPercentage_e3981e7b-fd8b-4e07-bb68-d598c020c12d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines VM Uncached Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines VM Uncached Bandwidth Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines VM Uncached Bandwidth Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines VM Uncached Bandwidth Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/VMUncachedIOPSConsumedPercentage_765ceb5b-ec1d-44d7-b94d-bb139030df81.json b/services/Compute/virtualMachines/templates/policy-arm/VMUncachedIOPSConsumedPercentage_765ceb5b-ec1d-44d7-b94d-bb139030df81.json index bf51aa975..90cea485a 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/VMUncachedIOPSConsumedPercentage_765ceb5b-ec1d-44d7-b94d-bb139030df81.json +++ b/services/Compute/virtualMachines/templates/policy-arm/VMUncachedIOPSConsumedPercentage_765ceb5b-ec1d-44d7-b94d-bb139030df81.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines VM Uncached IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines VM Uncached IOPS Consumed Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines VM Uncached IOPS Consumed Percentage Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines VM Uncached IOPS Consumed Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Compute/virtualMachines/templates/policy-arm/VmAvailabilityMetric_3fa5376a-705a-48e4-b314-6282a74c9f7c.json b/services/Compute/virtualMachines/templates/policy-arm/VmAvailabilityMetric_3fa5376a-705a-48e4-b314-6282a74c9f7c.json index 7edc145b8..7c0814b9b 100644 --- a/services/Compute/virtualMachines/templates/policy-arm/VmAvailabilityMetric_3fa5376a-705a-48e4-b314-6282a74c9f7c.json +++ b/services/Compute/virtualMachines/templates/policy-arm/VmAvailabilityMetric_3fa5376a-705a-48e4-b314-6282a74c9f7c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Compute virtualMachines VmAvailabilityMetric Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Compute virtualMachines VmAvailabilityMetric Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Compute virtualMachines VmAvailabilityMetric Alert", - "description": "Policy to Audit/Deploy Compute virtualMachines VmAvailabilityMetric Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Compute", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerInstance/containerGroups/templates/policy-arm/CpuUsage_970af9d6-9212-420d-af7b-4fbd790a2596.json b/services/ContainerInstance/containerGroups/templates/policy-arm/CpuUsage_970af9d6-9212-420d-af7b-4fbd790a2596.json index dd03a6b06..cd5119e18 100644 --- a/services/ContainerInstance/containerGroups/templates/policy-arm/CpuUsage_970af9d6-9212-420d-af7b-4fbd790a2596.json +++ b/services/ContainerInstance/containerGroups/templates/policy-arm/CpuUsage_970af9d6-9212-420d-af7b-4fbd790a2596.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerInstance containerGroups CpuUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerInstance containerGroups CpuUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerInstance containerGroups CpuUsage Alert", - "description": "Policy to Audit/Deploy ContainerInstance containerGroups CpuUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerInstance", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerInstance/containerGroups/templates/policy-arm/MemoryUsage_4758386e-12ee-411a-9e49-445b5c5c3051.json b/services/ContainerInstance/containerGroups/templates/policy-arm/MemoryUsage_4758386e-12ee-411a-9e49-445b5c5c3051.json index 1b5593d99..8955f1373 100644 --- a/services/ContainerInstance/containerGroups/templates/policy-arm/MemoryUsage_4758386e-12ee-411a-9e49-445b5c5c3051.json +++ b/services/ContainerInstance/containerGroups/templates/policy-arm/MemoryUsage_4758386e-12ee-411a-9e49-445b5c5c3051.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerInstance containerGroups MemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerInstance containerGroups MemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerInstance containerGroups MemoryUsage Alert", - "description": "Policy to Audit/Deploy ContainerInstance containerGroups MemoryUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerInstance", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesReceivedPerSecond_8beff742-9cd8-43ed-9680-57ae35bee6e8.json b/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesReceivedPerSecond_8beff742-9cd8-43ed-9680-57ae35bee6e8.json index ebbf6d89f..7ff026504 100644 --- a/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesReceivedPerSecond_8beff742-9cd8-43ed-9680-57ae35bee6e8.json +++ b/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesReceivedPerSecond_8beff742-9cd8-43ed-9680-57ae35bee6e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerInstance containerGroups NetworkBytesReceivedPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerInstance containerGroups NetworkBytesReceivedPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerInstance containerGroups NetworkBytesReceivedPerSecond Alert", - "description": "Policy to Audit/Deploy ContainerInstance containerGroups NetworkBytesReceivedPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerInstance", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesTransmittedPerSecond_5b26b965-2662-4a89-9d7e-771486357f39.json b/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesTransmittedPerSecond_5b26b965-2662-4a89-9d7e-771486357f39.json index 119244f86..8f84d9352 100644 --- a/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesTransmittedPerSecond_5b26b965-2662-4a89-9d7e-771486357f39.json +++ b/services/ContainerInstance/containerGroups/templates/policy-arm/NetworkBytesTransmittedPerSecond_5b26b965-2662-4a89-9d7e-771486357f39.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerInstance containerGroups NetworkBytesTransmittedPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerInstance containerGroups NetworkBytesTransmittedPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerInstance containerGroups NetworkBytesTransmittedPerSecond Alert", - "description": "Policy to Audit/Deploy ContainerInstance containerGroups NetworkBytesTransmittedPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerInstance", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerRegistry/registries/templates/policy-arm/StorageUsed_fa9efde4-3586-4595-a442-b7e97f70fe91.json b/services/ContainerRegistry/registries/templates/policy-arm/StorageUsed_fa9efde4-3586-4595-a442-b7e97f70fe91.json index 55b9aa830..c957a933d 100644 --- a/services/ContainerRegistry/registries/templates/policy-arm/StorageUsed_fa9efde4-3586-4595-a442-b7e97f70fe91.json +++ b/services/ContainerRegistry/registries/templates/policy-arm/StorageUsed_fa9efde4-3586-4595-a442-b7e97f70fe91.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerRegistry registries StorageUsed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerRegistry registries StorageUsed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerRegistry registries StorageUsed Alert", - "description": "Policy to Audit/Deploy ContainerRegistry registries StorageUsed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerRegistry", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerRegistry/registries/templates/policy-arm/StorageUsedforStandardPricingPlan_42995506-5bd2-4687-9316-d9399919990b.json b/services/ContainerRegistry/registries/templates/policy-arm/StorageUsedforStandardPricingPlan_42995506-5bd2-4687-9316-d9399919990b.json index c362a1843..212f84910 100644 --- a/services/ContainerRegistry/registries/templates/policy-arm/StorageUsedforStandardPricingPlan_42995506-5bd2-4687-9316-d9399919990b.json +++ b/services/ContainerRegistry/registries/templates/policy-arm/StorageUsedforStandardPricingPlan_42995506-5bd2-4687-9316-d9399919990b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerRegistry registries StorageUsed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerRegistry registries StorageUsed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerRegistry registries StorageUsed Alert", - "description": "Policy to Audit/Deploy ContainerRegistry registries StorageUsed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerRegistry", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPullCount_b8c8a846-a8d0-4e8f-b854-030955a20135.json b/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPullCount_b8c8a846-a8d0-4e8f-b854-030955a20135.json index 5d8bed655..bbd551151 100644 --- a/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPullCount_b8c8a846-a8d0-4e8f-b854-030955a20135.json +++ b/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPullCount_b8c8a846-a8d0-4e8f-b854-030955a20135.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerRegistry registries SuccessfulPullCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerRegistry registries SuccessfulPullCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerRegistry registries SuccessfulPullCount Alert", - "description": "Policy to Audit/Deploy ContainerRegistry registries SuccessfulPullCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerRegistry", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPushCount_9dca87c2-de00-40fd-b0bb-c8335e5f978a.json b/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPushCount_9dca87c2-de00-40fd-b0bb-c8335e5f978a.json index f79aaa86f..49276e62b 100644 --- a/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPushCount_9dca87c2-de00-40fd-b0bb-c8335e5f978a.json +++ b/services/ContainerRegistry/registries/templates/policy-arm/SuccessfulPushCount_9dca87c2-de00-40fd-b0bb-c8335e5f978a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerRegistry registries SuccessfulPushCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerRegistry registries SuccessfulPushCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerRegistry registries SuccessfulPushCount Alert", - "description": "Policy to Audit/Deploy ContainerRegistry registries SuccessfulPushCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerRegistry", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerclustersafetoautoscale_49fd8bac-d061-459d-8d80-a048c4c8ba56.json b/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerclustersafetoautoscale_49fd8bac-d061-459d-8d80-a048c4c8ba56.json index 2f6096370..41f0208c5 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerclustersafetoautoscale_49fd8bac-d061-459d-8d80-a048c4c8ba56.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerclustersafetoautoscale_49fd8bac-d061-459d-8d80-a048c4c8ba56.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters cluster_autoscaler_cluster_safe_to_autoscale Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters cluster_autoscaler_cluster_safe_to_autoscale Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters cluster_autoscaler_cluster_safe_to_autoscale Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters cluster_autoscaler_cluster_safe_to_autoscale Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerunschedulablepodscount_301ca0e3-fc88-4285-be99-a2a587c412f5.json b/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerunschedulablepodscount_301ca0e3-fc88-4285-be99-a2a587c412f5.json index 6ba114385..b0415860c 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerunschedulablepodscount_301ca0e3-fc88-4285-be99-a2a587c412f5.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/clusterautoscalerunschedulablepodscount_301ca0e3-fc88-4285-be99-a2a587c412f5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters cluster_autoscaler_unschedulable_pods_count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters cluster_autoscaler_unschedulable_pods_count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters cluster_autoscaler_unschedulable_pods_count Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters cluster_autoscaler_unschedulable_pods_count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablecpucores_64a872f9-5ec6-4121-acad-edd12f4c3466.json b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablecpucores_64a872f9-5ec6-4121-acad-edd12f4c3466.json index b42be7132..5cce61c17 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablecpucores_64a872f9-5ec6-4121-acad-edd12f4c3466.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablecpucores_64a872f9-5ec6-4121-acad-edd12f4c3466.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters kube_node_status_allocatable_cpu_cores Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_allocatable_cpu_cores Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters kube_node_status_allocatable_cpu_cores Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_allocatable_cpu_cores Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablememorybytes_14fa63fb-7da9-4d2e-9de9-203c4a3e0401.json b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablememorybytes_14fa63fb-7da9-4d2e-9de9-203c4a3e0401.json index b8d312239..eb2f54ad7 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablememorybytes_14fa63fb-7da9-4d2e-9de9-203c4a3e0401.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatusallocatablememorybytes_14fa63fb-7da9-4d2e-9de9-203c4a3e0401.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters kube_node_status_allocatable_memory_bytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_allocatable_memory_bytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters kube_node_status_allocatable_memory_bytes Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_allocatable_memory_bytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatuscondition_ebbbbb92-5208-4d52-b407-6bea8e4473b9.json b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatuscondition_ebbbbb92-5208-4d52-b407-6bea8e4473b9.json index 3fbec050b..f7bd15aa9 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatuscondition_ebbbbb92-5208-4d52-b407-6bea8e4473b9.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/kubenodestatuscondition_ebbbbb92-5208-4d52-b407-6bea8e4473b9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters kube_node_status_condition Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_condition Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters kube_node_status_condition Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters kube_node_status_condition Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusphase_e38e6e11-ac88-4014-98c8-8e64f70b832a.json b/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusphase_e38e6e11-ac88-4014-98c8-8e64f70b832a.json index 29df35f24..4ef7d90ad 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusphase_e38e6e11-ac88-4014-98c8-8e64f70b832a.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusphase_e38e6e11-ac88-4014-98c8-8e64f70b832a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters kube_pod_status_phase Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters kube_pod_status_phase Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters kube_pod_status_phase Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters kube_pod_status_phase Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusready_cebf00b7-7294-4cf7-bc50-108f999d0c67.json b/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusready_cebf00b7-7294-4cf7-bc50-108f999d0c67.json index 8126cde2c..f0fbf430c 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusready_cebf00b7-7294-4cf7-bc50-108f999d0c67.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/kubepodstatusready_cebf00b7-7294-4cf7-bc50-108f999d0c67.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters kube_pod_status_ready Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters kube_pod_status_ready Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters kube_pod_status_ready Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters kube_pod_status_ready Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/nodecpuusagepercentage_1303e91d-bc80-4ec2-937e-1d179fc32b43.json b/services/ContainerService/managedClusters/templates/policy-arm/nodecpuusagepercentage_1303e91d-bc80-4ec2-937e-1d179fc32b43.json index d821a0952..e68058b94 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/nodecpuusagepercentage_1303e91d-bc80-4ec2-937e-1d179fc32b43.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/nodecpuusagepercentage_1303e91d-bc80-4ec2-937e-1d179fc32b43.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters node_cpu_usage_percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters node_cpu_usage_percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters node_cpu_usage_percentage Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters node_cpu_usage_percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/nodediskusagepercentage_aa3c5697-5cca-4c16-a37e-94f1d580701e.json b/services/ContainerService/managedClusters/templates/policy-arm/nodediskusagepercentage_aa3c5697-5cca-4c16-a37e-94f1d580701e.json index 8933e2ba1..8b2b90d7a 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/nodediskusagepercentage_aa3c5697-5cca-4c16-a37e-94f1d580701e.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/nodediskusagepercentage_aa3c5697-5cca-4c16-a37e-94f1d580701e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters node_disk_usage_percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters node_disk_usage_percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters node_disk_usage_percentage Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters node_disk_usage_percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/nodememoryrsspercentage_e89e023e-117b-4db4-bfb2-853849e273f5.json b/services/ContainerService/managedClusters/templates/policy-arm/nodememoryrsspercentage_e89e023e-117b-4db4-bfb2-853849e273f5.json index 8d39028c7..dc0a0114e 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/nodememoryrsspercentage_e89e023e-117b-4db4-bfb2-853849e273f5.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/nodememoryrsspercentage_e89e023e-117b-4db4-bfb2-853849e273f5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters node_memory_rss_percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters node_memory_rss_percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters node_memory_rss_percentage Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters node_memory_rss_percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ContainerService/managedClusters/templates/policy-arm/nodememoryworkingsetpercentage_9ae2dfbf-d69b-4802-8497-8b7836bef5e9.json b/services/ContainerService/managedClusters/templates/policy-arm/nodememoryworkingsetpercentage_9ae2dfbf-d69b-4802-8497-8b7836bef5e9.json index 28605b7f6..b8bcb9f2f 100644 --- a/services/ContainerService/managedClusters/templates/policy-arm/nodememoryworkingsetpercentage_9ae2dfbf-d69b-4802-8497-8b7836bef5e9.json +++ b/services/ContainerService/managedClusters/templates/policy-arm/nodememoryworkingsetpercentage_9ae2dfbf-d69b-4802-8497-8b7836bef5e9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ContainerService managedClusters node_memory_working_set_percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ContainerService managedClusters node_memory_working_set_percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ContainerService managedClusters node_memory_working_set_percentage Alert", - "description": "Policy to Audit/Deploy ContainerService managedClusters node_memory_working_set_percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ContainerService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMariaDB/servers/templates/policy-arm/cpupercent_0f19979d-9dc2-4636-8e15-435bbfa1f0f9.json b/services/DBforMariaDB/servers/templates/policy-arm/cpupercent_0f19979d-9dc2-4636-8e15-435bbfa1f0f9.json index 722c45337..1dcc7b72f 100644 --- a/services/DBforMariaDB/servers/templates/policy-arm/cpupercent_0f19979d-9dc2-4636-8e15-435bbfa1f0f9.json +++ b/services/DBforMariaDB/servers/templates/policy-arm/cpupercent_0f19979d-9dc2-4636-8e15-435bbfa1f0f9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMariaDB servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMariaDB servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMariaDB servers cpu_percent Alert", - "description": "Policy to Audit/Deploy DBforMariaDB servers cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMariaDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMariaDB/servers/templates/policy-arm/ioconsumptionpercent_13bbfe6e-3b65-4940-9344-6d1cc78e7d54.json b/services/DBforMariaDB/servers/templates/policy-arm/ioconsumptionpercent_13bbfe6e-3b65-4940-9344-6d1cc78e7d54.json index dd7b7205f..9fd313d3c 100644 --- a/services/DBforMariaDB/servers/templates/policy-arm/ioconsumptionpercent_13bbfe6e-3b65-4940-9344-6d1cc78e7d54.json +++ b/services/DBforMariaDB/servers/templates/policy-arm/ioconsumptionpercent_13bbfe6e-3b65-4940-9344-6d1cc78e7d54.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMariaDB servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMariaDB servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMariaDB servers io_consumption_percent Alert", - "description": "Policy to Audit/Deploy DBforMariaDB servers io_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMariaDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMariaDB/servers/templates/policy-arm/memorypercent_faf01668-c98a-4755-ae74-9dd4151f4c39.json b/services/DBforMariaDB/servers/templates/policy-arm/memorypercent_faf01668-c98a-4755-ae74-9dd4151f4c39.json index 2c46ca706..09cfd55c6 100644 --- a/services/DBforMariaDB/servers/templates/policy-arm/memorypercent_faf01668-c98a-4755-ae74-9dd4151f4c39.json +++ b/services/DBforMariaDB/servers/templates/policy-arm/memorypercent_faf01668-c98a-4755-ae74-9dd4151f4c39.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMariaDB servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMariaDB servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMariaDB servers memory_percent Alert", - "description": "Policy to Audit/Deploy DBforMariaDB servers memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMariaDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMariaDB/servers/templates/policy-arm/storagepercent_ef38051a-d9e3-4705-b208-29a421e729be.json b/services/DBforMariaDB/servers/templates/policy-arm/storagepercent_ef38051a-d9e3-4705-b208-29a421e729be.json index 80a26cc19..142032911 100644 --- a/services/DBforMariaDB/servers/templates/policy-arm/storagepercent_ef38051a-d9e3-4705-b208-29a421e729be.json +++ b/services/DBforMariaDB/servers/templates/policy-arm/storagepercent_ef38051a-d9e3-4705-b208-29a421e729be.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMariaDB servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMariaDB servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMariaDB servers storage_percent Alert", - "description": "Policy to Audit/Deploy DBforMariaDB servers storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMariaDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/abortedconnections_269d640c-b6ba-45e1-a52f-67708f9f99d7.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/abortedconnections_269d640c-b6ba-45e1-a52f-67708f9f99d7.json index 5841fae6c..d7a9f79b1 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/abortedconnections_269d640c-b6ba-45e1-a52f-67708f9f99d7.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/abortedconnections_269d640c-b6ba-45e1-a52f-67708f9f99d7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers aborted_connections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers aborted_connections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers aborted_connections Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers aborted_connections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/activeconnections_347674ce-8534-403d-8281-cac9ea6f412a.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/activeconnections_347674ce-8534-403d-8281-cac9ea6f412a.json index 555a178d4..30bd5fda2 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/activeconnections_347674ce-8534-403d-8281-cac9ea6f412a.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/activeconnections_347674ce-8534-403d-8281-cac9ea6f412a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers active_connections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers active_connections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers active_connections Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers active_connections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/cpupercent_218161be-4952-495b-aed1-03cccda3d42f.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/cpupercent_218161be-4952-495b-aed1-03cccda3d42f.json index ee7219cbf..4cf513ab3 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/cpupercent_218161be-4952-495b-aed1-03cccda3d42f.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/cpupercent_218161be-4952-495b-aed1-03cccda3d42f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers cpu_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/ioconsumptionpercent_a3601973-f48c-4bf2-8384-90d250702a79.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/ioconsumptionpercent_a3601973-f48c-4bf2-8384-90d250702a79.json index 2d46bf68c..fdb252fc9 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/ioconsumptionpercent_a3601973-f48c-4bf2-8384-90d250702a79.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/ioconsumptionpercent_a3601973-f48c-4bf2-8384-90d250702a79.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers io_consumption_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers io_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/memorypercent_757e2adf-60b8-4688-ae8f-03dd7dcd5226.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/memorypercent_757e2adf-60b8-4688-ae8f-03dd7dcd5226.json index 08963053e..55ff2bde2 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/memorypercent_757e2adf-60b8-4688-ae8f-03dd7dcd5226.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/memorypercent_757e2adf-60b8-4688-ae8f-03dd7dcd5226.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers memory_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/replicationlag_dfe563fc-0ec1-401d-a362-8d293a06d02b.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/replicationlag_dfe563fc-0ec1-401d-a362-8d293a06d02b.json index e9e5e2ddb..3eeaff9a9 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/replicationlag_dfe563fc-0ec1-401d-a362-8d293a06d02b.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/replicationlag_dfe563fc-0ec1-401d-a362-8d293a06d02b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers replication_lag Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers replication_lag Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers replication_lag Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers replication_lag Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/storagelimit_f285c23f-3b8e-428a-b289-8ff38a3c0e4b.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/storagelimit_f285c23f-3b8e-428a-b289-8ff38a3c0e4b.json index 410e02d9e..c46ef64c0 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/storagelimit_f285c23f-3b8e-428a-b289-8ff38a3c0e4b.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/storagelimit_f285c23f-3b8e-428a-b289-8ff38a3c0e4b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers storage_limit Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers storage_limit Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers storage_limit Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers storage_limit Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/flexibleServers/templates/policy-arm/storagepercent_e6771f44-f6d3-4a27-a9e4-b402a79c2891.json b/services/DBforMySQL/flexibleServers/templates/policy-arm/storagepercent_e6771f44-f6d3-4a27-a9e4-b402a79c2891.json index 0b3c80cd1..edac9ad2f 100644 --- a/services/DBforMySQL/flexibleServers/templates/policy-arm/storagepercent_e6771f44-f6d3-4a27-a9e4-b402a79c2891.json +++ b/services/DBforMySQL/flexibleServers/templates/policy-arm/storagepercent_e6771f44-f6d3-4a27-a9e4-b402a79c2891.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL flexibleServers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL flexibleServers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL flexibleServers storage_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL flexibleServers storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/activeconnections_60453255-5e0e-4fa5-95b5-6c449bee6902.json b/services/DBforMySQL/servers/templates/policy-arm/activeconnections_60453255-5e0e-4fa5-95b5-6c449bee6902.json index d263531f1..88281cb72 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/activeconnections_60453255-5e0e-4fa5-95b5-6c449bee6902.json +++ b/services/DBforMySQL/servers/templates/policy-arm/activeconnections_60453255-5e0e-4fa5-95b5-6c449bee6902.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers active_connections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers active_connections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers active_connections Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers active_connections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/connectionsfailed_f0767b27-b88b-46a1-ab90-37dc8c399358.json b/services/DBforMySQL/servers/templates/policy-arm/connectionsfailed_f0767b27-b88b-46a1-ab90-37dc8c399358.json index 33c4fbdc0..ec0da1705 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/connectionsfailed_f0767b27-b88b-46a1-ab90-37dc8c399358.json +++ b/services/DBforMySQL/servers/templates/policy-arm/connectionsfailed_f0767b27-b88b-46a1-ab90-37dc8c399358.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers connections_failed Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers connections_failed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/cpupercent_173e6b88-e8a9-4763-becb-9c749878c767.json b/services/DBforMySQL/servers/templates/policy-arm/cpupercent_173e6b88-e8a9-4763-becb-9c749878c767.json index f783fe268..de00b2cc9 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/cpupercent_173e6b88-e8a9-4763-becb-9c749878c767.json +++ b/services/DBforMySQL/servers/templates/policy-arm/cpupercent_173e6b88-e8a9-4763-becb-9c749878c767.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers cpu_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/ioconsumptionpercent_978944c7-a049-4847-8483-dcf5baa92f6a.json b/services/DBforMySQL/servers/templates/policy-arm/ioconsumptionpercent_978944c7-a049-4847-8483-dcf5baa92f6a.json index 9c4904fe2..3e3341a8f 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/ioconsumptionpercent_978944c7-a049-4847-8483-dcf5baa92f6a.json +++ b/services/DBforMySQL/servers/templates/policy-arm/ioconsumptionpercent_978944c7-a049-4847-8483-dcf5baa92f6a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers io_consumption_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers io_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/memorypercent_3a1dd0bd-ebe9-4f9b-b38c-88686a390bdd.json b/services/DBforMySQL/servers/templates/policy-arm/memorypercent_3a1dd0bd-ebe9-4f9b-b38c-88686a390bdd.json index 55fb4985c..f7bce91e4 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/memorypercent_3a1dd0bd-ebe9-4f9b-b38c-88686a390bdd.json +++ b/services/DBforMySQL/servers/templates/policy-arm/memorypercent_3a1dd0bd-ebe9-4f9b-b38c-88686a390bdd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers memory_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/secondsbehindmaster_85466088-8eb2-4faa-81f2-1ea40d8b6953.json b/services/DBforMySQL/servers/templates/policy-arm/secondsbehindmaster_85466088-8eb2-4faa-81f2-1ea40d8b6953.json index 668c7d953..498a6d6e3 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/secondsbehindmaster_85466088-8eb2-4faa-81f2-1ea40d8b6953.json +++ b/services/DBforMySQL/servers/templates/policy-arm/secondsbehindmaster_85466088-8eb2-4faa-81f2-1ea40d8b6953.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers seconds_behind_master Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers seconds_behind_master Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers seconds_behind_master Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers seconds_behind_master Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/serverlogstoragepercent_af2b7bbb-9476-475a-b523-da3ee521eda7.json b/services/DBforMySQL/servers/templates/policy-arm/serverlogstoragepercent_af2b7bbb-9476-475a-b523-da3ee521eda7.json index ed53131a0..745937de2 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/serverlogstoragepercent_af2b7bbb-9476-475a-b523-da3ee521eda7.json +++ b/services/DBforMySQL/servers/templates/policy-arm/serverlogstoragepercent_af2b7bbb-9476-475a-b523-da3ee521eda7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers serverlog_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers serverlog_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers serverlog_storage_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers serverlog_storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforMySQL/servers/templates/policy-arm/storagepercent_4f988eb2-c420-4ef2-82ed-2569b21b70e1.json b/services/DBforMySQL/servers/templates/policy-arm/storagepercent_4f988eb2-c420-4ef2-82ed-2569b21b70e1.json index c39239226..d94b2d0de 100644 --- a/services/DBforMySQL/servers/templates/policy-arm/storagepercent_4f988eb2-c420-4ef2-82ed-2569b21b70e1.json +++ b/services/DBforMySQL/servers/templates/policy-arm/storagepercent_4f988eb2-c420-4ef2-82ed-2569b21b70e1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforMySQL servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforMySQL servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforMySQL servers storage_percent Alert", - "description": "Policy to Audit/Deploy DBforMySQL servers storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforMySQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/activeconnections_f9b59221-8055-449e-bfd5-7a056945c694.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/activeconnections_f9b59221-8055-449e-bfd5-7a056945c694.json index c02d5a63a..7350a67c9 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/activeconnections_f9b59221-8055-449e-bfd5-7a056945c694.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/activeconnections_f9b59221-8055-449e-bfd5-7a056945c694.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers active_connections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers active_connections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers active_connections Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers active_connections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/connectionsfailed_5f9cdad0-db39-48c9-a4eb-3107b5b79414.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/connectionsfailed_5f9cdad0-db39-48c9-a4eb-3107b5b79414.json index 6e4d9ed11..2181a3a69 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/connectionsfailed_5f9cdad0-db39-48c9-a4eb-3107b5b79414.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/connectionsfailed_5f9cdad0-db39-48c9-a4eb-3107b5b79414.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers connections_failed Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers connections_failed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/cpupercent_389057c9-a0e0-4327-b89f-58c3dabb519d.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/cpupercent_389057c9-a0e0-4327-b89f-58c3dabb519d.json index e32eb387b..605f5bdc9 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/cpupercent_389057c9-a0e0-4327-b89f-58c3dabb519d.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/cpupercent_389057c9-a0e0-4327-b89f-58c3dabb519d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers cpu_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/deadlocks_1904dd93-9655-403f-bb89-dc42e5ebc666.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/deadlocks_1904dd93-9655-403f-bb89-dc42e5ebc666.json index 4f4b4260e..e73f9496c 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/deadlocks_1904dd93-9655-403f-bb89-dc42e5ebc666.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/deadlocks_1904dd93-9655-403f-bb89-dc42e5ebc666.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers deadlocks Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers deadlocks Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers deadlocks Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers deadlocks Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/diskiopsconsumedpercentage_5856ad80-7256-441f-8a62-af1fdc712018.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/diskiopsconsumedpercentage_5856ad80-7256-441f-8a62-af1fdc712018.json index 73b2fccf6..8aa6514a3 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/diskiopsconsumedpercentage_5856ad80-7256-441f-8a62-af1fdc712018.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/diskiopsconsumedpercentage_5856ad80-7256-441f-8a62-af1fdc712018.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers disk_iops_consumed_percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers disk_iops_consumed_percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers disk_iops_consumed_percentage Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers disk_iops_consumed_percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/iops_eb3e1fb3-83e9-4764-b6e1-532bb22ce1aa.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/iops_eb3e1fb3-83e9-4764-b6e1-532bb22ce1aa.json index 4555d1d98..3a08968c0 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/iops_eb3e1fb3-83e9-4764-b6e1-532bb22ce1aa.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/iops_eb3e1fb3-83e9-4764-b6e1-532bb22ce1aa.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers iops Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers iops Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers iops Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers iops Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/isdbalive_b0ac25d8-ae08-45e1-8a1e-5204514ad7bd.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/isdbalive_b0ac25d8-ae08-45e1-8a1e-5204514ad7bd.json index 076a65632..da565be2a 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/isdbalive_b0ac25d8-ae08-45e1-8a1e-5204514ad7bd.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/isdbalive_b0ac25d8-ae08-45e1-8a1e-5204514ad7bd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers is_db_alive Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers is_db_alive Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers is_db_alive Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers is_db_alive Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/maximumusedtransactionIDs_1103b9a5-3d3d-4aa8-a3c2-66958e32c220.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/maximumusedtransactionIDs_1103b9a5-3d3d-4aa8-a3c2-66958e32c220.json index 8cd763ae2..cecaa1e09 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/maximumusedtransactionIDs_1103b9a5-3d3d-4aa8-a3c2-66958e32c220.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/maximumusedtransactionIDs_1103b9a5-3d3d-4aa8-a3c2-66958e32c220.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers maximum_used_transactionIDs Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers maximum_used_transactionIDs Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers maximum_used_transactionIDs Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers maximum_used_transactionIDs Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/memorypercent_0c64aa8f-4bdb-4bb0-961c-d298000536af.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/memorypercent_0c64aa8f-4bdb-4bb0-961c-d298000536af.json index e391e17af..b75d7477b 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/memorypercent_0c64aa8f-4bdb-4bb0-961c-d298000536af.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/memorypercent_0c64aa8f-4bdb-4bb0-961c-d298000536af.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers memory_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagefree_d389ee62-f431-4faa-a4bc-4a3d02cea182.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagefree_d389ee62-f431-4faa-a4bc-4a3d02cea182.json index 7f2d92f19..694385f53 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagefree_d389ee62-f431-4faa-a4bc-4a3d02cea182.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagefree_d389ee62-f431-4faa-a4bc-4a3d02cea182.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers storage_free Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers storage_free Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers storage_free Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers storage_free Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagepercent_e397645f-359b-46d1-8182-d2cabab71aae.json b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagepercent_e397645f-359b-46d1-8182-d2cabab71aae.json index 50235531a..14813cb79 100644 --- a/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagepercent_e397645f-359b-46d1-8182-d2cabab71aae.json +++ b/services/DBforPostgreSQL/flexibleServers/templates/policy-arm/storagepercent_e397645f-359b-46d1-8182-d2cabab71aae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL flexibleServers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL flexibleServers storage_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL flexibleServers storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/activeconnections_186c5227-a9f4-4cd0-a355-c8d28f359398.json b/services/DBforPostgreSQL/servers/templates/policy-arm/activeconnections_186c5227-a9f4-4cd0-a355-c8d28f359398.json index 3c2c3dc23..d99929e96 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/activeconnections_186c5227-a9f4-4cd0-a355-c8d28f359398.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/activeconnections_186c5227-a9f4-4cd0-a355-c8d28f359398.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers active_connections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers active_connections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers active_connections Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers active_connections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/connectionsfailed_0a6de1a0-e4df-470f-9bc7-247838fc428c.json b/services/DBforPostgreSQL/servers/templates/policy-arm/connectionsfailed_0a6de1a0-e4df-470f-9bc7-247838fc428c.json index 259b6e999..ae3368f7d 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/connectionsfailed_0a6de1a0-e4df-470f-9bc7-247838fc428c.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/connectionsfailed_0a6de1a0-e4df-470f-9bc7-247838fc428c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers connections_failed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers connections_failed Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers connections_failed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/cpupercent_a2b3fa9d-f7e8-4d1e-967c-3d661bc06708.json b/services/DBforPostgreSQL/servers/templates/policy-arm/cpupercent_a2b3fa9d-f7e8-4d1e-967c-3d661bc06708.json index 1fe81e0b7..5c59e647c 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/cpupercent_a2b3fa9d-f7e8-4d1e-967c-3d661bc06708.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/cpupercent_a2b3fa9d-f7e8-4d1e-967c-3d661bc06708.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers cpu_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/ioconsumptionpercent_ea7248bd-f96c-4391-ac48-c95312441028.json b/services/DBforPostgreSQL/servers/templates/policy-arm/ioconsumptionpercent_ea7248bd-f96c-4391-ac48-c95312441028.json index 68275efd0..fa6e37bf5 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/ioconsumptionpercent_ea7248bd-f96c-4391-ac48-c95312441028.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/ioconsumptionpercent_ea7248bd-f96c-4391-ac48-c95312441028.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers io_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers io_consumption_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers io_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/memorypercent_1d53e3ac-e98a-426c-81f1-aa1834c49692.json b/services/DBforPostgreSQL/servers/templates/policy-arm/memorypercent_1d53e3ac-e98a-426c-81f1-aa1834c49692.json index 0ffaab379..03523c2a6 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/memorypercent_1d53e3ac-e98a-426c-81f1-aa1834c49692.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/memorypercent_1d53e3ac-e98a-426c-81f1-aa1834c49692.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers memory_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/pgreplicalogdelayinseconds_90c0997a-f96e-4a34-87c7-c394c6e8b940.json b/services/DBforPostgreSQL/servers/templates/policy-arm/pgreplicalogdelayinseconds_90c0997a-f96e-4a34-87c7-c394c6e8b940.json index eaccbc7f4..89ed5a018 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/pgreplicalogdelayinseconds_90c0997a-f96e-4a34-87c7-c394c6e8b940.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/pgreplicalogdelayinseconds_90c0997a-f96e-4a34-87c7-c394c6e8b940.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers pg_replica_log_delay_in_seconds Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers pg_replica_log_delay_in_seconds Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers pg_replica_log_delay_in_seconds Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers pg_replica_log_delay_in_seconds Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/serverlogstoragepercent_56a13163-c2b6-4235-96bd-ef1e373b19ba.json b/services/DBforPostgreSQL/servers/templates/policy-arm/serverlogstoragepercent_56a13163-c2b6-4235-96bd-ef1e373b19ba.json index 327f222bf..8c3c8b7f9 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/serverlogstoragepercent_56a13163-c2b6-4235-96bd-ef1e373b19ba.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/serverlogstoragepercent_56a13163-c2b6-4235-96bd-ef1e373b19ba.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers serverlog_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers serverlog_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers serverlog_storage_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers serverlog_storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DBforPostgreSQL/servers/templates/policy-arm/storagepercent_e031f8bf-ed3f-4a41-87fe-b301c1d02367.json b/services/DBforPostgreSQL/servers/templates/policy-arm/storagepercent_e031f8bf-ed3f-4a41-87fe-b301c1d02367.json index 7057ba5fb..deac53611 100644 --- a/services/DBforPostgreSQL/servers/templates/policy-arm/storagepercent_e031f8bf-ed3f-4a41-87fe-b301c1d02367.json +++ b/services/DBforPostgreSQL/servers/templates/policy-arm/storagepercent_e031f8bf-ed3f-4a41-87fe-b301c1d02367.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DBforPostgreSQL servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DBforPostgreSQL servers storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DBforPostgreSQL servers storage_percent Alert", - "description": "Policy to Audit/Deploy DBforPostgreSQL servers storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DBforPostgreSQL", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/ActivityFailedRuns_980f53cb-3eef-4263-952e-e69709e2a6e7.json b/services/DataFactory/factories/templates/policy-arm/ActivityFailedRuns_980f53cb-3eef-4263-952e-e69709e2a6e7.json index 5f916c237..cb8a5b0b6 100644 --- a/services/DataFactory/factories/templates/policy-arm/ActivityFailedRuns_980f53cb-3eef-4263-952e-e69709e2a6e7.json +++ b/services/DataFactory/factories/templates/policy-arm/ActivityFailedRuns_980f53cb-3eef-4263-952e-e69709e2a6e7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories ActivityFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories ActivityFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories ActivityFailedRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories ActivityFailedRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/ActivitySucceededRuns_321c2df7-c548-4e06-8729-8132b4dc3386.json b/services/DataFactory/factories/templates/policy-arm/ActivitySucceededRuns_321c2df7-c548-4e06-8729-8132b4dc3386.json index b007cfa05..a2ff9bb13 100644 --- a/services/DataFactory/factories/templates/policy-arm/ActivitySucceededRuns_321c2df7-c548-4e06-8729-8132b4dc3386.json +++ b/services/DataFactory/factories/templates/policy-arm/ActivitySucceededRuns_321c2df7-c548-4e06-8729-8132b4dc3386.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories ActivitySucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories ActivitySucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories ActivitySucceededRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories ActivitySucceededRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/FactorySizeInGbUnits_08bfad59-0c23-4e6b-b577-e325f445a2cc.json b/services/DataFactory/factories/templates/policy-arm/FactorySizeInGbUnits_08bfad59-0c23-4e6b-b577-e325f445a2cc.json index 8d4b7c393..fb79aa419 100644 --- a/services/DataFactory/factories/templates/policy-arm/FactorySizeInGbUnits_08bfad59-0c23-4e6b-b577-e325f445a2cc.json +++ b/services/DataFactory/factories/templates/policy-arm/FactorySizeInGbUnits_08bfad59-0c23-4e6b-b577-e325f445a2cc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories FactorySizeInGbUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories FactorySizeInGbUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories FactorySizeInGbUnits Alert", - "description": "Policy to Audit/Deploy DataFactory factories FactorySizeInGbUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableMemory_e8fec7b1-ca81-48cd-a7ea-f81cc2fcb4a5.json b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableMemory_e8fec7b1-ca81-48cd-a7ea-f81cc2fcb4a5.json index fbcc8b6ad..e8575f240 100644 --- a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableMemory_e8fec7b1-ca81-48cd-a7ea-f81cc2fcb4a5.json +++ b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableMemory_e8fec7b1-ca81-48cd-a7ea-f81cc2fcb4a5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories IntegrationRuntimeAvailableMemory Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeAvailableMemory Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories IntegrationRuntimeAvailableMemory Alert", - "description": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeAvailableMemory Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableNodeNumber_4b40d85d-f0be-41e5-9d60-ad9a99c54a41.json b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableNodeNumber_4b40d85d-f0be-41e5-9d60-ad9a99c54a41.json index 273719f55..a895169fe 100644 --- a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableNodeNumber_4b40d85d-f0be-41e5-9d60-ad9a99c54a41.json +++ b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeAvailableNodeNumber_4b40d85d-f0be-41e5-9d60-ad9a99c54a41.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories IntegrationRuntimeAvailableNodeNumber Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeAvailableNodeNumber Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories IntegrationRuntimeAvailableNodeNumber Alert", - "description": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeAvailableNodeNumber Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeCpuPercentage_473c5450-95cc-4f86-bb8a-d0a06edd1357.json b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeCpuPercentage_473c5450-95cc-4f86-bb8a-d0a06edd1357.json index 819090167..242d34cfe 100644 --- a/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeCpuPercentage_473c5450-95cc-4f86-bb8a-d0a06edd1357.json +++ b/services/DataFactory/factories/templates/policy-arm/IntegrationRuntimeCpuPercentage_473c5450-95cc-4f86-bb8a-d0a06edd1357.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories IntegrationRuntimeCpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeCpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories IntegrationRuntimeCpuPercentage Alert", - "description": "Policy to Audit/Deploy DataFactory factories IntegrationRuntimeCpuPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/MaxAllowedFactorySizeInGbUnits_71d5d464-ae1c-4383-835f-bb7369e307ea.json b/services/DataFactory/factories/templates/policy-arm/MaxAllowedFactorySizeInGbUnits_71d5d464-ae1c-4383-835f-bb7369e307ea.json index b9aa96bd4..2fdad55f1 100644 --- a/services/DataFactory/factories/templates/policy-arm/MaxAllowedFactorySizeInGbUnits_71d5d464-ae1c-4383-835f-bb7369e307ea.json +++ b/services/DataFactory/factories/templates/policy-arm/MaxAllowedFactorySizeInGbUnits_71d5d464-ae1c-4383-835f-bb7369e307ea.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories MaxAllowedFactorySizeInGbUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories MaxAllowedFactorySizeInGbUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories MaxAllowedFactorySizeInGbUnits Alert", - "description": "Policy to Audit/Deploy DataFactory factories MaxAllowedFactorySizeInGbUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/MaxAllowedResourceCount_a678b284-d23b-46e4-a8fa-75bb744a53bb.json b/services/DataFactory/factories/templates/policy-arm/MaxAllowedResourceCount_a678b284-d23b-46e4-a8fa-75bb744a53bb.json index 7038648a8..67b04d8aa 100644 --- a/services/DataFactory/factories/templates/policy-arm/MaxAllowedResourceCount_a678b284-d23b-46e4-a8fa-75bb744a53bb.json +++ b/services/DataFactory/factories/templates/policy-arm/MaxAllowedResourceCount_a678b284-d23b-46e4-a8fa-75bb744a53bb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories MaxAllowedResourceCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories MaxAllowedResourceCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories MaxAllowedResourceCount Alert", - "description": "Policy to Audit/Deploy DataFactory factories MaxAllowedResourceCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/PipelineCancelledRuns_f5e0a050-1994-4864-b2c3-a09dc77fb5b4.json b/services/DataFactory/factories/templates/policy-arm/PipelineCancelledRuns_f5e0a050-1994-4864-b2c3-a09dc77fb5b4.json index e62ef25a6..4e467e876 100644 --- a/services/DataFactory/factories/templates/policy-arm/PipelineCancelledRuns_f5e0a050-1994-4864-b2c3-a09dc77fb5b4.json +++ b/services/DataFactory/factories/templates/policy-arm/PipelineCancelledRuns_f5e0a050-1994-4864-b2c3-a09dc77fb5b4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories PipelineCancelledRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories PipelineCancelledRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories PipelineCancelledRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories PipelineCancelledRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/PipelineElapsedTimeRuns_df4f3e6f-757e-4fa0-a411-b2cdf4039649.json b/services/DataFactory/factories/templates/policy-arm/PipelineElapsedTimeRuns_df4f3e6f-757e-4fa0-a411-b2cdf4039649.json index 1b0a72de5..3231fb8a5 100644 --- a/services/DataFactory/factories/templates/policy-arm/PipelineElapsedTimeRuns_df4f3e6f-757e-4fa0-a411-b2cdf4039649.json +++ b/services/DataFactory/factories/templates/policy-arm/PipelineElapsedTimeRuns_df4f3e6f-757e-4fa0-a411-b2cdf4039649.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories PipelineElapsedTimeRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories PipelineElapsedTimeRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories PipelineElapsedTimeRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories PipelineElapsedTimeRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/PipelineFailedRuns_2dd0b760-3235-479d-86d4-c152ca76b7e8.json b/services/DataFactory/factories/templates/policy-arm/PipelineFailedRuns_2dd0b760-3235-479d-86d4-c152ca76b7e8.json index cd659c6ac..37fa0ad1a 100644 --- a/services/DataFactory/factories/templates/policy-arm/PipelineFailedRuns_2dd0b760-3235-479d-86d4-c152ca76b7e8.json +++ b/services/DataFactory/factories/templates/policy-arm/PipelineFailedRuns_2dd0b760-3235-479d-86d4-c152ca76b7e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories PipelineFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories PipelineFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories PipelineFailedRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories PipelineFailedRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/PipelineSucceededRuns_47615ecc-bf5d-47e2-8c10-f8411e6c5d56.json b/services/DataFactory/factories/templates/policy-arm/PipelineSucceededRuns_47615ecc-bf5d-47e2-8c10-f8411e6c5d56.json index c777d116b..2dd00dbb2 100644 --- a/services/DataFactory/factories/templates/policy-arm/PipelineSucceededRuns_47615ecc-bf5d-47e2-8c10-f8411e6c5d56.json +++ b/services/DataFactory/factories/templates/policy-arm/PipelineSucceededRuns_47615ecc-bf5d-47e2-8c10-f8411e6c5d56.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories PipelineSucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories PipelineSucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories PipelineSucceededRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories PipelineSucceededRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/ResourceCount_740b104c-1ad2-4ef7-bafc-c98f22551548.json b/services/DataFactory/factories/templates/policy-arm/ResourceCount_740b104c-1ad2-4ef7-bafc-c98f22551548.json index 374ce952d..191d67e6a 100644 --- a/services/DataFactory/factories/templates/policy-arm/ResourceCount_740b104c-1ad2-4ef7-bafc-c98f22551548.json +++ b/services/DataFactory/factories/templates/policy-arm/ResourceCount_740b104c-1ad2-4ef7-bafc-c98f22551548.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories ResourceCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories ResourceCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories ResourceCount Alert", - "description": "Policy to Audit/Deploy DataFactory factories ResourceCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/SSISIntegrationRuntimeStartFailed_5f2a0272-792a-4cdd-ba94-9f46db438a0e.json b/services/DataFactory/factories/templates/policy-arm/SSISIntegrationRuntimeStartFailed_5f2a0272-792a-4cdd-ba94-9f46db438a0e.json index 072dd846e..cf683fa51 100644 --- a/services/DataFactory/factories/templates/policy-arm/SSISIntegrationRuntimeStartFailed_5f2a0272-792a-4cdd-ba94-9f46db438a0e.json +++ b/services/DataFactory/factories/templates/policy-arm/SSISIntegrationRuntimeStartFailed_5f2a0272-792a-4cdd-ba94-9f46db438a0e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories SSISIntegrationRuntimeStartFailed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories SSISIntegrationRuntimeStartFailed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories SSISIntegrationRuntimeStartFailed Alert", - "description": "Policy to Audit/Deploy DataFactory factories SSISIntegrationRuntimeStartFailed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/SSISPackageExecutionFailed_c30b6089-59c5-4452-b382-d33152be9b03.json b/services/DataFactory/factories/templates/policy-arm/SSISPackageExecutionFailed_c30b6089-59c5-4452-b382-d33152be9b03.json index d4e35b240..de4ca0684 100644 --- a/services/DataFactory/factories/templates/policy-arm/SSISPackageExecutionFailed_c30b6089-59c5-4452-b382-d33152be9b03.json +++ b/services/DataFactory/factories/templates/policy-arm/SSISPackageExecutionFailed_c30b6089-59c5-4452-b382-d33152be9b03.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories SSISPackageExecutionFailed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories SSISPackageExecutionFailed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories SSISPackageExecutionFailed Alert", - "description": "Policy to Audit/Deploy DataFactory factories SSISPackageExecutionFailed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/TriggerFailedRuns_9c7bde49-f0c2-4a07-b150-5dc9464fcf29.json b/services/DataFactory/factories/templates/policy-arm/TriggerFailedRuns_9c7bde49-f0c2-4a07-b150-5dc9464fcf29.json index c7ec11813..5036b0a94 100644 --- a/services/DataFactory/factories/templates/policy-arm/TriggerFailedRuns_9c7bde49-f0c2-4a07-b150-5dc9464fcf29.json +++ b/services/DataFactory/factories/templates/policy-arm/TriggerFailedRuns_9c7bde49-f0c2-4a07-b150-5dc9464fcf29.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories TriggerFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories TriggerFailedRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories TriggerFailedRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories TriggerFailedRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DataFactory/factories/templates/policy-arm/TriggerSucceededRuns_b8286cfa-9f86-4309-954b-ef69a6d8982d.json b/services/DataFactory/factories/templates/policy-arm/TriggerSucceededRuns_b8286cfa-9f86-4309-954b-ef69a6d8982d.json index 2b9548c2b..bf53e60ce 100644 --- a/services/DataFactory/factories/templates/policy-arm/TriggerSucceededRuns_b8286cfa-9f86-4309-954b-ef69a6d8982d.json +++ b/services/DataFactory/factories/templates/policy-arm/TriggerSucceededRuns_b8286cfa-9f86-4309-954b-ef69a6d8982d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DataFactory factories TriggerSucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DataFactory factories TriggerSucceededRuns Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DataFactory factories TriggerSucceededRuns Alert", - "description": "Policy to Audit/Deploy DataFactory factories TriggerSucceededRuns Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DataFactory", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryegressdropped_d5a028d1-ae0e-4349-8a79-630f891c8235.json b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryegressdropped_d5a028d1-ae0e-4349-8a79-630f891c8235.json index 0074c4db5..7d470eb3a 100644 --- a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryegressdropped_d5a028d1-ae0e-4349-8a79-630f891c8235.json +++ b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryegressdropped_d5a028d1-ae0e-4349-8a79-630f891c8235.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Devices IotHubs d2c.telemetry.egress.dropped Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.egress.dropped Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Devices IotHubs d2c.telemetry.egress.dropped Alert", - "description": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.egress.dropped Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Devices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssendThrottle_65deae31-85e8-477a-b17e-50d2d10cd7b0.json b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssendThrottle_65deae31-85e8-477a-b17e-50d2d10cd7b0.json index 42adc7011..664fcbcbb 100644 --- a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssendThrottle_65deae31-85e8-477a-b17e-50d2d10cd7b0.json +++ b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssendThrottle_65deae31-85e8-477a-b17e-50d2d10cd7b0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Devices IotHubs d2c.telemetry.ingress.sendThrottle Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.ingress.sendThrottle Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Devices IotHubs d2c.telemetry.ingress.sendThrottle Alert", - "description": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.ingress.sendThrottle Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Devices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssuccess_85de8003-c1d8-4cd1-80b5-e125399ef293.json b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssuccess_85de8003-c1d8-4cd1-80b5-e125399ef293.json index ac34dbf26..d7294ae19 100644 --- a/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssuccess_85de8003-c1d8-4cd1-80b5-e125399ef293.json +++ b/services/Devices/IotHubs/templates/policy-arm/d2ctelemetryingresssuccess_85de8003-c1d8-4cd1-80b5-e125399ef293.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Devices IotHubs d2c.telemetry.ingress.success Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.ingress.success Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Devices IotHubs d2c.telemetry.ingress.success Alert", - "description": "Policy to Audit/Deploy Devices IotHubs d2c.telemetry.ingress.success Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Devices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Devices/IotHubs/templates/policy-arm/dailyMessageQuotaUsed_d78fc655-68ca-4877-ac60-7fc805f1ae94.json b/services/Devices/IotHubs/templates/policy-arm/dailyMessageQuotaUsed_d78fc655-68ca-4877-ac60-7fc805f1ae94.json index a52b23553..1945bdfcc 100644 --- a/services/Devices/IotHubs/templates/policy-arm/dailyMessageQuotaUsed_d78fc655-68ca-4877-ac60-7fc805f1ae94.json +++ b/services/Devices/IotHubs/templates/policy-arm/dailyMessageQuotaUsed_d78fc655-68ca-4877-ac60-7fc805f1ae94.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Devices IotHubs dailyMessageQuotaUsed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Devices IotHubs dailyMessageQuotaUsed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Devices IotHubs dailyMessageQuotaUsed Alert", - "description": "Policy to Audit/Deploy Devices IotHubs dailyMessageQuotaUsed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Devices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/DataUsage_0914c189-0adc-45d6-8704-d2ae73b9b7b6.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/DataUsage_0914c189-0adc-45d6-8704-d2ae73b9b7b6.json index 90fa8758f..18a176480 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/DataUsage_0914c189-0adc-45d6-8704-d2ae73b9b7b6.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/DataUsage_0914c189-0adc-45d6-8704-d2ae73b9b7b6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts DataUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts DataUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts DataUsage Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts DataUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/MongoRequests_3f30e3aa-7e17-4eaf-a437-a420f5a23bf2.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/MongoRequests_3f30e3aa-7e17-4eaf-a437-a420f5a23bf2.json index b96819f82..6cc3d1bfd 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/MongoRequests_3f30e3aa-7e17-4eaf-a437-a420f5a23bf2.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/MongoRequests_3f30e3aa-7e17-4eaf-a437-a420f5a23bf2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts MongoRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts MongoRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts MongoRequests Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts MongoRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/NormalizedRUConsumption_9bae539a-12ed-46e2-b105-101ce036c9a4.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/NormalizedRUConsumption_9bae539a-12ed-46e2-b105-101ce036c9a4.json index a98c41d03..40a7db8df 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/NormalizedRUConsumption_9bae539a-12ed-46e2-b105-101ce036c9a4.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/NormalizedRUConsumption_9bae539a-12ed-46e2-b105-101ce036c9a4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts NormalizedRUConsumption Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts NormalizedRUConsumption Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts NormalizedRUConsumption Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts NormalizedRUConsumption Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/OfflineRegion_0cb53be3-76b5-44be-9f32-bcc821be34b6.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/OfflineRegion_0cb53be3-76b5-44be-9f32-bcc821be34b6.json index 10721a340..74a9f016c 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/OfflineRegion_0cb53be3-76b5-44be-9f32-bcc821be34b6.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/OfflineRegion_0cb53be3-76b5-44be-9f32-bcc821be34b6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts OfflineRegion Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts OfflineRegion Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts OfflineRegion Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts OfflineRegion Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/ProvisionedThroughput_f77ce9c2-bb95-47e7-8e5d-75d5c098f489.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/ProvisionedThroughput_f77ce9c2-bb95-47e7-8e5d-75d5c098f489.json index 5aab49dcc..90191e302 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/ProvisionedThroughput_f77ce9c2-bb95-47e7-8e5d-75d5c098f489.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/ProvisionedThroughput_f77ce9c2-bb95-47e7-8e5d-75d5c098f489.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts ProvisionedThroughput Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts ProvisionedThroughput Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts ProvisionedThroughput Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts ProvisionedThroughput Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/RegionFailover_9c41c539-b81b-4917-b04a-e67225f78e75.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/RegionFailover_9c41c539-b81b-4917-b04a-e67225f78e75.json index 1811df2f0..1ef5d7e44 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/RegionFailover_9c41c539-b81b-4917-b04a-e67225f78e75.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/RegionFailover_9c41c539-b81b-4917-b04a-e67225f78e75.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts RegionFailover Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts RegionFailover Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts RegionFailover Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts RegionFailover Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/RemoveRegion_228e104f-002a-441d-91ec-6140f233c1a4.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/RemoveRegion_228e104f-002a-441d-91ec-6140f233c1a4.json index 354eff399..7b5068a13 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/RemoveRegion_228e104f-002a-441d-91ec-6140f233c1a4.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/RemoveRegion_228e104f-002a-441d-91ec-6140f233c1a4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts RemoveRegion Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts RemoveRegion Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts RemoveRegion Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts RemoveRegion Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/ReplicationLatency_cf0655a4-042d-4979-bbc7-5559eaa8f2b9.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/ReplicationLatency_cf0655a4-042d-4979-bbc7-5559eaa8f2b9.json index 2fdc46e4e..fedcf0537 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/ReplicationLatency_cf0655a4-042d-4979-bbc7-5559eaa8f2b9.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/ReplicationLatency_cf0655a4-042d-4979-bbc7-5559eaa8f2b9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts ReplicationLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts ReplicationLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts ReplicationLatency Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts ReplicationLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/ServerSideLatency_28f2e10d-2297-47f9-ac6a-c7a8cc0c8ead.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/ServerSideLatency_28f2e10d-2297-47f9-ac6a-c7a8cc0c8ead.json index 2a9751323..91249e49d 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/ServerSideLatency_28f2e10d-2297-47f9-ac6a-c7a8cc0c8ead.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/ServerSideLatency_28f2e10d-2297-47f9-ac6a-c7a8cc0c8ead.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts ServerSideLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts ServerSideLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts ServerSideLatency Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts ServerSideLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/ServiceAvailability_ee10b769-b38b-44d1-9fd3-926b8dca4c41.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/ServiceAvailability_ee10b769-b38b-44d1-9fd3-926b8dca4c41.json index 02066940f..e72692b62 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/ServiceAvailability_ee10b769-b38b-44d1-9fd3-926b8dca4c41.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/ServiceAvailability_ee10b769-b38b-44d1-9fd3-926b8dca4c41.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts ServiceAvailability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts ServiceAvailability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts ServiceAvailability Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts ServiceAvailability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlContainerDelete_faf5510e-28b7-42c9-8ad1-de68a5737eaf.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlContainerDelete_faf5510e-28b7-42c9-8ad1-de68a5737eaf.json index 8e119b291..cce2f4391 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlContainerDelete_faf5510e-28b7-42c9-8ad1-de68a5737eaf.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlContainerDelete_faf5510e-28b7-42c9-8ad1-de68a5737eaf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts SqlContainerDelete Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts SqlContainerDelete Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts SqlContainerDelete Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts SqlContainerDelete Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlDatabaseDelete_a7958120-a386-46d0-9790-e80bfa72fb22.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlDatabaseDelete_a7958120-a386-46d0-9790-e80bfa72fb22.json index cd3e59644..38efac5c5 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlDatabaseDelete_a7958120-a386-46d0-9790-e80bfa72fb22.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/SqlDatabaseDelete_a7958120-a386-46d0-9790-e80bfa72fb22.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts SqlDatabaseDelete Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts SqlDatabaseDelete Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts SqlDatabaseDelete Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts SqlDatabaseDelete Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequestUnits_14fc7c6b-484f-427f-a1d2-94cded799f88.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequestUnits_14fc7c6b-484f-427f-a1d2-94cded799f88.json index cd0ccb3e4..90cdd2e59 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequestUnits_14fc7c6b-484f-427f-a1d2-94cded799f88.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequestUnits_14fc7c6b-484f-427f-a1d2-94cded799f88.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts TotalRequestUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts TotalRequestUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts TotalRequestUnits Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts TotalRequestUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequests_2a1deb2d-1fc0-499b-a828-04aeece855fe.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequests_2a1deb2d-1fc0-499b-a828-04aeece855fe.json index 53bcdc1f6..58384337b 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequests_2a1deb2d-1fc0-499b-a828-04aeece855fe.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/TotalRequests_2a1deb2d-1fc0-499b-a828-04aeece855fe.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts TotalRequests Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts TotalRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/DocumentDB/databaseAccounts/templates/policy-arm/UpdateAccountKeys_d4d7685a-ce55-4709-a847-747d02165cb7.json b/services/DocumentDB/databaseAccounts/templates/policy-arm/UpdateAccountKeys_d4d7685a-ce55-4709-a847-747d02165cb7.json index 38e2b5b2e..e84bccfe5 100644 --- a/services/DocumentDB/databaseAccounts/templates/policy-arm/UpdateAccountKeys_d4d7685a-ce55-4709-a847-747d02165cb7.json +++ b/services/DocumentDB/databaseAccounts/templates/policy-arm/UpdateAccountKeys_d4d7685a-ce55-4709-a847-747d02165cb7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy DocumentDB databaseAccounts UpdateAccountKeys Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy DocumentDB databaseAccounts UpdateAccountKeys Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy DocumentDB databaseAccounts UpdateAccountKeys Alert", - "description": "Policy to Audit/Deploy DocumentDB databaseAccounts UpdateAccountKeys Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "DocumentDB", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/domains/templates/policy-arm/DeliveryAttemptFailCount_51ff86c0-2add-42e0-aab8-f6f0edcf2b51.json b/services/EventGrid/domains/templates/policy-arm/DeliveryAttemptFailCount_51ff86c0-2add-42e0-aab8-f6f0edcf2b51.json index 34af3ca87..c698f6b62 100644 --- a/services/EventGrid/domains/templates/policy-arm/DeliveryAttemptFailCount_51ff86c0-2add-42e0-aab8-f6f0edcf2b51.json +++ b/services/EventGrid/domains/templates/policy-arm/DeliveryAttemptFailCount_51ff86c0-2add-42e0-aab8-f6f0edcf2b51.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid domains DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid domains DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid domains DeliveryAttemptFailCount Alert", - "description": "Policy to Audit/Deploy EventGrid domains DeliveryAttemptFailCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/systemTopics/templates/policy-arm/DeadLetteredCount_c02f2d18-2b7e-4d85-81fa-2c1437d0b092.json b/services/EventGrid/systemTopics/templates/policy-arm/DeadLetteredCount_c02f2d18-2b7e-4d85-81fa-2c1437d0b092.json index 12f6ed90a..acb2c3496 100644 --- a/services/EventGrid/systemTopics/templates/policy-arm/DeadLetteredCount_c02f2d18-2b7e-4d85-81fa-2c1437d0b092.json +++ b/services/EventGrid/systemTopics/templates/policy-arm/DeadLetteredCount_c02f2d18-2b7e-4d85-81fa-2c1437d0b092.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid systemTopics DeadLetteredCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid systemTopics DeadLetteredCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid systemTopics DeadLetteredCount Alert", - "description": "Policy to Audit/Deploy EventGrid systemTopics DeadLetteredCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/systemTopics/templates/policy-arm/DeliveryAttemptFailCount_6584a39d-0795-4132-8c33-376d3926d21b.json b/services/EventGrid/systemTopics/templates/policy-arm/DeliveryAttemptFailCount_6584a39d-0795-4132-8c33-376d3926d21b.json index 0e70c05ec..bbe93edad 100644 --- a/services/EventGrid/systemTopics/templates/policy-arm/DeliveryAttemptFailCount_6584a39d-0795-4132-8c33-376d3926d21b.json +++ b/services/EventGrid/systemTopics/templates/policy-arm/DeliveryAttemptFailCount_6584a39d-0795-4132-8c33-376d3926d21b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid systemTopics DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid systemTopics DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid systemTopics DeliveryAttemptFailCount Alert", - "description": "Policy to Audit/Deploy EventGrid systemTopics DeliveryAttemptFailCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/systemTopics/templates/policy-arm/PublishFailCount_fb8bc2ae-26bc-45a1-b616-1f45ffb864ae.json b/services/EventGrid/systemTopics/templates/policy-arm/PublishFailCount_fb8bc2ae-26bc-45a1-b616-1f45ffb864ae.json index e8f184af6..16fc57103 100644 --- a/services/EventGrid/systemTopics/templates/policy-arm/PublishFailCount_fb8bc2ae-26bc-45a1-b616-1f45ffb864ae.json +++ b/services/EventGrid/systemTopics/templates/policy-arm/PublishFailCount_fb8bc2ae-26bc-45a1-b616-1f45ffb864ae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid systemTopics PublishFailCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid systemTopics PublishFailCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid systemTopics PublishFailCount Alert", - "description": "Policy to Audit/Deploy EventGrid systemTopics PublishFailCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/topics/templates/policy-arm/DeadLetteredCount_343258f9-4bb2-41fb-abfa-d04ea62a6aad.json b/services/EventGrid/topics/templates/policy-arm/DeadLetteredCount_343258f9-4bb2-41fb-abfa-d04ea62a6aad.json index ad75c7106..8ad974fe6 100644 --- a/services/EventGrid/topics/templates/policy-arm/DeadLetteredCount_343258f9-4bb2-41fb-abfa-d04ea62a6aad.json +++ b/services/EventGrid/topics/templates/policy-arm/DeadLetteredCount_343258f9-4bb2-41fb-abfa-d04ea62a6aad.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid topics DeadLetteredCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid topics DeadLetteredCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid topics DeadLetteredCount Alert", - "description": "Policy to Audit/Deploy EventGrid topics DeadLetteredCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/topics/templates/policy-arm/DeliveryAttemptFailCount_95865d3b-41d0-4ad6-b08b-a2dcfe0940a9.json b/services/EventGrid/topics/templates/policy-arm/DeliveryAttemptFailCount_95865d3b-41d0-4ad6-b08b-a2dcfe0940a9.json index 779cd0279..6db7fcf5f 100644 --- a/services/EventGrid/topics/templates/policy-arm/DeliveryAttemptFailCount_95865d3b-41d0-4ad6-b08b-a2dcfe0940a9.json +++ b/services/EventGrid/topics/templates/policy-arm/DeliveryAttemptFailCount_95865d3b-41d0-4ad6-b08b-a2dcfe0940a9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid topics DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid topics DeliveryAttemptFailCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid topics DeliveryAttemptFailCount Alert", - "description": "Policy to Audit/Deploy EventGrid topics DeliveryAttemptFailCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/topics/templates/policy-arm/DroppedEventCount_e9561f89-282e-4145-b5cc-8485a7fc987c.json b/services/EventGrid/topics/templates/policy-arm/DroppedEventCount_e9561f89-282e-4145-b5cc-8485a7fc987c.json index 9b0a6216a..6b1eade57 100644 --- a/services/EventGrid/topics/templates/policy-arm/DroppedEventCount_e9561f89-282e-4145-b5cc-8485a7fc987c.json +++ b/services/EventGrid/topics/templates/policy-arm/DroppedEventCount_e9561f89-282e-4145-b5cc-8485a7fc987c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid topics DroppedEventCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid topics DroppedEventCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid topics DroppedEventCount Alert", - "description": "Policy to Audit/Deploy EventGrid topics DroppedEventCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventGrid/topics/templates/policy-arm/PublishFailCount_230c0173-8b36-4412-9617-3e096886a403.json b/services/EventGrid/topics/templates/policy-arm/PublishFailCount_230c0173-8b36-4412-9617-3e096886a403.json index 37ff13146..0ca2e8d64 100644 --- a/services/EventGrid/topics/templates/policy-arm/PublishFailCount_230c0173-8b36-4412-9617-3e096886a403.json +++ b/services/EventGrid/topics/templates/policy-arm/PublishFailCount_230c0173-8b36-4412-9617-3e096886a403.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventGrid topics PublishFailCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventGrid topics PublishFailCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventGrid topics PublishFailCount Alert", - "description": "Policy to Audit/Deploy EventGrid topics PublishFailCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventGrid", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/clusters/templates/policy-arm/CPU_8875590a-9f72-49a2-807f-62437f8079b1.json b/services/EventHub/clusters/templates/policy-arm/CPU_8875590a-9f72-49a2-807f-62437f8079b1.json index 22598aa42..8411485a4 100644 --- a/services/EventHub/clusters/templates/policy-arm/CPU_8875590a-9f72-49a2-807f-62437f8079b1.json +++ b/services/EventHub/clusters/templates/policy-arm/CPU_8875590a-9f72-49a2-807f-62437f8079b1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub clusters CPU Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub clusters CPU Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub clusters CPU Alert", - "description": "Policy to Audit/Deploy EventHub clusters CPU Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/CaptureBacklog_2959b52d-6756-480d-9193-b2c0c4c5d305.json b/services/EventHub/namespaces/templates/policy-arm/CaptureBacklog_2959b52d-6756-480d-9193-b2c0c4c5d305.json index 86b1d56ce..6751c0d0f 100644 --- a/services/EventHub/namespaces/templates/policy-arm/CaptureBacklog_2959b52d-6756-480d-9193-b2c0c4c5d305.json +++ b/services/EventHub/namespaces/templates/policy-arm/CaptureBacklog_2959b52d-6756-480d-9193-b2c0c4c5d305.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces CaptureBacklog Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces CaptureBacklog Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces CaptureBacklog Alert", - "description": "Policy to Audit/Deploy EventHub namespaces CaptureBacklog Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/IncomingBytes_2ca39ff3-6f87-438c-81f6-7ce51f70902f.json b/services/EventHub/namespaces/templates/policy-arm/IncomingBytes_2ca39ff3-6f87-438c-81f6-7ce51f70902f.json index 88213751f..93839146c 100644 --- a/services/EventHub/namespaces/templates/policy-arm/IncomingBytes_2ca39ff3-6f87-438c-81f6-7ce51f70902f.json +++ b/services/EventHub/namespaces/templates/policy-arm/IncomingBytes_2ca39ff3-6f87-438c-81f6-7ce51f70902f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces IncomingBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces IncomingBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces IncomingBytes Alert", - "description": "Policy to Audit/Deploy EventHub namespaces IncomingBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/IncomingMessages_4f1964ce-6938-499a-af3d-bb746aaff72a.json b/services/EventHub/namespaces/templates/policy-arm/IncomingMessages_4f1964ce-6938-499a-af3d-bb746aaff72a.json index 6d323bde1..2bd376183 100644 --- a/services/EventHub/namespaces/templates/policy-arm/IncomingMessages_4f1964ce-6938-499a-af3d-bb746aaff72a.json +++ b/services/EventHub/namespaces/templates/policy-arm/IncomingMessages_4f1964ce-6938-499a-af3d-bb746aaff72a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces IncomingMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces IncomingMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces IncomingMessages Alert", - "description": "Policy to Audit/Deploy EventHub namespaces IncomingMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/NamespaceCpuUsage_a9c1e74c-bd3a-438c-bd13-7a2fec2d172c.json b/services/EventHub/namespaces/templates/policy-arm/NamespaceCpuUsage_a9c1e74c-bd3a-438c-bd13-7a2fec2d172c.json index 97dd42588..4d246d836 100644 --- a/services/EventHub/namespaces/templates/policy-arm/NamespaceCpuUsage_a9c1e74c-bd3a-438c-bd13-7a2fec2d172c.json +++ b/services/EventHub/namespaces/templates/policy-arm/NamespaceCpuUsage_a9c1e74c-bd3a-438c-bd13-7a2fec2d172c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces NamespaceCpuUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces NamespaceCpuUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces NamespaceCpuUsage Alert", - "description": "Policy to Audit/Deploy EventHub namespaces NamespaceCpuUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/NamespaceMemoryUsage_26972609-fbb4-4fb9-b7f8-7b99a06bb4e3.json b/services/EventHub/namespaces/templates/policy-arm/NamespaceMemoryUsage_26972609-fbb4-4fb9-b7f8-7b99a06bb4e3.json index 736b01a66..50d57463d 100644 --- a/services/EventHub/namespaces/templates/policy-arm/NamespaceMemoryUsage_26972609-fbb4-4fb9-b7f8-7b99a06bb4e3.json +++ b/services/EventHub/namespaces/templates/policy-arm/NamespaceMemoryUsage_26972609-fbb4-4fb9-b7f8-7b99a06bb4e3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces NamespaceMemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces NamespaceMemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces NamespaceMemoryUsage Alert", - "description": "Policy to Audit/Deploy EventHub namespaces NamespaceMemoryUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/OutgoingBytes_46a66177-c487-4ed1-b2fc-19c0bf52b168.json b/services/EventHub/namespaces/templates/policy-arm/OutgoingBytes_46a66177-c487-4ed1-b2fc-19c0bf52b168.json index 13c8410b6..02890d2b5 100644 --- a/services/EventHub/namespaces/templates/policy-arm/OutgoingBytes_46a66177-c487-4ed1-b2fc-19c0bf52b168.json +++ b/services/EventHub/namespaces/templates/policy-arm/OutgoingBytes_46a66177-c487-4ed1-b2fc-19c0bf52b168.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces OutgoingBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces OutgoingBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces OutgoingBytes Alert", - "description": "Policy to Audit/Deploy EventHub namespaces OutgoingBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/OutgoingMessages_c67b86dc-74d5-4ea1-882e-de257d054ff3.json b/services/EventHub/namespaces/templates/policy-arm/OutgoingMessages_c67b86dc-74d5-4ea1-882e-de257d054ff3.json index d908f2e97..49e467436 100644 --- a/services/EventHub/namespaces/templates/policy-arm/OutgoingMessages_c67b86dc-74d5-4ea1-882e-de257d054ff3.json +++ b/services/EventHub/namespaces/templates/policy-arm/OutgoingMessages_c67b86dc-74d5-4ea1-882e-de257d054ff3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces OutgoingMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces OutgoingMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces OutgoingMessages Alert", - "description": "Policy to Audit/Deploy EventHub namespaces OutgoingMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/QuotaExceededErrors_237493ef-15c0-4e87-80bc-f8c59dd897ce.json b/services/EventHub/namespaces/templates/policy-arm/QuotaExceededErrors_237493ef-15c0-4e87-80bc-f8c59dd897ce.json index ed766ea02..65150db99 100644 --- a/services/EventHub/namespaces/templates/policy-arm/QuotaExceededErrors_237493ef-15c0-4e87-80bc-f8c59dd897ce.json +++ b/services/EventHub/namespaces/templates/policy-arm/QuotaExceededErrors_237493ef-15c0-4e87-80bc-f8c59dd897ce.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces QuotaExceededErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces QuotaExceededErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces QuotaExceededErrors Alert", - "description": "Policy to Audit/Deploy EventHub namespaces QuotaExceededErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/ServerErrors_48581aa9-53ee-4467-b04c-402061fe40e8.json b/services/EventHub/namespaces/templates/policy-arm/ServerErrors_48581aa9-53ee-4467-b04c-402061fe40e8.json index 6c3685b06..14b47bf97 100644 --- a/services/EventHub/namespaces/templates/policy-arm/ServerErrors_48581aa9-53ee-4467-b04c-402061fe40e8.json +++ b/services/EventHub/namespaces/templates/policy-arm/ServerErrors_48581aa9-53ee-4467-b04c-402061fe40e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces ServerErrors Alert", - "description": "Policy to Audit/Deploy EventHub namespaces ServerErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/ThrottledRequests_1684f387-04e6-440c-a931-f57efdc84cd2.json b/services/EventHub/namespaces/templates/policy-arm/ThrottledRequests_1684f387-04e6-440c-a931-f57efdc84cd2.json index 3d378ef18..5ac711765 100644 --- a/services/EventHub/namespaces/templates/policy-arm/ThrottledRequests_1684f387-04e6-440c-a931-f57efdc84cd2.json +++ b/services/EventHub/namespaces/templates/policy-arm/ThrottledRequests_1684f387-04e6-440c-a931-f57efdc84cd2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces ThrottledRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces ThrottledRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces ThrottledRequests Alert", - "description": "Policy to Audit/Deploy EventHub namespaces ThrottledRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/EventHub/namespaces/templates/policy-arm/UserErrors_b1700765-b168-4ad4-a73e-f3a93a6bf5cf.json b/services/EventHub/namespaces/templates/policy-arm/UserErrors_b1700765-b168-4ad4-a73e-f3a93a6bf5cf.json index 313280fb7..f437cf583 100644 --- a/services/EventHub/namespaces/templates/policy-arm/UserErrors_b1700765-b168-4ad4-a73e-f3a93a6bf5cf.json +++ b/services/EventHub/namespaces/templates/policy-arm/UserErrors_b1700765-b168-4ad4-a73e-f3a93a6bf5cf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy EventHub namespaces UserErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy EventHub namespaces UserErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy EventHub namespaces UserErrors Alert", - "description": "Policy to Audit/Deploy EventHub namespaces UserErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "EventHub", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/HealthcareApis/services/templates/policy-arm/TotalLatency_30ba09b3-4e96-403d-a295-8f37788914aa.json b/services/HealthcareApis/services/templates/policy-arm/TotalLatency_30ba09b3-4e96-403d-a295-8f37788914aa.json index 7f1e58771..bb96fa2c6 100644 --- a/services/HealthcareApis/services/templates/policy-arm/TotalLatency_30ba09b3-4e96-403d-a295-8f37788914aa.json +++ b/services/HealthcareApis/services/templates/policy-arm/TotalLatency_30ba09b3-4e96-403d-a295-8f37788914aa.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy HealthcareApis services TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy HealthcareApis services TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy HealthcareApis services TotalLatency Alert", - "description": "Policy to Audit/Deploy HealthcareApis services TotalLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "HealthcareApis", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/HealthcareApis/services/templates/policy-arm/TotalRequests_75dbbcf0-d6ae-401f-8765-ba643385da9b.json b/services/HealthcareApis/services/templates/policy-arm/TotalRequests_75dbbcf0-d6ae-401f-8765-ba643385da9b.json index bd6fb4bab..4a818b462 100644 --- a/services/HealthcareApis/services/templates/policy-arm/TotalRequests_75dbbcf0-d6ae-401f-8765-ba643385da9b.json +++ b/services/HealthcareApis/services/templates/policy-arm/TotalRequests_75dbbcf0-d6ae-401f-8765-ba643385da9b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy HealthcareApis services TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy HealthcareApis services TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy HealthcareApis services TotalRequests Alert", - "description": "Policy to Audit/Deploy HealthcareApis services TotalRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "HealthcareApis", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/KeyVault/vaults/templates/policy-arm/Availability_a3c8bcb4-22ca-45be-92f7-605f232ecec2.json b/services/KeyVault/vaults/templates/policy-arm/Availability_a3c8bcb4-22ca-45be-92f7-605f232ecec2.json index d634902e4..4bb7c6ba6 100644 --- a/services/KeyVault/vaults/templates/policy-arm/Availability_a3c8bcb4-22ca-45be-92f7-605f232ecec2.json +++ b/services/KeyVault/vaults/templates/policy-arm/Availability_a3c8bcb4-22ca-45be-92f7-605f232ecec2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy KeyVault Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy KeyVault Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy KeyVault Availability Alert", - "description": "Policy to Audit/Deploy KeyVault Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "KeyVault", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/KeyVault/vaults/templates/policy-arm/SaturationShoebox_dc852755-e5df-4fd0-83ac-cbbc516f60b3.json b/services/KeyVault/vaults/templates/policy-arm/SaturationShoebox_dc852755-e5df-4fd0-83ac-cbbc516f60b3.json index 0e2272b16..608ff109a 100644 --- a/services/KeyVault/vaults/templates/policy-arm/SaturationShoebox_dc852755-e5df-4fd0-83ac-cbbc516f60b3.json +++ b/services/KeyVault/vaults/templates/policy-arm/SaturationShoebox_dc852755-e5df-4fd0-83ac-cbbc516f60b3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy KeyVault Capacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy KeyVault Capacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy KeyVault Capacity Alert", - "description": "Policy to Audit/Deploy KeyVault Capacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "KeyVault", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/KeyVault/vaults/templates/policy-arm/ServiceApiHit_7b52bf07-3d86-4429-b5d4-829a6a5542df.json b/services/KeyVault/vaults/templates/policy-arm/ServiceApiHit_7b52bf07-3d86-4429-b5d4-829a6a5542df.json index eb879671f..85ecc758e 100644 --- a/services/KeyVault/vaults/templates/policy-arm/ServiceApiHit_7b52bf07-3d86-4429-b5d4-829a6a5542df.json +++ b/services/KeyVault/vaults/templates/policy-arm/ServiceApiHit_7b52bf07-3d86-4429-b5d4-829a6a5542df.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy KeyVault vaults ServiceApiHit Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy KeyVault vaults ServiceApiHit Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy KeyVault vaults ServiceApiHit Alert", - "description": "Policy to Audit/Deploy KeyVault vaults ServiceApiHit Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "KeyVault", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/KeyVault/vaults/templates/policy-arm/ServiceApiLatency_2651f57f-ac74-44f3-8511-c245488134f8.json b/services/KeyVault/vaults/templates/policy-arm/ServiceApiLatency_2651f57f-ac74-44f3-8511-c245488134f8.json index ef74beaf8..8ce0c43a1 100644 --- a/services/KeyVault/vaults/templates/policy-arm/ServiceApiLatency_2651f57f-ac74-44f3-8511-c245488134f8.json +++ b/services/KeyVault/vaults/templates/policy-arm/ServiceApiLatency_2651f57f-ac74-44f3-8511-c245488134f8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy KeyVault Latency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy KeyVault Latency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy KeyVault Latency Alert", - "description": "Policy to Audit/Deploy KeyVault Latency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "KeyVault", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/KeyVault/vaults/templates/policy-arm/ServiceApiResult_14356b19-1264-498d-b1cd-e3fa9f0c9fc9.json b/services/KeyVault/vaults/templates/policy-arm/ServiceApiResult_14356b19-1264-498d-b1cd-e3fa9f0c9fc9.json index e515f642f..a075bb96e 100644 --- a/services/KeyVault/vaults/templates/policy-arm/ServiceApiResult_14356b19-1264-498d-b1cd-e3fa9f0c9fc9.json +++ b/services/KeyVault/vaults/templates/policy-arm/ServiceApiResult_14356b19-1264-498d-b1cd-e3fa9f0c9fc9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy KeyVault Requests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy KeyVault Requests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy KeyVault Requests Alert", - "description": "Policy to Audit/Deploy KeyVault Requests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "KeyVault", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/BlobsDropped_422c292e-54e3-4e7d-93e2-bcd1bf65dae6.json b/services/Kusto/clusters/templates/policy-arm/BlobsDropped_422c292e-54e3-4e7d-93e2-bcd1bf65dae6.json index be2a3fa2a..e0ab866ce 100644 --- a/services/Kusto/clusters/templates/policy-arm/BlobsDropped_422c292e-54e3-4e7d-93e2-bcd1bf65dae6.json +++ b/services/Kusto/clusters/templates/policy-arm/BlobsDropped_422c292e-54e3-4e7d-93e2-bcd1bf65dae6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters BlobsDropped Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters BlobsDropped Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters BlobsDropped Alert", - "description": "Policy to Audit/Deploy Kusto clusters BlobsDropped Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/CPU_cae6ec0a-a26d-494b-94b2-3d93dcedff42.json b/services/Kusto/clusters/templates/policy-arm/CPU_cae6ec0a-a26d-494b-94b2-3d93dcedff42.json index b075557cf..84891d876 100644 --- a/services/Kusto/clusters/templates/policy-arm/CPU_cae6ec0a-a26d-494b-94b2-3d93dcedff42.json +++ b/services/Kusto/clusters/templates/policy-arm/CPU_cae6ec0a-a26d-494b-94b2-3d93dcedff42.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters CPU Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters CPU Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters CPU Alert", - "description": "Policy to Audit/Deploy Kusto clusters CPU Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/IngestionLatencyInSeconds_8493c362-2524-4079-9025-8f5ffee62936.json b/services/Kusto/clusters/templates/policy-arm/IngestionLatencyInSeconds_8493c362-2524-4079-9025-8f5ffee62936.json index 7ce77eba2..94d72b7f2 100644 --- a/services/Kusto/clusters/templates/policy-arm/IngestionLatencyInSeconds_8493c362-2524-4079-9025-8f5ffee62936.json +++ b/services/Kusto/clusters/templates/policy-arm/IngestionLatencyInSeconds_8493c362-2524-4079-9025-8f5ffee62936.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters IngestionLatencyInSeconds Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters IngestionLatencyInSeconds Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters IngestionLatencyInSeconds Alert", - "description": "Policy to Audit/Deploy Kusto clusters IngestionLatencyInSeconds Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/IngestionResult_6c4213c5-743f-48b8-b957-dd26fbf8809e.json b/services/Kusto/clusters/templates/policy-arm/IngestionResult_6c4213c5-743f-48b8-b957-dd26fbf8809e.json index ef0cd80c1..f1b1e9bdb 100644 --- a/services/Kusto/clusters/templates/policy-arm/IngestionResult_6c4213c5-743f-48b8-b957-dd26fbf8809e.json +++ b/services/Kusto/clusters/templates/policy-arm/IngestionResult_6c4213c5-743f-48b8-b957-dd26fbf8809e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters IngestionResult Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters IngestionResult Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters IngestionResult Alert", - "description": "Policy to Audit/Deploy Kusto clusters IngestionResult Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/KeepAlive_188fc0b5-a686-48a7-950f-76f183ba49d6.json b/services/Kusto/clusters/templates/policy-arm/KeepAlive_188fc0b5-a686-48a7-950f-76f183ba49d6.json index b9cd26b90..aa97060ce 100644 --- a/services/Kusto/clusters/templates/policy-arm/KeepAlive_188fc0b5-a686-48a7-950f-76f183ba49d6.json +++ b/services/Kusto/clusters/templates/policy-arm/KeepAlive_188fc0b5-a686-48a7-950f-76f183ba49d6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters KeepAlive Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters KeepAlive Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters KeepAlive Alert", - "description": "Policy to Audit/Deploy Kusto clusters KeepAlive Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Kusto/clusters/templates/policy-arm/QueryResult_b131dc45-d6ac-4521-8206-a365ac2dbe52.json b/services/Kusto/clusters/templates/policy-arm/QueryResult_b131dc45-d6ac-4521-8206-a365ac2dbe52.json index 33f70d098..d09c04a12 100644 --- a/services/Kusto/clusters/templates/policy-arm/QueryResult_b131dc45-d6ac-4521-8206-a365ac2dbe52.json +++ b/services/Kusto/clusters/templates/policy-arm/QueryResult_b131dc45-d6ac-4521-8206-a365ac2dbe52.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Kusto clusters QueryResult Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Kusto clusters QueryResult Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Kusto clusters QueryResult Alert", - "description": "Policy to Audit/Deploy Kusto clusters QueryResult Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Kusto", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/ActionLatency_d8bf77d2-8572-4392-8097-5e84f136513d.json b/services/Logic/workflows/templates/policy-arm/ActionLatency_d8bf77d2-8572-4392-8097-5e84f136513d.json index d471309ce..1827ebabe 100644 --- a/services/Logic/workflows/templates/policy-arm/ActionLatency_d8bf77d2-8572-4392-8097-5e84f136513d.json +++ b/services/Logic/workflows/templates/policy-arm/ActionLatency_d8bf77d2-8572-4392-8097-5e84f136513d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows ActionLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows ActionLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows ActionLatency Alert", - "description": "Policy to Audit/Deploy Logic workflows ActionLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/ActionThrottledEvents_5aa5790b-2bff-40b0-9099-38485b9a9e0a.json b/services/Logic/workflows/templates/policy-arm/ActionThrottledEvents_5aa5790b-2bff-40b0-9099-38485b9a9e0a.json index fc0a205f9..2677f4d51 100644 --- a/services/Logic/workflows/templates/policy-arm/ActionThrottledEvents_5aa5790b-2bff-40b0-9099-38485b9a9e0a.json +++ b/services/Logic/workflows/templates/policy-arm/ActionThrottledEvents_5aa5790b-2bff-40b0-9099-38485b9a9e0a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows ActionThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows ActionThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows ActionThrottledEvents Alert", - "description": "Policy to Audit/Deploy Logic workflows ActionThrottledEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/ActionsFailed_514f695a-4f11-4a28-9516-f7f3b5b1c53b.json b/services/Logic/workflows/templates/policy-arm/ActionsFailed_514f695a-4f11-4a28-9516-f7f3b5b1c53b.json index eb9844153..646e6b568 100644 --- a/services/Logic/workflows/templates/policy-arm/ActionsFailed_514f695a-4f11-4a28-9516-f7f3b5b1c53b.json +++ b/services/Logic/workflows/templates/policy-arm/ActionsFailed_514f695a-4f11-4a28-9516-f7f3b5b1c53b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows ActionsFailed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows ActionsFailed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows ActionsFailed Alert", - "description": "Policy to Audit/Deploy Logic workflows ActionsFailed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunFailurePercentage_c4864d80-dd28-4344-a135-03b600920c06.json b/services/Logic/workflows/templates/policy-arm/RunFailurePercentage_c4864d80-dd28-4344-a135-03b600920c06.json index cde02e0fb..037846247 100644 --- a/services/Logic/workflows/templates/policy-arm/RunFailurePercentage_c4864d80-dd28-4344-a135-03b600920c06.json +++ b/services/Logic/workflows/templates/policy-arm/RunFailurePercentage_c4864d80-dd28-4344-a135-03b600920c06.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunFailurePercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunFailurePercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunFailurePercentage Alert", - "description": "Policy to Audit/Deploy Logic workflows RunFailurePercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunLatency_eb44cbdc-a259-4354-9b54-2bc72f811440.json b/services/Logic/workflows/templates/policy-arm/RunLatency_eb44cbdc-a259-4354-9b54-2bc72f811440.json index 007130ce4..9c8e37eeb 100644 --- a/services/Logic/workflows/templates/policy-arm/RunLatency_eb44cbdc-a259-4354-9b54-2bc72f811440.json +++ b/services/Logic/workflows/templates/policy-arm/RunLatency_eb44cbdc-a259-4354-9b54-2bc72f811440.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunLatency Alert", - "description": "Policy to Audit/Deploy Logic workflows RunLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunStartThrottledEvents_6524b22c-661e-48cd-87e7-7ee9ddea7b8b.json b/services/Logic/workflows/templates/policy-arm/RunStartThrottledEvents_6524b22c-661e-48cd-87e7-7ee9ddea7b8b.json index 03c3a1dce..b035a4c54 100644 --- a/services/Logic/workflows/templates/policy-arm/RunStartThrottledEvents_6524b22c-661e-48cd-87e7-7ee9ddea7b8b.json +++ b/services/Logic/workflows/templates/policy-arm/RunStartThrottledEvents_6524b22c-661e-48cd-87e7-7ee9ddea7b8b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunStartThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunStartThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunStartThrottledEvents Alert", - "description": "Policy to Audit/Deploy Logic workflows RunStartThrottledEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunSuccessLatency_346ba728-f7a1-4ca4-8486-786d6ebb9f9a.json b/services/Logic/workflows/templates/policy-arm/RunSuccessLatency_346ba728-f7a1-4ca4-8486-786d6ebb9f9a.json index b96693c8b..7c416e26d 100644 --- a/services/Logic/workflows/templates/policy-arm/RunSuccessLatency_346ba728-f7a1-4ca4-8486-786d6ebb9f9a.json +++ b/services/Logic/workflows/templates/policy-arm/RunSuccessLatency_346ba728-f7a1-4ca4-8486-786d6ebb9f9a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunSuccessLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunSuccessLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunSuccessLatency Alert", - "description": "Policy to Audit/Deploy Logic workflows RunSuccessLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunThrottledEvents_9d324d21-ab2b-48b7-a637-4b1d9891d6b5.json b/services/Logic/workflows/templates/policy-arm/RunThrottledEvents_9d324d21-ab2b-48b7-a637-4b1d9891d6b5.json index 6d75e86e9..3508b1ec6 100644 --- a/services/Logic/workflows/templates/policy-arm/RunThrottledEvents_9d324d21-ab2b-48b7-a637-4b1d9891d6b5.json +++ b/services/Logic/workflows/templates/policy-arm/RunThrottledEvents_9d324d21-ab2b-48b7-a637-4b1d9891d6b5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunThrottledEvents Alert", - "description": "Policy to Audit/Deploy Logic workflows RunThrottledEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunsCancelled_a4b5f1f3-aa12-4ed5-8a9d-a135204d22de.json b/services/Logic/workflows/templates/policy-arm/RunsCancelled_a4b5f1f3-aa12-4ed5-8a9d-a135204d22de.json index f584e8180..da0e46c1f 100644 --- a/services/Logic/workflows/templates/policy-arm/RunsCancelled_a4b5f1f3-aa12-4ed5-8a9d-a135204d22de.json +++ b/services/Logic/workflows/templates/policy-arm/RunsCancelled_a4b5f1f3-aa12-4ed5-8a9d-a135204d22de.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunsCancelled Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunsCancelled Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunsCancelled Alert", - "description": "Policy to Audit/Deploy Logic workflows RunsCancelled Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunsCompleted_5d020d4d-9359-4ecd-934a-409d0e4a5abd.json b/services/Logic/workflows/templates/policy-arm/RunsCompleted_5d020d4d-9359-4ecd-934a-409d0e4a5abd.json index 5bf7b6283..d6c826087 100644 --- a/services/Logic/workflows/templates/policy-arm/RunsCompleted_5d020d4d-9359-4ecd-934a-409d0e4a5abd.json +++ b/services/Logic/workflows/templates/policy-arm/RunsCompleted_5d020d4d-9359-4ecd-934a-409d0e4a5abd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunsCompleted Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunsCompleted Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunsCompleted Alert", - "description": "Policy to Audit/Deploy Logic workflows RunsCompleted Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunsFailed_350cc22f-d202-4c7c-9239-cbdb3b71e14b.json b/services/Logic/workflows/templates/policy-arm/RunsFailed_350cc22f-d202-4c7c-9239-cbdb3b71e14b.json index c82db2034..8c191094e 100644 --- a/services/Logic/workflows/templates/policy-arm/RunsFailed_350cc22f-d202-4c7c-9239-cbdb3b71e14b.json +++ b/services/Logic/workflows/templates/policy-arm/RunsFailed_350cc22f-d202-4c7c-9239-cbdb3b71e14b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunsFailed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunsFailed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunsFailed Alert", - "description": "Policy to Audit/Deploy Logic workflows RunsFailed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunsStarted_8f7a8cb8-feef-4eaa-9e74-18693ce9969e.json b/services/Logic/workflows/templates/policy-arm/RunsStarted_8f7a8cb8-feef-4eaa-9e74-18693ce9969e.json index 441d94637..cd37bac45 100644 --- a/services/Logic/workflows/templates/policy-arm/RunsStarted_8f7a8cb8-feef-4eaa-9e74-18693ce9969e.json +++ b/services/Logic/workflows/templates/policy-arm/RunsStarted_8f7a8cb8-feef-4eaa-9e74-18693ce9969e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunsStarted Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunsStarted Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunsStarted Alert", - "description": "Policy to Audit/Deploy Logic workflows RunsStarted Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/RunsSucceeded_16c2d231-f28b-4146-9aa3-57d419eb8780.json b/services/Logic/workflows/templates/policy-arm/RunsSucceeded_16c2d231-f28b-4146-9aa3-57d419eb8780.json index 2d1984648..8cffd4e22 100644 --- a/services/Logic/workflows/templates/policy-arm/RunsSucceeded_16c2d231-f28b-4146-9aa3-57d419eb8780.json +++ b/services/Logic/workflows/templates/policy-arm/RunsSucceeded_16c2d231-f28b-4146-9aa3-57d419eb8780.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows RunsSucceeded Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows RunsSucceeded Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows RunsSucceeded Alert", - "description": "Policy to Audit/Deploy Logic workflows RunsSucceeded Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/TotalBillableExecutions_85bb464e-d9ce-496a-a66d-4c6d28d808df.json b/services/Logic/workflows/templates/policy-arm/TotalBillableExecutions_85bb464e-d9ce-496a-a66d-4c6d28d808df.json index 7a8a743f3..4d8207c6e 100644 --- a/services/Logic/workflows/templates/policy-arm/TotalBillableExecutions_85bb464e-d9ce-496a-a66d-4c6d28d808df.json +++ b/services/Logic/workflows/templates/policy-arm/TotalBillableExecutions_85bb464e-d9ce-496a-a66d-4c6d28d808df.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows TotalBillableExecutions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows TotalBillableExecutions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows TotalBillableExecutions Alert", - "description": "Policy to Audit/Deploy Logic workflows TotalBillableExecutions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/TriggerLatency_114f7c8e-e285-487d-9e50-7fe160769167.json b/services/Logic/workflows/templates/policy-arm/TriggerLatency_114f7c8e-e285-487d-9e50-7fe160769167.json index ceee562a9..b5e4f1d23 100644 --- a/services/Logic/workflows/templates/policy-arm/TriggerLatency_114f7c8e-e285-487d-9e50-7fe160769167.json +++ b/services/Logic/workflows/templates/policy-arm/TriggerLatency_114f7c8e-e285-487d-9e50-7fe160769167.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows TriggerLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows TriggerLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows TriggerLatency Alert", - "description": "Policy to Audit/Deploy Logic workflows TriggerLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/TriggerThrottledEvents_42ae6a24-d545-4bbd-a7f9-8a3b6f977366.json b/services/Logic/workflows/templates/policy-arm/TriggerThrottledEvents_42ae6a24-d545-4bbd-a7f9-8a3b6f977366.json index 625c20f3e..d33ac9ba6 100644 --- a/services/Logic/workflows/templates/policy-arm/TriggerThrottledEvents_42ae6a24-d545-4bbd-a7f9-8a3b6f977366.json +++ b/services/Logic/workflows/templates/policy-arm/TriggerThrottledEvents_42ae6a24-d545-4bbd-a7f9-8a3b6f977366.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows TriggerThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows TriggerThrottledEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows TriggerThrottledEvents Alert", - "description": "Policy to Audit/Deploy Logic workflows TriggerThrottledEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/TriggersFailed_0378fd1f-976e-4a32-aa2b-25003e7d6ee5.json b/services/Logic/workflows/templates/policy-arm/TriggersFailed_0378fd1f-976e-4a32-aa2b-25003e7d6ee5.json index 9caa75d26..9473eb502 100644 --- a/services/Logic/workflows/templates/policy-arm/TriggersFailed_0378fd1f-976e-4a32-aa2b-25003e7d6ee5.json +++ b/services/Logic/workflows/templates/policy-arm/TriggersFailed_0378fd1f-976e-4a32-aa2b-25003e7d6ee5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows TriggersFailed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows TriggersFailed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows TriggersFailed Alert", - "description": "Policy to Audit/Deploy Logic workflows TriggersFailed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Logic/workflows/templates/policy-arm/TriggersSkipped_cb35fd68-9568-42f9-b527-44e77726b100.json b/services/Logic/workflows/templates/policy-arm/TriggersSkipped_cb35fd68-9568-42f9-b527-44e77726b100.json index 0b135e61f..03cede181 100644 --- a/services/Logic/workflows/templates/policy-arm/TriggersSkipped_cb35fd68-9568-42f9-b527-44e77726b100.json +++ b/services/Logic/workflows/templates/policy-arm/TriggersSkipped_cb35fd68-9568-42f9-b527-44e77726b100.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Logic workflows TriggersSkipped Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Logic workflows TriggersSkipped Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Logic workflows TriggersSkipped Alert", - "description": "Policy to Audit/Deploy Logic workflows TriggersSkipped Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Logic", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/MachineLearningServices/workspaces/templates/policy-arm/FailedRuns_c897902c-40a5-497b-a0ce-86c3eda7c61d.json b/services/MachineLearningServices/workspaces/templates/policy-arm/FailedRuns_c897902c-40a5-497b-a0ce-86c3eda7c61d.json index 01be371ef..dde6f2cf5 100644 --- a/services/MachineLearningServices/workspaces/templates/policy-arm/FailedRuns_c897902c-40a5-497b-a0ce-86c3eda7c61d.json +++ b/services/MachineLearningServices/workspaces/templates/policy-arm/FailedRuns_c897902c-40a5-497b-a0ce-86c3eda7c61d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy MachineLearningServices workspaces Failed Runs Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy MachineLearningServices workspaces Failed Runs Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy MachineLearningServices workspaces Failed Runs Alert", - "description": "Policy to Audit/Deploy MachineLearningServices workspaces Failed Runs Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "MachineLearningServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/MachineLearningServices/workspaces/templates/policy-arm/ModelDeployFailed_0337a76f-238e-4d4d-9cd1-48b205874dbb.json b/services/MachineLearningServices/workspaces/templates/policy-arm/ModelDeployFailed_0337a76f-238e-4d4d-9cd1-48b205874dbb.json index e065c3ccc..8039ae124 100644 --- a/services/MachineLearningServices/workspaces/templates/policy-arm/ModelDeployFailed_0337a76f-238e-4d4d-9cd1-48b205874dbb.json +++ b/services/MachineLearningServices/workspaces/templates/policy-arm/ModelDeployFailed_0337a76f-238e-4d4d-9cd1-48b205874dbb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy MachineLearningServices workspaces Model Deploy Failed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy MachineLearningServices workspaces Model Deploy Failed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy MachineLearningServices workspaces Model Deploy Failed Alert", - "description": "Policy to Audit/Deploy MachineLearningServices workspaces Model Deploy Failed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "MachineLearningServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/MachineLearningServices/workspaces/templates/policy-arm/NotRespondingRuns_d3b80f22-9f1d-3038-86ff-c4dd5ba02d7a.json b/services/MachineLearningServices/workspaces/templates/policy-arm/NotRespondingRuns_d3b80f22-9f1d-3038-86ff-c4dd5ba02d7a.json index 40422d911..575937a39 100644 --- a/services/MachineLearningServices/workspaces/templates/policy-arm/NotRespondingRuns_d3b80f22-9f1d-3038-86ff-c4dd5ba02d7a.json +++ b/services/MachineLearningServices/workspaces/templates/policy-arm/NotRespondingRuns_d3b80f22-9f1d-3038-86ff-c4dd5ba02d7a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy MachineLearningServices workspaces Not Responding Runs Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy MachineLearningServices workspaces Not Responding Runs Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy MachineLearningServices workspaces Not Responding Runs Alert", - "description": "Policy to Audit/Deploy MachineLearningServices workspaces Not Responding Runs Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "MachineLearningServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/MachineLearningServices/workspaces/templates/policy-arm/QuotaUtilizationPercentage_be3f1bfc-c21a-4399-9b9f-a33ebdc470cb.json b/services/MachineLearningServices/workspaces/templates/policy-arm/QuotaUtilizationPercentage_be3f1bfc-c21a-4399-9b9f-a33ebdc470cb.json index dc00cf2ce..3167c6b96 100644 --- a/services/MachineLearningServices/workspaces/templates/policy-arm/QuotaUtilizationPercentage_be3f1bfc-c21a-4399-9b9f-a33ebdc470cb.json +++ b/services/MachineLearningServices/workspaces/templates/policy-arm/QuotaUtilizationPercentage_be3f1bfc-c21a-4399-9b9f-a33ebdc470cb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy MachineLearningServices workspaces Quota Utilization Percentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy MachineLearningServices workspaces Quota Utilization Percentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy MachineLearningServices workspaces Quota Utilization Percentage Alert", - "description": "Policy to Audit/Deploy MachineLearningServices workspaces Quota Utilization Percentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "MachineLearningServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/MachineLearningServices/workspaces/templates/policy-arm/UnusableNodes_a171bc0c-676f-464b-a7b5-e50cd6c612a2.json b/services/MachineLearningServices/workspaces/templates/policy-arm/UnusableNodes_a171bc0c-676f-464b-a7b5-e50cd6c612a2.json index 534e09fc2..83aab459d 100644 --- a/services/MachineLearningServices/workspaces/templates/policy-arm/UnusableNodes_a171bc0c-676f-464b-a7b5-e50cd6c612a2.json +++ b/services/MachineLearningServices/workspaces/templates/policy-arm/UnusableNodes_a171bc0c-676f-464b-a7b5-e50cd6c612a2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy MachineLearningServices workspaces Unusable Nodes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy MachineLearningServices workspaces Unusable Nodes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy MachineLearningServices workspaces Unusable Nodes Alert", - "description": "Policy to Audit/Deploy MachineLearningServices workspaces Unusable Nodes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "MachineLearningServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Media/mediaservices/templates/policy-arm/AssetQuotaUsedPercentage_c0f647d6-d7f4-46ab-8591-b2f2b481e8e8.json b/services/Media/mediaservices/templates/policy-arm/AssetQuotaUsedPercentage_c0f647d6-d7f4-46ab-8591-b2f2b481e8e8.json index 670f975b5..940b155fd 100644 --- a/services/Media/mediaservices/templates/policy-arm/AssetQuotaUsedPercentage_c0f647d6-d7f4-46ab-8591-b2f2b481e8e8.json +++ b/services/Media/mediaservices/templates/policy-arm/AssetQuotaUsedPercentage_c0f647d6-d7f4-46ab-8591-b2f2b481e8e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Media mediaservices AssetQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Media mediaservices AssetQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Media mediaservices AssetQuotaUsedPercentage Alert", - "description": "Policy to Audit/Deploy Media mediaservices AssetQuotaUsedPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Media", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Media/mediaservices/templates/policy-arm/ContentKeyPolicyQuotaUsedPercentage_65d02c68-e50f-4a0e-9de9-0d52edea4af0.json b/services/Media/mediaservices/templates/policy-arm/ContentKeyPolicyQuotaUsedPercentage_65d02c68-e50f-4a0e-9de9-0d52edea4af0.json index 291eb6916..5cf50eaf4 100644 --- a/services/Media/mediaservices/templates/policy-arm/ContentKeyPolicyQuotaUsedPercentage_65d02c68-e50f-4a0e-9de9-0d52edea4af0.json +++ b/services/Media/mediaservices/templates/policy-arm/ContentKeyPolicyQuotaUsedPercentage_65d02c68-e50f-4a0e-9de9-0d52edea4af0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Media mediaservices ContentKeyPolicyQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Media mediaservices ContentKeyPolicyQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Media mediaservices ContentKeyPolicyQuotaUsedPercentage Alert", - "description": "Policy to Audit/Deploy Media mediaservices ContentKeyPolicyQuotaUsedPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Media", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Media/mediaservices/templates/policy-arm/StreamingPolicyQuotaUsedPercentage_9f91c6f3-e93e-4510-b72b-8678f6d38014.json b/services/Media/mediaservices/templates/policy-arm/StreamingPolicyQuotaUsedPercentage_9f91c6f3-e93e-4510-b72b-8678f6d38014.json index 10bf1ad54..05064cf72 100644 --- a/services/Media/mediaservices/templates/policy-arm/StreamingPolicyQuotaUsedPercentage_9f91c6f3-e93e-4510-b72b-8678f6d38014.json +++ b/services/Media/mediaservices/templates/policy-arm/StreamingPolicyQuotaUsedPercentage_9f91c6f3-e93e-4510-b72b-8678f6d38014.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Media mediaservices StreamingPolicyQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Media mediaservices StreamingPolicyQuotaUsedPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Media mediaservices StreamingPolicyQuotaUsedPercentage Alert", - "description": "Policy to Audit/Deploy Media mediaservices StreamingPolicyQuotaUsedPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Media", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/AverageReadLatency_cb7001d3-8a0e-41ed-b281-44fee5379f06.json b/services/NetApp/netAppAccounts/templates/policy-arm/AverageReadLatency_cb7001d3-8a0e-41ed-b281-44fee5379f06.json index 75a237f16..133458115 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/AverageReadLatency_cb7001d3-8a0e-41ed-b281-44fee5379f06.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/AverageReadLatency_cb7001d3-8a0e-41ed-b281-44fee5379f06.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageReadLatency_30b0cb86-ba8b-4eeb-9067-88456ec403ad.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageReadLatency_30b0cb86-ba8b-4eeb-9067-88456ec403ad.json index b80c03857..586853cbf 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageReadLatency_30b0cb86-ba8b-4eeb-9067-88456ec403ad.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageReadLatency_30b0cb86-ba8b-4eeb-9067-88456ec403ad.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageReadLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageWriteLatency_075f0066-51f6-4c36-8000-ce7070493674.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageWriteLatency_075f0066-51f6-4c36-8000-ce7070493674.json index 16b3f1569..1799e1d82 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageWriteLatency_075f0066-51f6-4c36-8000-ce7070493674.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-AverageWriteLatency_075f0066-51f6-4c36-8000-ce7070493674.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes AverageWriteLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageWriteLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes AverageWriteLatency Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes AverageWriteLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-CbsVolumeOperationComplete_27768691-301d-4938-bd8a-85598c2b50c6.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-CbsVolumeOperationComplete_27768691-301d-4938-bd8a-85598c2b50c6.json index df5c97ca0..4b29a2acc 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-CbsVolumeOperationComplete_27768691-301d-4938-bd8a-85598c2b50c6.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-CbsVolumeOperationComplete_27768691-301d-4938-bd8a-85598c2b50c6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes CbsVolumeOperationComplete Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes CbsVolumeOperationComplete Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes CbsVolumeOperationComplete Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes CbsVolumeOperationComplete Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeAllocatedSize_1be09484-96ee-4399-8ed4-35f5f4b5c23e.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeAllocatedSize_1be09484-96ee-4399-8ed4-35f5f4b5c23e.json index ff4f42fa9..7e18ec1cf 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeAllocatedSize_1be09484-96ee-4399-8ed4-35f5f4b5c23e.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeAllocatedSize_1be09484-96ee-4399-8ed4-35f5f4b5c23e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes VolumeAllocatedSize Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeAllocatedSize Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes VolumeAllocatedSize Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeAllocatedSize Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeConsumedSizePercentage_d474e6d2-0b9a-4912-ae61-16dc23126b3f.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeConsumedSizePercentage_d474e6d2-0b9a-4912-ae61-16dc23126b3f.json index 352d191f9..2983ea6cd 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeConsumedSizePercentage_d474e6d2-0b9a-4912-ae61-16dc23126b3f.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeConsumedSizePercentage_d474e6d2-0b9a-4912-ae61-16dc23126b3f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes VolumeConsumedSizePercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeConsumedSizePercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes VolumeConsumedSizePercentage Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeConsumedSizePercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeLogicalSize_149f6b6c-4729-4da4-af00-bccbb1cce9ae.json b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeLogicalSize_149f6b6c-4729-4da4-af00-bccbb1cce9ae.json index 6d18f58c8..26471c53c 100644 --- a/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeLogicalSize_149f6b6c-4729-4da4-af00-bccbb1cce9ae.json +++ b/services/NetApp/netAppAccounts/templates/policy-arm/capacityPoolsvolumes-VolumeLogicalSize_149f6b6c-4729-4da4-af00-bccbb1cce9ae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy NetApp netAppAccounts capacityPools volumes VolumeLogicalSize Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeLogicalSize Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy NetApp netAppAccounts capacityPools volumes VolumeLogicalSize Alert", - "description": "Policy to Audit/Deploy NetApp netAppAccounts capacityPools volumes VolumeLogicalSize Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "NetApp", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/ApplicationGatewayTotalTime_73fa1878-d22d-4e8d-922d-9f146454cc40.json b/services/Network/applicationGateways/templates/policy-arm/ApplicationGatewayTotalTime_73fa1878-d22d-4e8d-922d-9f146454cc40.json index d9e497373..c2bcce706 100644 --- a/services/Network/applicationGateways/templates/policy-arm/ApplicationGatewayTotalTime_73fa1878-d22d-4e8d-922d-9f146454cc40.json +++ b/services/Network/applicationGateways/templates/policy-arm/ApplicationGatewayTotalTime_73fa1878-d22d-4e8d-922d-9f146454cc40.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways ApplicationGatewayTotalTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways ApplicationGatewayTotalTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways ApplicationGatewayTotalTime Alert", - "description": "Policy to Audit/Deploy Network applicationGateways ApplicationGatewayTotalTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/AzwafSecRule_d5827f03-efb6-4257-96e2-b6e34e3bef7e.json b/services/Network/applicationGateways/templates/policy-arm/AzwafSecRule_d5827f03-efb6-4257-96e2-b6e34e3bef7e.json index 7ed2e446a..caa3dd096 100644 --- a/services/Network/applicationGateways/templates/policy-arm/AzwafSecRule_d5827f03-efb6-4257-96e2-b6e34e3bef7e.json +++ b/services/Network/applicationGateways/templates/policy-arm/AzwafSecRule_d5827f03-efb6-4257-96e2-b6e34e3bef7e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways AzwafSecRule Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways AzwafSecRule Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways AzwafSecRule Alert", - "description": "Policy to Audit/Deploy Network applicationGateways AzwafSecRule Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/BackendConnectTime_e636b3ea-da2d-42f5-aedf-12b69432ac1f.json b/services/Network/applicationGateways/templates/policy-arm/BackendConnectTime_e636b3ea-da2d-42f5-aedf-12b69432ac1f.json index 11fc4bae9..aa53b21bb 100644 --- a/services/Network/applicationGateways/templates/policy-arm/BackendConnectTime_e636b3ea-da2d-42f5-aedf-12b69432ac1f.json +++ b/services/Network/applicationGateways/templates/policy-arm/BackendConnectTime_e636b3ea-da2d-42f5-aedf-12b69432ac1f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways BackendConnectTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways BackendConnectTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways BackendConnectTime Alert", - "description": "Policy to Audit/Deploy Network applicationGateways BackendConnectTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/BackendFirstByteResponseTime_3cbcad15-0bb6-423e-87c1-4d40722103d6.json b/services/Network/applicationGateways/templates/policy-arm/BackendFirstByteResponseTime_3cbcad15-0bb6-423e-87c1-4d40722103d6.json index 1c3c2a5e6..d1f41be21 100644 --- a/services/Network/applicationGateways/templates/policy-arm/BackendFirstByteResponseTime_3cbcad15-0bb6-423e-87c1-4d40722103d6.json +++ b/services/Network/applicationGateways/templates/policy-arm/BackendFirstByteResponseTime_3cbcad15-0bb6-423e-87c1-4d40722103d6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways BackendFirstByteResponseTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways BackendFirstByteResponseTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways BackendFirstByteResponseTime Alert", - "description": "Policy to Audit/Deploy Network applicationGateways BackendFirstByteResponseTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/BackendLastByteResponseTime_57c7b576-d4b2-4aa7-8c58-5c0ccbf94726.json b/services/Network/applicationGateways/templates/policy-arm/BackendLastByteResponseTime_57c7b576-d4b2-4aa7-8c58-5c0ccbf94726.json index 134171b80..464bf069b 100644 --- a/services/Network/applicationGateways/templates/policy-arm/BackendLastByteResponseTime_57c7b576-d4b2-4aa7-8c58-5c0ccbf94726.json +++ b/services/Network/applicationGateways/templates/policy-arm/BackendLastByteResponseTime_57c7b576-d4b2-4aa7-8c58-5c0ccbf94726.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Azure Application Gateway BackendLastByteResponseTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Azure Application Gateway BackendLastByteResponseTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Azure Application Gateway BackendLastByteResponseTime Alert", - "description": "Policy to Audit/Deploy Azure Application Gateway BackendLastByteResponseTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/BackendResponseStatus_c319a40c-3750-4fb4-a36d-beb3d09ef2ee.json b/services/Network/applicationGateways/templates/policy-arm/BackendResponseStatus_c319a40c-3750-4fb4-a36d-beb3d09ef2ee.json index 1b75734bb..622d4edc7 100644 --- a/services/Network/applicationGateways/templates/policy-arm/BackendResponseStatus_c319a40c-3750-4fb4-a36d-beb3d09ef2ee.json +++ b/services/Network/applicationGateways/templates/policy-arm/BackendResponseStatus_c319a40c-3750-4fb4-a36d-beb3d09ef2ee.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways BackendResponseStatus Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways BackendResponseStatus Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways BackendResponseStatus Alert", - "description": "Policy to Audit/Deploy Network applicationGateways BackendResponseStatus Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/CapacityUnits_d43ca9ef-6211-40ff-972e-fffb17923fc9.json b/services/Network/applicationGateways/templates/policy-arm/CapacityUnits_d43ca9ef-6211-40ff-972e-fffb17923fc9.json index 4e3953b83..d2a8d3ed6 100644 --- a/services/Network/applicationGateways/templates/policy-arm/CapacityUnits_d43ca9ef-6211-40ff-972e-fffb17923fc9.json +++ b/services/Network/applicationGateways/templates/policy-arm/CapacityUnits_d43ca9ef-6211-40ff-972e-fffb17923fc9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways CapacityUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways CapacityUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways CapacityUnits Alert", - "description": "Policy to Audit/Deploy Network applicationGateways CapacityUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/ComputeUnits_e59f4d17-2600-4bcc-ab57-6c695d37a0b2.json b/services/Network/applicationGateways/templates/policy-arm/ComputeUnits_e59f4d17-2600-4bcc-ab57-6c695d37a0b2.json index 7b15acb5d..dc361115f 100644 --- a/services/Network/applicationGateways/templates/policy-arm/ComputeUnits_e59f4d17-2600-4bcc-ab57-6c695d37a0b2.json +++ b/services/Network/applicationGateways/templates/policy-arm/ComputeUnits_e59f4d17-2600-4bcc-ab57-6c695d37a0b2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways ComputeUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways ComputeUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways ComputeUnits Alert", - "description": "Policy to Audit/Deploy Network applicationGateways ComputeUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/CpuUtilization_9c8be4c5-5ba3-47ef-8a0a-97144734a336.json b/services/Network/applicationGateways/templates/policy-arm/CpuUtilization_9c8be4c5-5ba3-47ef-8a0a-97144734a336.json index 8aa9625b7..db1ba1e3d 100644 --- a/services/Network/applicationGateways/templates/policy-arm/CpuUtilization_9c8be4c5-5ba3-47ef-8a0a-97144734a336.json +++ b/services/Network/applicationGateways/templates/policy-arm/CpuUtilization_9c8be4c5-5ba3-47ef-8a0a-97144734a336.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways CpuUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways CpuUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways CpuUtilization Alert", - "description": "Policy to Audit/Deploy Network applicationGateways CpuUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/CurrentConnections_695b9710-e432-4521-9042-36287f0fc5ba.json b/services/Network/applicationGateways/templates/policy-arm/CurrentConnections_695b9710-e432-4521-9042-36287f0fc5ba.json index 57b1fc4c4..bf417cbad 100644 --- a/services/Network/applicationGateways/templates/policy-arm/CurrentConnections_695b9710-e432-4521-9042-36287f0fc5ba.json +++ b/services/Network/applicationGateways/templates/policy-arm/CurrentConnections_695b9710-e432-4521-9042-36287f0fc5ba.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways CurrentConnections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways CurrentConnections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways CurrentConnections Alert", - "description": "Policy to Audit/Deploy Network applicationGateways CurrentConnections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/EstimatedBilledCapacityUnits_e77b6820-e115-4e33-97c1-9bb902eec3b2.json b/services/Network/applicationGateways/templates/policy-arm/EstimatedBilledCapacityUnits_e77b6820-e115-4e33-97c1-9bb902eec3b2.json index b5ea4ed27..67e93cf32 100644 --- a/services/Network/applicationGateways/templates/policy-arm/EstimatedBilledCapacityUnits_e77b6820-e115-4e33-97c1-9bb902eec3b2.json +++ b/services/Network/applicationGateways/templates/policy-arm/EstimatedBilledCapacityUnits_e77b6820-e115-4e33-97c1-9bb902eec3b2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways EstimatedBilledCapacityUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways EstimatedBilledCapacityUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways EstimatedBilledCapacityUnits Alert", - "description": "Policy to Audit/Deploy Network applicationGateways EstimatedBilledCapacityUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/FailedRequests_73afde26-bd0c-4c31-8801-5b2444629448.json b/services/Network/applicationGateways/templates/policy-arm/FailedRequests_73afde26-bd0c-4c31-8801-5b2444629448.json index a094c333b..17cf84859 100644 --- a/services/Network/applicationGateways/templates/policy-arm/FailedRequests_73afde26-bd0c-4c31-8801-5b2444629448.json +++ b/services/Network/applicationGateways/templates/policy-arm/FailedRequests_73afde26-bd0c-4c31-8801-5b2444629448.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways FailedRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways FailedRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways FailedRequests Alert", - "description": "Policy to Audit/Deploy Network applicationGateways FailedRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/HealthyHostCount_f03d1a7a-6bd3-42ae-89db-b36fd6ce5633.json b/services/Network/applicationGateways/templates/policy-arm/HealthyHostCount_f03d1a7a-6bd3-42ae-89db-b36fd6ce5633.json index 944b2e819..a4bf743f9 100644 --- a/services/Network/applicationGateways/templates/policy-arm/HealthyHostCount_f03d1a7a-6bd3-42ae-89db-b36fd6ce5633.json +++ b/services/Network/applicationGateways/templates/policy-arm/HealthyHostCount_f03d1a7a-6bd3-42ae-89db-b36fd6ce5633.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways HealthyHostCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways HealthyHostCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways HealthyHostCount Alert", - "description": "Policy to Audit/Deploy Network applicationGateways HealthyHostCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/ResponseStatus_6d77d848-23b1-4ff4-b9de-d421845d9566.json b/services/Network/applicationGateways/templates/policy-arm/ResponseStatus_6d77d848-23b1-4ff4-b9de-d421845d9566.json index d21429310..6c22dc264 100644 --- a/services/Network/applicationGateways/templates/policy-arm/ResponseStatus_6d77d848-23b1-4ff4-b9de-d421845d9566.json +++ b/services/Network/applicationGateways/templates/policy-arm/ResponseStatus_6d77d848-23b1-4ff4-b9de-d421845d9566.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways ResponseStatus Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways ResponseStatus Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways ResponseStatus Alert", - "description": "Policy to Audit/Deploy Network applicationGateways ResponseStatus Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/Throughput_7640663c-b2f7-41bf-9419-be5e8cfdf74e.json b/services/Network/applicationGateways/templates/policy-arm/Throughput_7640663c-b2f7-41bf-9419-be5e8cfdf74e.json index 72af2bb38..339ab8294 100644 --- a/services/Network/applicationGateways/templates/policy-arm/Throughput_7640663c-b2f7-41bf-9419-be5e8cfdf74e.json +++ b/services/Network/applicationGateways/templates/policy-arm/Throughput_7640663c-b2f7-41bf-9419-be5e8cfdf74e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways Throughput Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways Throughput Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways Throughput Alert", - "description": "Policy to Audit/Deploy Network applicationGateways Throughput Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/TotalRequests_06982a17-4def-405d-bb59-4ecfb6486f9e.json b/services/Network/applicationGateways/templates/policy-arm/TotalRequests_06982a17-4def-405d-bb59-4ecfb6486f9e.json index dbf9858d6..573051f90 100644 --- a/services/Network/applicationGateways/templates/policy-arm/TotalRequests_06982a17-4def-405d-bb59-4ecfb6486f9e.json +++ b/services/Network/applicationGateways/templates/policy-arm/TotalRequests_06982a17-4def-405d-bb59-4ecfb6486f9e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways TotalRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways TotalRequests Alert", - "description": "Policy to Audit/Deploy Network applicationGateways TotalRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/applicationGateways/templates/policy-arm/UnhealthyHostCount_c88acf4e-2d23-4ac7-93fb-e44ded53ecee.json b/services/Network/applicationGateways/templates/policy-arm/UnhealthyHostCount_c88acf4e-2d23-4ac7-93fb-e44ded53ecee.json index 589b30da3..a650ec21c 100644 --- a/services/Network/applicationGateways/templates/policy-arm/UnhealthyHostCount_c88acf4e-2d23-4ac7-93fb-e44ded53ecee.json +++ b/services/Network/applicationGateways/templates/policy-arm/UnhealthyHostCount_c88acf4e-2d23-4ac7-93fb-e44ded53ecee.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network applicationGateways UnhealthyHostCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network applicationGateways UnhealthyHostCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network applicationGateways UnhealthyHostCount Alert", - "description": "Policy to Audit/Deploy Network applicationGateways UnhealthyHostCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/azureFirewalls/templates/policy-arm/FirewallHealth_0ff72493-3822-4315-a146-8977a0963e39.json b/services/Network/azureFirewalls/templates/policy-arm/FirewallHealth_0ff72493-3822-4315-a146-8977a0963e39.json index e6a09b7c0..c8ee6d553 100644 --- a/services/Network/azureFirewalls/templates/policy-arm/FirewallHealth_0ff72493-3822-4315-a146-8977a0963e39.json +++ b/services/Network/azureFirewalls/templates/policy-arm/FirewallHealth_0ff72493-3822-4315-a146-8977a0963e39.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AFW FirewallHealth Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AFW FirewallHealth Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AFW FirewallHealth Alert", - "description": "Policy to Audit/Deploy AFW FirewallHealth Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/azureFirewalls/templates/policy-arm/SNATPortUtilization_b23f1e82-a791-4610-aaa6-2d960b48b81d.json b/services/Network/azureFirewalls/templates/policy-arm/SNATPortUtilization_b23f1e82-a791-4610-aaa6-2d960b48b81d.json index 06f6aef26..9cf67caab 100644 --- a/services/Network/azureFirewalls/templates/policy-arm/SNATPortUtilization_b23f1e82-a791-4610-aaa6-2d960b48b81d.json +++ b/services/Network/azureFirewalls/templates/policy-arm/SNATPortUtilization_b23f1e82-a791-4610-aaa6-2d960b48b81d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy AFW SNATPortUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy AFW SNATPortUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy AFW SNATPortUtilization Alert", - "description": "Policy to Audit/Deploy AFW SNATPortUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/azureFirewalls/templates/policy-arm/Throughput_e8fdab4c-cc9a-4729-8619-a0f468f4dfdc.json b/services/Network/azureFirewalls/templates/policy-arm/Throughput_e8fdab4c-cc9a-4729-8619-a0f468f4dfdc.json index 7d478e23a..1f2bc79db 100644 --- a/services/Network/azureFirewalls/templates/policy-arm/Throughput_e8fdab4c-cc9a-4729-8619-a0f468f4dfdc.json +++ b/services/Network/azureFirewalls/templates/policy-arm/Throughput_e8fdab4c-cc9a-4729-8619-a0f468f4dfdc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network azureFirewalls Throughput Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network azureFirewalls Throughput Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network azureFirewalls Throughput Alert", - "description": "Policy to Audit/Deploy Network azureFirewalls Throughput Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/bastionHosts/templates/policy-arm/BastionCommunicationStatus_afd848a8-8b18-410c-bcc1-1b6f06a5a231.json b/services/Network/bastionHosts/templates/policy-arm/BastionCommunicationStatus_afd848a8-8b18-410c-bcc1-1b6f06a5a231.json index 0d5010874..7297b9460 100644 --- a/services/Network/bastionHosts/templates/policy-arm/BastionCommunicationStatus_afd848a8-8b18-410c-bcc1-1b6f06a5a231.json +++ b/services/Network/bastionHosts/templates/policy-arm/BastionCommunicationStatus_afd848a8-8b18-410c-bcc1-1b6f06a5a231.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network bastionHosts pingmesh Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network bastionHosts pingmesh Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network bastionHosts pingmesh Alert", - "description": "Policy to Audit/Deploy Network bastionHosts pingmesh Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/bastionHosts/templates/policy-arm/CPUUsage_0d4040d7-4478-46b5-98e0-14bb2f7b8ecf.json b/services/Network/bastionHosts/templates/policy-arm/CPUUsage_0d4040d7-4478-46b5-98e0-14bb2f7b8ecf.json index 3a3cc72c0..417583a72 100644 --- a/services/Network/bastionHosts/templates/policy-arm/CPUUsage_0d4040d7-4478-46b5-98e0-14bb2f7b8ecf.json +++ b/services/Network/bastionHosts/templates/policy-arm/CPUUsage_0d4040d7-4478-46b5-98e0-14bb2f7b8ecf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network bastionHosts usage_user Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network bastionHosts usage_user Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network bastionHosts usage_user Alert", - "description": "Policy to Audit/Deploy Network bastionHosts usage_user Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/bastionHosts/templates/policy-arm/MemoryUsage_2c288e52-422b-4f7e-85cf-feb3d08a1602.json b/services/Network/bastionHosts/templates/policy-arm/MemoryUsage_2c288e52-422b-4f7e-85cf-feb3d08a1602.json index 57ffef542..89fb742d0 100644 --- a/services/Network/bastionHosts/templates/policy-arm/MemoryUsage_2c288e52-422b-4f7e-85cf-feb3d08a1602.json +++ b/services/Network/bastionHosts/templates/policy-arm/MemoryUsage_2c288e52-422b-4f7e-85cf-feb3d08a1602.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network bastionHosts used Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network bastionHosts used Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network bastionHosts used Alert", - "description": "Policy to Audit/Deploy Network bastionHosts used Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/connections/templates/policy-arm/BitsInPerSecond_494aa5d6-444d-4c86-9de5-431b3e12a233.json b/services/Network/connections/templates/policy-arm/BitsInPerSecond_494aa5d6-444d-4c86-9de5-431b3e12a233.json index c2a2b9d08..a1add364f 100644 --- a/services/Network/connections/templates/policy-arm/BitsInPerSecond_494aa5d6-444d-4c86-9de5-431b3e12a233.json +++ b/services/Network/connections/templates/policy-arm/BitsInPerSecond_494aa5d6-444d-4c86-9de5-431b3e12a233.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network connections BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network connections BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network connections BitsInPerSecond Alert", - "description": "Policy to Audit/Deploy Network connections BitsInPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/connections/templates/policy-arm/BitsOutPerSecond_b050d767-098e-4947-aa88-2a3090e62eab.json b/services/Network/connections/templates/policy-arm/BitsOutPerSecond_b050d767-098e-4947-aa88-2a3090e62eab.json index 876537a5c..83a7bea17 100644 --- a/services/Network/connections/templates/policy-arm/BitsOutPerSecond_b050d767-098e-4947-aa88-2a3090e62eab.json +++ b/services/Network/connections/templates/policy-arm/BitsOutPerSecond_b050d767-098e-4947-aa88-2a3090e62eab.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network connections BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network connections BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network connections BitsOutPerSecond Alert", - "description": "Policy to Audit/Deploy Network connections BitsOutPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/dnszones/templates/policy-arm/QueryVolume_0d1709ed-805e-4ca1-8490-f2d6b393e92f.json b/services/Network/dnszones/templates/policy-arm/QueryVolume_0d1709ed-805e-4ca1-8490-f2d6b393e92f.json index 1c7655336..129c6d168 100644 --- a/services/Network/dnszones/templates/policy-arm/QueryVolume_0d1709ed-805e-4ca1-8490-f2d6b393e92f.json +++ b/services/Network/dnszones/templates/policy-arm/QueryVolume_0d1709ed-805e-4ca1-8490-f2d6b393e92f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network dnszones QueryVolume Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network dnszones QueryVolume Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network dnszones QueryVolume Alert", - "description": "Policy to Audit/Deploy Network dnszones QueryVolume Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/dnszones/templates/policy-arm/RecordSetCapacityUtilization_dfbcdbb7-fed8-49c5-8a10-ed34d20fc617.json b/services/Network/dnszones/templates/policy-arm/RecordSetCapacityUtilization_dfbcdbb7-fed8-49c5-8a10-ed34d20fc617.json index 6601851b6..2dae27f9e 100644 --- a/services/Network/dnszones/templates/policy-arm/RecordSetCapacityUtilization_dfbcdbb7-fed8-49c5-8a10-ed34d20fc617.json +++ b/services/Network/dnszones/templates/policy-arm/RecordSetCapacityUtilization_dfbcdbb7-fed8-49c5-8a10-ed34d20fc617.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network dnszones RecordSetCapacityUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network dnszones RecordSetCapacityUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network dnszones RecordSetCapacityUtilization Alert", - "description": "Policy to Audit/Deploy Network dnszones RecordSetCapacityUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/ArpAvailability_efc101c0-0623-4928-86a7-6f2d37faf24b.json b/services/Network/expressRouteCircuits/templates/policy-arm/ArpAvailability_efc101c0-0623-4928-86a7-6f2d37faf24b.json index 954c6c017..43a2ad146 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/ArpAvailability_efc101c0-0623-4928-86a7-6f2d37faf24b.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/ArpAvailability_efc101c0-0623-4928-86a7-6f2d37faf24b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ExpressRoute Circuits ARP Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ExpressRoute Circuits ARP Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ExpressRoute Circuits ARP Availability Alert", - "description": "Policy to Audit/Deploy ExpressRoute Circuits ARP Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/BgpAvailability_37302f31-86e2-45c8-a39f-d0b41c1271df.json b/services/Network/expressRouteCircuits/templates/policy-arm/BgpAvailability_37302f31-86e2-45c8-a39f-d0b41c1271df.json index 29315cd5a..8c810c4b6 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/BgpAvailability_37302f31-86e2-45c8-a39f-d0b41c1271df.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/BgpAvailability_37302f31-86e2-45c8-a39f-d0b41c1271df.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ExpressRoute Circuits BGP Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ExpressRoute Circuits BGP Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ExpressRoute Circuits BGP Availability Alert", - "description": "Policy to Audit/Deploy ExpressRoute Circuits BGP Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/BitsInPerSecond_2e4ae517-3d35-4677-a4b0-441ca19e7670.json b/services/Network/expressRouteCircuits/templates/policy-arm/BitsInPerSecond_2e4ae517-3d35-4677-a4b0-441ca19e7670.json index 53b52a915..9fe670400 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/BitsInPerSecond_2e4ae517-3d35-4677-a4b0-441ca19e7670.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/BitsInPerSecond_2e4ae517-3d35-4677-a4b0-441ca19e7670.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network expressRouteCircuits BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network expressRouteCircuits BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network expressRouteCircuits BitsInPerSecond Alert", - "description": "Policy to Audit/Deploy Network expressRouteCircuits BitsInPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/BitsOutPerSecond_cc428042-1a21-43f7-b5f8-598dea50f4a2.json b/services/Network/expressRouteCircuits/templates/policy-arm/BitsOutPerSecond_cc428042-1a21-43f7-b5f8-598dea50f4a2.json index e6ee767a1..f9c008252 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/BitsOutPerSecond_cc428042-1a21-43f7-b5f8-598dea50f4a2.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/BitsOutPerSecond_cc428042-1a21-43f7-b5f8-598dea50f4a2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network expressRouteCircuits BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network expressRouteCircuits BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network expressRouteCircuits BitsOutPerSecond Alert", - "description": "Policy to Audit/Deploy Network expressRouteCircuits BitsOutPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsInPerSecond_d56551a8-1355-4aa3-871e-e20e1ce40f05.json b/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsInPerSecond_d56551a8-1355-4aa3-871e-e20e1ce40f05.json index 6c6405969..01e9d460e 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsInPerSecond_d56551a8-1355-4aa3-871e-e20e1ce40f05.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsInPerSecond_d56551a8-1355-4aa3-871e-e20e1ce40f05.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ExpressRoute Circuits QosDropBitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ExpressRoute Circuits QosDropBitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ExpressRoute Circuits QosDropBitsInPerSecond Alert", - "description": "Policy to Audit/Deploy ExpressRoute Circuits QosDropBitsInPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsOutPerSecond_5808dbdb-712e-4bd3-b92e-4a08388c32c6.json b/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsOutPerSecond_5808dbdb-712e-4bd3-b92e-4a08388c32c6.json index 907368e50..54284e143 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsOutPerSecond_5808dbdb-712e-4bd3-b92e-4a08388c32c6.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/QosDropBitsOutPerSecond_5808dbdb-712e-4bd3-b92e-4a08388c32c6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ExpressRoute Circuits QosDropBitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ExpressRoute Circuits QosDropBitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ExpressRoute Circuits QosDropBitsOutPerSecond Alert", - "description": "Policy to Audit/Deploy ExpressRoute Circuits QosDropBitsOutPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/fastpathroutescountforcircuit_afc45643-7bd3-4321-9924-ac710bb78f88.json b/services/Network/expressRouteCircuits/templates/policy-arm/fastpathroutescountforcircuit_afc45643-7bd3-4321-9924-ac710bb78f88.json index b22ed2165..db9a06272 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/fastpathroutescountforcircuit_afc45643-7bd3-4321-9924-ac710bb78f88.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/fastpathroutescountforcircuit_afc45643-7bd3-4321-9924-ac710bb78f88.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network expressRouteCircuits fastpathroutescountforcircuit Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network expressRouteCircuits fastpathroutescountforcircuit Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network expressRouteCircuits fastpathroutescountforcircuit Alert", - "description": "Policy to Audit/Deploy Network expressRouteCircuits fastpathroutescountforcircuit Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsinpersecond_47fe6c76-47a0-433f-92d6-a23d9f573771.json b/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsinpersecond_47fe6c76-47a0-433f-92d6-a23d9f573771.json index 798e67122..de3336f1f 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsinpersecond_47fe6c76-47a0-433f-92d6-a23d9f573771.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsinpersecond_47fe6c76-47a0-433f-92d6-a23d9f573771.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network expressRouteCircuits globalreachbitsinpersecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network expressRouteCircuits globalreachbitsinpersecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network expressRouteCircuits globalreachbitsinpersecond Alert", - "description": "Policy to Audit/Deploy Network expressRouteCircuits globalreachbitsinpersecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsoutpersecond_8a586e59-0f53-41bd-8406-174f9f0ecf7e.json b/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsoutpersecond_8a586e59-0f53-41bd-8406-174f9f0ecf7e.json index 21104be6d..ca1bffa4c 100644 --- a/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsoutpersecond_8a586e59-0f53-41bd-8406-174f9f0ecf7e.json +++ b/services/Network/expressRouteCircuits/templates/policy-arm/globalreachbitsoutpersecond_8a586e59-0f53-41bd-8406-174f9f0ecf7e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network expressRouteCircuits globalreachbitsoutpersecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network expressRouteCircuits globalreachbitsoutpersecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network expressRouteCircuits globalreachbitsoutpersecond Alert", - "description": "Policy to Audit/Deploy Network expressRouteCircuits globalreachbitsoutpersecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsInPerSecond_ff147700-c9e6-4063-bb23-45500c00067a.json b/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsInPerSecond_ff147700-c9e6-4063-bb23-45500c00067a.json index 3e9205e82..57332061a 100644 --- a/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsInPerSecond_ff147700-c9e6-4063-bb23-45500c00067a.json +++ b/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsInPerSecond_ff147700-c9e6-4063-bb23-45500c00067a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ERG ExpressRoute Bits In Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ERG ExpressRoute Bits In Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ERG ExpressRoute Bits In Alert", - "description": "Policy to Audit/Deploy ERG ExpressRoute Bits In Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsOutPerSecond_4d5c7854-e044-4dd6-971b-df433fa3ad37.json b/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsOutPerSecond_4d5c7854-e044-4dd6-971b-df433fa3ad37.json index 0c43e58c7..9cd815e9f 100644 --- a/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsOutPerSecond_4d5c7854-e044-4dd6-971b-df433fa3ad37.json +++ b/services/Network/expressRouteGateways/templates/policy-arm/ERGatewayConnectionBitsOutPerSecond_4d5c7854-e044-4dd6-971b-df433fa3ad37.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ERG ExpressRoute Bits Out Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ERG ExpressRoute Bits Out Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ERG ExpressRoute Bits Out Alert", - "description": "Policy to Audit/Deploy ERG ExpressRoute Bits Out Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRouteGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_af1ba971-9b73-4b7f-8040-5eff9f5778d5.json b/services/Network/expressRouteGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_af1ba971-9b73-4b7f-8040-5eff9f5778d5.json index d3782c128..90ee2d2de 100644 --- a/services/Network/expressRouteGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_af1ba971-9b73-4b7f-8040-5eff9f5778d5.json +++ b/services/Network/expressRouteGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_af1ba971-9b73-4b7f-8040-5eff9f5778d5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ERG ExpressRoute CPU Utilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ERG ExpressRoute CPU Utilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ERG ExpressRoute CPU Utilization Alert", - "description": "Policy to Audit/Deploy ERG ExpressRoute CPU Utilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/LineProtocol_0fac138d-cf48-4dc2-ac02-053d0b24e620.json b/services/Network/expressRoutePorts/templates/policy-arm/LineProtocol_0fac138d-cf48-4dc2-ac02-053d0b24e620.json index f79cbab06..60b21e05e 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/LineProtocol_0fac138d-cf48-4dc2-ac02-053d0b24e620.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/LineProtocol_0fac138d-cf48-4dc2-ac02-053d0b24e620.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct LineProtocol Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct LineProtocol Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct LineProtocol Alert", - "description": "Policy to Audit/Deploy ER Direct LineProtocol Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/PortBitsInPerSecond_08dad105-6416-4348-9feb-339f73e24262.json b/services/Network/expressRoutePorts/templates/policy-arm/PortBitsInPerSecond_08dad105-6416-4348-9feb-339f73e24262.json index f97865524..bc448ba41 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/PortBitsInPerSecond_08dad105-6416-4348-9feb-339f73e24262.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/PortBitsInPerSecond_08dad105-6416-4348-9feb-339f73e24262.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct Connection BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct Connection BitsInPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct Connection BitsInPerSecond Alert", - "description": "Policy to Audit/Deploy ER Direct Connection BitsInPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/PortBitsOutPerSecond_ca29484c-b6e5-467e-984d-567e262380d7.json b/services/Network/expressRoutePorts/templates/policy-arm/PortBitsOutPerSecond_ca29484c-b6e5-467e-984d-567e262380d7.json index 47643a580..2434e4b3d 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/PortBitsOutPerSecond_ca29484c-b6e5-467e-984d-567e262380d7.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/PortBitsOutPerSecond_ca29484c-b6e5-467e-984d-567e262380d7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct Connection BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct Connection BitsOutPerSecond Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct Connection BitsOutPerSecond Alert", - "description": "Policy to Audit/Deploy ER Direct Connection BitsOutPerSecond Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-High_ceaeccae-ffa5-4c8c-8415-c7be8266977d.json b/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-High_ceaeccae-ffa5-4c8c-8415-c7be8266977d.json index 3e118d1cf..901db30f2 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-High_ceaeccae-ffa5-4c8c-8415-c7be8266977d.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-High_ceaeccae-ffa5-4c8c-8415-c7be8266977d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct RxLightLevel High Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct RxLightLevel High Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct RxLightLevel High Alert", - "description": "Policy to Audit/Deploy ER Direct RxLightLevel High Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-Low_bf37971c-60f4-4652-a059-7607b1d6d31b.json b/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-Low_bf37971c-60f4-4652-a059-7607b1d6d31b.json index d53b9daef..c76eb610e 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-Low_bf37971c-60f4-4652-a059-7607b1d6d31b.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/RxLightLevel-Low_bf37971c-60f4-4652-a059-7607b1d6d31b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct RxLightLevel Low Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct RxLightLevel Low Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct RxLightLevel Low Alert", - "description": "Policy to Audit/Deploy ER Direct RxLightLevel Low Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-High_dee0e83f-8d5c-4735-9730-1a850354e4b1.json b/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-High_dee0e83f-8d5c-4735-9730-1a850354e4b1.json index b8c243470..51ee59692 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-High_dee0e83f-8d5c-4735-9730-1a850354e4b1.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-High_dee0e83f-8d5c-4735-9730-1a850354e4b1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct TxLightLevel High Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct TxLightLevel High Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct TxLightLevel High Alert", - "description": "Policy to Audit/Deploy ER Direct TxLightLevel High Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-Low_378a85f8-f24c-4ce6-bfb0-eb5ccbd61768.json b/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-Low_378a85f8-f24c-4ce6-bfb0-eb5ccbd61768.json index 09f1cf28b..e65597e8e 100644 --- a/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-Low_378a85f8-f24c-4ce6-bfb0-eb5ccbd61768.json +++ b/services/Network/expressRoutePorts/templates/policy-arm/TxLightLevel-Low_378a85f8-f24c-4ce6-bfb0-eb5ccbd61768.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ER Direct TxLightLevel Low Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ER Direct TxLightLevel Low Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ER Direct TxLightLevel Low Alert", - "description": "Policy to Audit/Deploy ER Direct TxLightLevel Low Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/frontDoors/templates/policy-arm/BackendHealthPercentage_15a67b66-30eb-4d0f-aa98-7350304347d0.json b/services/Network/frontDoors/templates/policy-arm/BackendHealthPercentage_15a67b66-30eb-4d0f-aa98-7350304347d0.json index cc1df0b10..844c4d935 100644 --- a/services/Network/frontDoors/templates/policy-arm/BackendHealthPercentage_15a67b66-30eb-4d0f-aa98-7350304347d0.json +++ b/services/Network/frontDoors/templates/policy-arm/BackendHealthPercentage_15a67b66-30eb-4d0f-aa98-7350304347d0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network frontdoors BackendHealthPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network frontdoors BackendHealthPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network frontdoors BackendHealthPercentage Alert", - "description": "Policy to Audit/Deploy Network frontdoors BackendHealthPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/frontDoors/templates/policy-arm/BackendRequestLatency_a4de0a96-9e79-4a03-a91c-cbd09ea3d29a.json b/services/Network/frontDoors/templates/policy-arm/BackendRequestLatency_a4de0a96-9e79-4a03-a91c-cbd09ea3d29a.json index 293fdfe3b..d0febef47 100644 --- a/services/Network/frontDoors/templates/policy-arm/BackendRequestLatency_a4de0a96-9e79-4a03-a91c-cbd09ea3d29a.json +++ b/services/Network/frontDoors/templates/policy-arm/BackendRequestLatency_a4de0a96-9e79-4a03-a91c-cbd09ea3d29a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network frontdoors BackendRequestLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network frontdoors BackendRequestLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network frontdoors BackendRequestLatency Alert", - "description": "Policy to Audit/Deploy Network frontdoors BackendRequestLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/frontDoors/templates/policy-arm/RequestCount_5ec4f863-ec6f-4fe8-b258-a53b3183138a.json b/services/Network/frontDoors/templates/policy-arm/RequestCount_5ec4f863-ec6f-4fe8-b258-a53b3183138a.json index 4b8521f06..4d4da9041 100644 --- a/services/Network/frontDoors/templates/policy-arm/RequestCount_5ec4f863-ec6f-4fe8-b258-a53b3183138a.json +++ b/services/Network/frontDoors/templates/policy-arm/RequestCount_5ec4f863-ec6f-4fe8-b258-a53b3183138a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network frontdoors RequestCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network frontdoors RequestCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network frontdoors RequestCount Alert", - "description": "Policy to Audit/Deploy Network frontdoors RequestCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/frontDoors/templates/policy-arm/TotalLatency_1987b5a9-bbc3-43c6-af35-cd69e61fe043.json b/services/Network/frontDoors/templates/policy-arm/TotalLatency_1987b5a9-bbc3-43c6-af35-cd69e61fe043.json index fff060fe5..606c118f8 100644 --- a/services/Network/frontDoors/templates/policy-arm/TotalLatency_1987b5a9-bbc3-43c6-af35-cd69e61fe043.json +++ b/services/Network/frontDoors/templates/policy-arm/TotalLatency_1987b5a9-bbc3-43c6-af35-cd69e61fe043.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network frontdoors TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network frontdoors TotalLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network frontdoors TotalLatency Alert", - "description": "Policy to Audit/Deploy Network frontdoors TotalLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/AllocatedSnatPorts_5b64d91c-54de-4f8c-a5d6-054967f4ceaf.json b/services/Network/loadBalancers/templates/policy-arm/AllocatedSnatPorts_5b64d91c-54de-4f8c-a5d6-054967f4ceaf.json index 3d6cf214e..9a48fa842 100644 --- a/services/Network/loadBalancers/templates/policy-arm/AllocatedSnatPorts_5b64d91c-54de-4f8c-a5d6-054967f4ceaf.json +++ b/services/Network/loadBalancers/templates/policy-arm/AllocatedSnatPorts_5b64d91c-54de-4f8c-a5d6-054967f4ceaf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network loadBalancers AllocatedSnatPorts Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network loadBalancers AllocatedSnatPorts Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network loadBalancers AllocatedSnatPorts Alert", - "description": "Policy to Audit/Deploy Network loadBalancers AllocatedSnatPorts Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/ByteCount_d15179b2-4b57-41e4-997b-dc7c380963d9.json b/services/Network/loadBalancers/templates/policy-arm/ByteCount_d15179b2-4b57-41e4-997b-dc7c380963d9.json index 15d363b80..70da1a7c3 100644 --- a/services/Network/loadBalancers/templates/policy-arm/ByteCount_d15179b2-4b57-41e4-997b-dc7c380963d9.json +++ b/services/Network/loadBalancers/templates/policy-arm/ByteCount_d15179b2-4b57-41e4-997b-dc7c380963d9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network loadBalancers Bytecount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network loadBalancers Bytecount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network loadBalancers Bytecount Alert", - "description": "Policy to Audit/Deploy Network loadBalancers Bytecount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/DipAvailability_a39efd3b-04ef-48d4-a862-053092bdd6e5.json b/services/Network/loadBalancers/templates/policy-arm/DipAvailability_a39efd3b-04ef-48d4-a862-053092bdd6e5.json index 7aaa80371..c8ed396e8 100644 --- a/services/Network/loadBalancers/templates/policy-arm/DipAvailability_a39efd3b-04ef-48d4-a862-053092bdd6e5.json +++ b/services/Network/loadBalancers/templates/policy-arm/DipAvailability_a39efd3b-04ef-48d4-a862-053092bdd6e5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ALB Health Probe Status Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ALB Health Probe Status Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ALB Health Probe Status Alert", - "description": "Policy to Audit/Deploy ALB Health Probe Status Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/GlobalBackendAvailability_055c20da-0d21-4c6a-a80b-f2c4b3887804.json b/services/Network/loadBalancers/templates/policy-arm/GlobalBackendAvailability_055c20da-0d21-4c6a-a80b-f2c4b3887804.json index cd8eb23e2..cbe95c8a2 100644 --- a/services/Network/loadBalancers/templates/policy-arm/GlobalBackendAvailability_055c20da-0d21-4c6a-a80b-f2c4b3887804.json +++ b/services/Network/loadBalancers/templates/policy-arm/GlobalBackendAvailability_055c20da-0d21-4c6a-a80b-f2c4b3887804.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ALB Global Backend Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ALB Global Backend Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ALB Global Backend Availability Alert", - "description": "Policy to Audit/Deploy ALB Global Backend Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/PacketCount_d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5.json b/services/Network/loadBalancers/templates/policy-arm/PacketCount_d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5.json index 2acca454f..c51df21f8 100644 --- a/services/Network/loadBalancers/templates/policy-arm/PacketCount_d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5.json +++ b/services/Network/loadBalancers/templates/policy-arm/PacketCount_d766dc3e-42cc-42a7-ba4f-3c1d7fa295c5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network loadBalancers PacketCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network loadBalancers PacketCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network loadBalancers PacketCount Alert", - "description": "Policy to Audit/Deploy Network loadBalancers PacketCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/SYNCount_94c90db6-8fd7-460c-b704-c2a429913376.json b/services/Network/loadBalancers/templates/policy-arm/SYNCount_94c90db6-8fd7-460c-b704-c2a429913376.json index 232a5bda2..3d78aa2be 100644 --- a/services/Network/loadBalancers/templates/policy-arm/SYNCount_94c90db6-8fd7-460c-b704-c2a429913376.json +++ b/services/Network/loadBalancers/templates/policy-arm/SYNCount_94c90db6-8fd7-460c-b704-c2a429913376.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network loadBalancers SYNCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network loadBalancers SYNCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network loadBalancers SYNCount Alert", - "description": "Policy to Audit/Deploy Network loadBalancers SYNCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/SnatConnectionCount_39d3123b-daaa-4f70-97a3-8a4f326104af.json b/services/Network/loadBalancers/templates/policy-arm/SnatConnectionCount_39d3123b-daaa-4f70-97a3-8a4f326104af.json index 9b6f4b06c..cc314c4f1 100644 --- a/services/Network/loadBalancers/templates/policy-arm/SnatConnectionCount_39d3123b-daaa-4f70-97a3-8a4f326104af.json +++ b/services/Network/loadBalancers/templates/policy-arm/SnatConnectionCount_39d3123b-daaa-4f70-97a3-8a4f326104af.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network loadBalancers SnatConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network loadBalancers SnatConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network loadBalancers SnatConnectionCount Alert", - "description": "Policy to Audit/Deploy Network loadBalancers SnatConnectionCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/UsedSNATPorts_a92cb746-f19f-450b-b413-8b9710b0176b.json b/services/Network/loadBalancers/templates/policy-arm/UsedSNATPorts_a92cb746-f19f-450b-b413-8b9710b0176b.json index e9792f707..89d92c32c 100644 --- a/services/Network/loadBalancers/templates/policy-arm/UsedSNATPorts_a92cb746-f19f-450b-b413-8b9710b0176b.json +++ b/services/Network/loadBalancers/templates/policy-arm/UsedSNATPorts_a92cb746-f19f-450b-b413-8b9710b0176b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ALB Used SNAT Ports Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ALB Used SNAT Ports Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ALB Used SNAT Ports Alert", - "description": "Policy to Audit/Deploy ALB Used SNAT Ports Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/loadBalancers/templates/policy-arm/VipAvailability_b239797f-e627-4e48-8609-94db72098c3d.json b/services/Network/loadBalancers/templates/policy-arm/VipAvailability_b239797f-e627-4e48-8609-94db72098c3d.json index 25acb81a5..fe3994722 100644 --- a/services/Network/loadBalancers/templates/policy-arm/VipAvailability_b239797f-e627-4e48-8609-94db72098c3d.json +++ b/services/Network/loadBalancers/templates/policy-arm/VipAvailability_b239797f-e627-4e48-8609-94db72098c3d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ALB Data Path Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ALB Data Path Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ALB Data Path Availability Alert", - "description": "Policy to Audit/Deploy ALB Data Path Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/natGateways/templates/policy-arm/ByteCount_e1808855-9a4d-464d-b75a-a41183c520bd.json b/services/Network/natGateways/templates/policy-arm/ByteCount_e1808855-9a4d-464d-b75a-a41183c520bd.json index 180b7dd44..0b1aa389b 100644 --- a/services/Network/natGateways/templates/policy-arm/ByteCount_e1808855-9a4d-464d-b75a-a41183c520bd.json +++ b/services/Network/natGateways/templates/policy-arm/ByteCount_e1808855-9a4d-464d-b75a-a41183c520bd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network natGateways ByteCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network natGateways ByteCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network natGateways ByteCount Alert", - "description": "Policy to Audit/Deploy Network natGateways ByteCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/natGateways/templates/policy-arm/DatapathAvailability_7cb8821d-c178-4c02-ba8a-1c6fcbcde2e8.json b/services/Network/natGateways/templates/policy-arm/DatapathAvailability_7cb8821d-c178-4c02-ba8a-1c6fcbcde2e8.json index ddaa2bf80..0af6e0429 100644 --- a/services/Network/natGateways/templates/policy-arm/DatapathAvailability_7cb8821d-c178-4c02-ba8a-1c6fcbcde2e8.json +++ b/services/Network/natGateways/templates/policy-arm/DatapathAvailability_7cb8821d-c178-4c02-ba8a-1c6fcbcde2e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network natGateways DatapathAvailability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network natGateways DatapathAvailability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network natGateways DatapathAvailability Alert", - "description": "Policy to Audit/Deploy Network natGateways DatapathAvailability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/natGateways/templates/policy-arm/PacketDropCount_53bb49ec-ed5b-40c3-999b-efefa9be4536.json b/services/Network/natGateways/templates/policy-arm/PacketDropCount_53bb49ec-ed5b-40c3-999b-efefa9be4536.json index 0bcb6aca0..301025198 100644 --- a/services/Network/natGateways/templates/policy-arm/PacketDropCount_53bb49ec-ed5b-40c3-999b-efefa9be4536.json +++ b/services/Network/natGateways/templates/policy-arm/PacketDropCount_53bb49ec-ed5b-40c3-999b-efefa9be4536.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network natGateways PacketDropCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network natGateways PacketDropCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network natGateways PacketDropCount Alert", - "description": "Policy to Audit/Deploy Network natGateways PacketDropCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/natGateways/templates/policy-arm/SNATConnectionCount_4c2e410b-644e-4331-a55c-19bfdc3e4754.json b/services/Network/natGateways/templates/policy-arm/SNATConnectionCount_4c2e410b-644e-4331-a55c-19bfdc3e4754.json index e23b946bb..0be365557 100644 --- a/services/Network/natGateways/templates/policy-arm/SNATConnectionCount_4c2e410b-644e-4331-a55c-19bfdc3e4754.json +++ b/services/Network/natGateways/templates/policy-arm/SNATConnectionCount_4c2e410b-644e-4331-a55c-19bfdc3e4754.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network natGateways SNATConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network natGateways SNATConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network natGateways SNATConnectionCount Alert", - "description": "Policy to Audit/Deploy Network natGateways SNATConnectionCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/natGateways/templates/policy-arm/TotalConnectionCount_c57f27b1-151c-4d27-a77e-b85547d817f7.json b/services/Network/natGateways/templates/policy-arm/TotalConnectionCount_c57f27b1-151c-4d27-a77e-b85547d817f7.json index d2f9a4d9f..d5fc8a82d 100644 --- a/services/Network/natGateways/templates/policy-arm/TotalConnectionCount_c57f27b1-151c-4d27-a77e-b85547d817f7.json +++ b/services/Network/natGateways/templates/policy-arm/TotalConnectionCount_c57f27b1-151c-4d27-a77e-b85547d817f7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network natGateways TotalConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network natGateways TotalConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network natGateways TotalConnectionCount Alert", - "description": "Policy to Audit/Deploy Network natGateways TotalConnectionCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ChecksFailedPercent_61cbc62a-1382-4581-850f-4ea69d8a9615.json b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ChecksFailedPercent_61cbc62a-1382-4581-850f-4ea69d8a9615.json index a960053b6..510b78623 100644 --- a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ChecksFailedPercent_61cbc62a-1382-4581-850f-4ea69d8a9615.json +++ b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ChecksFailedPercent_61cbc62a-1382-4581-850f-4ea69d8a9615.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network networkWatchers connectionMonitors ChecksFailedPercent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network networkWatchers connectionMonitors ChecksFailedPercent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network networkWatchers connectionMonitors ChecksFailedPercent Alert", - "description": "Policy to Audit/Deploy Network networkWatchers connectionMonitors ChecksFailedPercent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ProbesFailedPercent_7659c9f8-c257-4f0b-a8d9-1ceae6177ff5.json b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ProbesFailedPercent_7659c9f8-c257-4f0b-a8d9-1ceae6177ff5.json index d5aeecd57..02f9a7409 100644 --- a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ProbesFailedPercent_7659c9f8-c257-4f0b-a8d9-1ceae6177ff5.json +++ b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-ProbesFailedPercent_7659c9f8-c257-4f0b-a8d9-1ceae6177ff5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network networkWatchers connectionMonitors ProbesFailedPercent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network networkWatchers connectionMonitors ProbesFailedPercent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network networkWatchers connectionMonitors ProbesFailedPercent Alert", - "description": "Policy to Audit/Deploy Network networkWatchers connectionMonitors ProbesFailedPercent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-RoundTripTimeMs_1744119b-cabb-4ac4-97c6-a61249a6c5be.json b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-RoundTripTimeMs_1744119b-cabb-4ac4-97c6-a61249a6c5be.json index 968da32b5..aa64c3188 100644 --- a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-RoundTripTimeMs_1744119b-cabb-4ac4-97c6-a61249a6c5be.json +++ b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-RoundTripTimeMs_1744119b-cabb-4ac4-97c6-a61249a6c5be.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network networkWatchers connectionMonitors RoundTripTimeMs Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network networkWatchers connectionMonitors RoundTripTimeMs Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network networkWatchers connectionMonitors RoundTripTimeMs Alert", - "description": "Policy to Audit/Deploy Network networkWatchers connectionMonitors RoundTripTimeMs Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-TestResult_370ff9a8-11ea-469a-9f52-b1c39d61c39d.json b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-TestResult_370ff9a8-11ea-469a-9f52-b1c39d61c39d.json index 119a18e67..d0524e0a1 100644 --- a/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-TestResult_370ff9a8-11ea-469a-9f52-b1c39d61c39d.json +++ b/services/Network/networkWatchers/templates/policy-arm/connectionMonitors-TestResult_370ff9a8-11ea-469a-9f52-b1c39d61c39d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network networkWatchers connectionMonitors TestResult Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network networkWatchers connectionMonitors TestResult Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network networkWatchers connectionMonitors TestResult Alert", - "description": "Policy to Audit/Deploy Network networkWatchers connectionMonitors TestResult Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/privateDnsZones/templates/policy-arm/QueryVolume_4d219611-6487-4fcf-9bac-29cd9e5046a9.json b/services/Network/privateDnsZones/templates/policy-arm/QueryVolume_4d219611-6487-4fcf-9bac-29cd9e5046a9.json index 467a54e93..fbb197e95 100644 --- a/services/Network/privateDnsZones/templates/policy-arm/QueryVolume_4d219611-6487-4fcf-9bac-29cd9e5046a9.json +++ b/services/Network/privateDnsZones/templates/policy-arm/QueryVolume_4d219611-6487-4fcf-9bac-29cd9e5046a9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PDNSZ Query Volume Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PDNSZ Query Volume Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PDNSZ Query Volume Alert", - "description": "Policy to Audit/Deploy PDNSZ Query Volume Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/privateDnsZones/templates/policy-arm/RecordSetCapacityUtilization_95473b2f-74ea-4929-bf22-f6f3be4ccbd5.json b/services/Network/privateDnsZones/templates/policy-arm/RecordSetCapacityUtilization_95473b2f-74ea-4929-bf22-f6f3be4ccbd5.json index c5402c8cf..2f08366fb 100644 --- a/services/Network/privateDnsZones/templates/policy-arm/RecordSetCapacityUtilization_95473b2f-74ea-4929-bf22-f6f3be4ccbd5.json +++ b/services/Network/privateDnsZones/templates/policy-arm/RecordSetCapacityUtilization_95473b2f-74ea-4929-bf22-f6f3be4ccbd5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PDNSZ Record Set Capacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PDNSZ Record Set Capacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PDNSZ Record Set Capacity Alert", - "description": "Policy to Audit/Deploy PDNSZ Record Set Capacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/privateDnsZones/templates/policy-arm/RecordSetCount_b410b69e-8bd5-44fe-899d-f4d5dce9931a.json b/services/Network/privateDnsZones/templates/policy-arm/RecordSetCount_b410b69e-8bd5-44fe-899d-f4d5dce9931a.json index df6085522..69327ffd1 100644 --- a/services/Network/privateDnsZones/templates/policy-arm/RecordSetCount_b410b69e-8bd5-44fe-899d-f4d5dce9931a.json +++ b/services/Network/privateDnsZones/templates/policy-arm/RecordSetCount_b410b69e-8bd5-44fe-899d-f4d5dce9931a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network privateDnsZones RecordSetCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network privateDnsZones RecordSetCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network privateDnsZones RecordSetCount Alert", - "description": "Policy to Audit/Deploy Network privateDnsZones RecordSetCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkLinkCapacityUtilization_e71f87d1-81bb-4ee6-802d-9da4ab1cb3e3.json b/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkLinkCapacityUtilization_e71f87d1-81bb-4ee6-802d-9da4ab1cb3e3.json index 430915687..f9b0699dc 100644 --- a/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkLinkCapacityUtilization_e71f87d1-81bb-4ee6-802d-9da4ab1cb3e3.json +++ b/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkLinkCapacityUtilization_e71f87d1-81bb-4ee6-802d-9da4ab1cb3e3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PDNSZ Capacity Utilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PDNSZ Capacity Utilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PDNSZ Capacity Utilization Alert", - "description": "Policy to Audit/Deploy PDNSZ Capacity Utilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkWithRegistrationCapacityUtilization_c064753f-ea6a-4940-b603-975adb5127ae.json b/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkWithRegistrationCapacityUtilization_c064753f-ea6a-4940-b603-975adb5127ae.json index a5a80d446..f98b1f025 100644 --- a/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkWithRegistrationCapacityUtilization_c064753f-ea6a-4940-b603-975adb5127ae.json +++ b/services/Network/privateDnsZones/templates/policy-arm/VirtualNetworkWithRegistrationCapacityUtilization_c064753f-ea6a-4940-b603-975adb5127ae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PDNSZ Registration Capacity Utilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PDNSZ Registration Capacity Utilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PDNSZ Registration Capacity Utilization Alert", - "description": "Policy to Audit/Deploy PDNSZ Registration Capacity Utilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/BytesInDDoS_652acaf1-c5a1-4a88-b3bb-822a14dece19.json b/services/Network/publicIPAddresses/templates/policy-arm/BytesInDDoS_652acaf1-c5a1-4a88-b3bb-822a14dece19.json index 329626fd4..e9e47ad4e 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/BytesInDDoS_652acaf1-c5a1-4a88-b3bb-822a14dece19.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/BytesInDDoS_652acaf1-c5a1-4a88-b3bb-822a14dece19.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PIP Bytes in DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PIP Bytes in DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PIP Bytes in DDoS Attack Alert", - "description": "Policy to Audit/Deploy PIP Bytes in DDoS Attack Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/IfUnderDDoSAttack_cb9a5dd7-4ae2-4adf-ab11-95363032ee5d.json b/services/Network/publicIPAddresses/templates/policy-arm/IfUnderDDoSAttack_cb9a5dd7-4ae2-4adf-ab11-95363032ee5d.json index 4345782eb..1c356c761 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/IfUnderDDoSAttack_cb9a5dd7-4ae2-4adf-ab11-95363032ee5d.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/IfUnderDDoSAttack_cb9a5dd7-4ae2-4adf-ab11-95363032ee5d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PIP DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PIP DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PIP DDoS Attack Alert", - "description": "Policy to Audit/Deploy PIP DDoS Attack Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/PacketsInDDoS_a78addf1-4632-4fc2-9afc-d1fb75049872.json b/services/Network/publicIPAddresses/templates/policy-arm/PacketsInDDoS_a78addf1-4632-4fc2-9afc-d1fb75049872.json index 0937621f4..59299a1ec 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/PacketsInDDoS_a78addf1-4632-4fc2-9afc-d1fb75049872.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/PacketsInDDoS_a78addf1-4632-4fc2-9afc-d1fb75049872.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PIP Packets in DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PIP Packets in DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PIP Packets in DDoS Attack Alert", - "description": "Policy to Audit/Deploy PIP Packets in DDoS Attack Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/TCPBytesInDDoS_54d85ec1-6c8d-4372-bdab-f6f0b5cc12c4.json b/services/Network/publicIPAddresses/templates/policy-arm/TCPBytesInDDoS_54d85ec1-6c8d-4372-bdab-f6f0b5cc12c4.json index 126a786b3..2c166e985 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/TCPBytesInDDoS_54d85ec1-6c8d-4372-bdab-f6f0b5cc12c4.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/TCPBytesInDDoS_54d85ec1-6c8d-4372-bdab-f6f0b5cc12c4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network publicIPAddresses TCPBytesInDDoS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network publicIPAddresses TCPBytesInDDoS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network publicIPAddresses TCPBytesInDDoS Alert", - "description": "Policy to Audit/Deploy Network publicIPAddresses TCPBytesInDDoS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/TCPPacketsInDDoS_529b0b1f-46fc-423f-94ab-dd71dd7894e2.json b/services/Network/publicIPAddresses/templates/policy-arm/TCPPacketsInDDoS_529b0b1f-46fc-423f-94ab-dd71dd7894e2.json index f84bb5a7f..f1b2f106b 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/TCPPacketsInDDoS_529b0b1f-46fc-423f-94ab-dd71dd7894e2.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/TCPPacketsInDDoS_529b0b1f-46fc-423f-94ab-dd71dd7894e2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network publicIPAddresses TCPPacketsInDDoS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network publicIPAddresses TCPPacketsInDDoS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network publicIPAddresses TCPPacketsInDDoS Alert", - "description": "Policy to Audit/Deploy Network publicIPAddresses TCPPacketsInDDoS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/UDPBytesInDDoS_8020f41e-ca61-43b4-88ca-f520057dfa92.json b/services/Network/publicIPAddresses/templates/policy-arm/UDPBytesInDDoS_8020f41e-ca61-43b4-88ca-f520057dfa92.json index eb7147a95..5908402a8 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/UDPBytesInDDoS_8020f41e-ca61-43b4-88ca-f520057dfa92.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/UDPBytesInDDoS_8020f41e-ca61-43b4-88ca-f520057dfa92.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network publicIPAddresses UDPBytesInDDoS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network publicIPAddresses UDPBytesInDDoS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network publicIPAddresses UDPBytesInDDoS Alert", - "description": "Policy to Audit/Deploy Network publicIPAddresses UDPBytesInDDoS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/UDPPacketsInDDoS_27181c58-ca7a-433f-a0ee-a7a33102cb36.json b/services/Network/publicIPAddresses/templates/policy-arm/UDPPacketsInDDoS_27181c58-ca7a-433f-a0ee-a7a33102cb36.json index 558dd6f90..759869835 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/UDPPacketsInDDoS_27181c58-ca7a-433f-a0ee-a7a33102cb36.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/UDPPacketsInDDoS_27181c58-ca7a-433f-a0ee-a7a33102cb36.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network publicIPAddresses UDPPacketsInDDoS Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network publicIPAddresses UDPPacketsInDDoS Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network publicIPAddresses UDPPacketsInDDoS Alert", - "description": "Policy to Audit/Deploy Network publicIPAddresses UDPPacketsInDDoS Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/publicIPAddresses/templates/policy-arm/VipAvailability_7f4c355a-5411-4400-826a-b82007bbd83d.json b/services/Network/publicIPAddresses/templates/policy-arm/VipAvailability_7f4c355a-5411-4400-826a-b82007bbd83d.json index 809536815..3d0fdd136 100644 --- a/services/Network/publicIPAddresses/templates/policy-arm/VipAvailability_7f4c355a-5411-4400-826a-b82007bbd83d.json +++ b/services/Network/publicIPAddresses/templates/policy-arm/VipAvailability_7f4c355a-5411-4400-826a-b82007bbd83d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PIP VIP Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PIP VIP Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PIP VIP Availability Alert", - "description": "Policy to Audit/Deploy PIP VIP Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/trafficmanagerprofiles/templates/policy-arm/ProbeAgentCurrentEndpointStateByProfileResourceId_dd3f294f-d12e-4e34-8f6a-c304d3d977e2.json b/services/Network/trafficmanagerprofiles/templates/policy-arm/ProbeAgentCurrentEndpointStateByProfileResourceId_dd3f294f-d12e-4e34-8f6a-c304d3d977e2.json index 9f847a4b7..0c2fccf9e 100644 --- a/services/Network/trafficmanagerprofiles/templates/policy-arm/ProbeAgentCurrentEndpointStateByProfileResourceId_dd3f294f-d12e-4e34-8f6a-c304d3d977e2.json +++ b/services/Network/trafficmanagerprofiles/templates/policy-arm/ProbeAgentCurrentEndpointStateByProfileResourceId_dd3f294f-d12e-4e34-8f6a-c304d3d977e2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network trafficmanagerprofiles ProbeAgentCurrentEndpointStateByProfileResourceId Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network trafficmanagerprofiles ProbeAgentCurrentEndpointStateByProfileResourceId Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network trafficmanagerprofiles ProbeAgentCurrentEndpointStateByProfileResourceId Alert", - "description": "Policy to Audit/Deploy Network trafficmanagerprofiles ProbeAgentCurrentEndpointStateByProfileResourceId Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/trafficmanagerprofiles/templates/policy-arm/QpsByEndpoint_f4699243-1ba2-49a8-85f8-c4a22a563925.json b/services/Network/trafficmanagerprofiles/templates/policy-arm/QpsByEndpoint_f4699243-1ba2-49a8-85f8-c4a22a563925.json index 94c3e1f46..f9255030e 100644 --- a/services/Network/trafficmanagerprofiles/templates/policy-arm/QpsByEndpoint_f4699243-1ba2-49a8-85f8-c4a22a563925.json +++ b/services/Network/trafficmanagerprofiles/templates/policy-arm/QpsByEndpoint_f4699243-1ba2-49a8-85f8-c4a22a563925.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network trafficmanagerprofiles QpsByEndpoint Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network trafficmanagerprofiles QpsByEndpoint Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network trafficmanagerprofiles QpsByEndpoint Alert", - "description": "Policy to Audit/Deploy Network trafficmanagerprofiles QpsByEndpoint Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/AverageBandwidth_88642ff7-6c08-486a-9bf2-37764d5bf6a3.json b/services/Network/virtualNetworkGateways/templates/policy-arm/AverageBandwidth_88642ff7-6c08-486a-9bf2-37764d5bf6a3.json index 44b58423b..f94bcd85a 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/AverageBandwidth_88642ff7-6c08-486a-9bf2-37764d5bf6a3.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/AverageBandwidth_88642ff7-6c08-486a-9bf2-37764d5bf6a3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Network virtualNetworkGateways AverageBandwidth Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Network virtualNetworkGateways AverageBandwidth Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Network virtualNetworkGateways AverageBandwidth Alert", - "description": "Policy to Audit/Deploy Network virtualNetworkGateways AverageBandwidth Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayBitsPerSecond_4c3c25d2-7473-4d0c-9174-609162571859.json b/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayBitsPerSecond_4c3c25d2-7473-4d0c-9174-609162571859.json index 33e4299bd..b3ebc1602 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayBitsPerSecond_4c3c25d2-7473-4d0c-9174-609162571859.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayBitsPerSecond_4c3c25d2-7473-4d0c-9174-609162571859.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG ExpressRoute Bits Per Second Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG ExpressRoute Bits Per Second Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG ExpressRoute Bits Per Second Alert", - "description": "Policy to Audit/Deploy VNetG ExpressRoute Bits Per Second Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_56491bc7-1267-42a2-92c6-fe9efe822ff1.json b/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_56491bc7-1267-42a2-92c6-fe9efe822ff1.json index 28f0d462d..1b85879bd 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_56491bc7-1267-42a2-92c6-fe9efe822ff1.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/ExpressRouteGatewayCpuUtilization_56491bc7-1267-42a2-92c6-fe9efe822ff1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG ExpressRoute CPU Utilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG ExpressRoute CPU Utilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG ExpressRoute CPU Utilization Alert", - "description": "Policy to Audit/Deploy VNetG ExpressRoute CPU Utilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelAverageBandwidth_09bb7f01-a715-437d-b692-325f89e1869e.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelAverageBandwidth_09bb7f01-a715-437d-b692-325f89e1869e.json index 2c939feda..ea7c57ec7 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelAverageBandwidth_09bb7f01-a715-437d-b692-325f89e1869e.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelAverageBandwidth_09bb7f01-a715-437d-b692-325f89e1869e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Tunnel Bandwidth Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Tunnel Bandwidth Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Tunnel Bandwidth Alert", - "description": "Policy to Audit/Deploy VNetG Tunnel Bandwidth Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressBytes_092f6e09-1eb5-436d-b7c2-eadb70318920.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressBytes_092f6e09-1eb5-436d-b7c2-eadb70318920.json index cb6b7b8f2..56ad2e8e5 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressBytes_092f6e09-1eb5-436d-b7c2-eadb70318920.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressBytes_092f6e09-1eb5-436d-b7c2-eadb70318920.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Tunnel Egress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Tunnel Egress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Tunnel Egress Alert", - "description": "Policy to Audit/Deploy VNetG Tunnel Egress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropCount_6f02e3e8-9bfa-4312-a352-6506139e3dba.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropCount_6f02e3e8-9bfa-4312-a352-6506139e3dba.json index 9086d8dcd..66b72811e 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropCount_6f02e3e8-9bfa-4312-a352-6506139e3dba.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropCount_6f02e3e8-9bfa-4312-a352-6506139e3dba.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Egress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Egress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Egress Packet Drop Count Alert", - "description": "Policy to Audit/Deploy VNetG Egress Packet Drop Count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_ca909c09-89c4-467e-bdca-9140e72d6c82.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_ca909c09-89c4-467e-bdca-9140e72d6c82.json index 50282eb92..564101fbf 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_ca909c09-89c4-467e-bdca-9140e72d6c82.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_ca909c09-89c4-467e-bdca-9140e72d6c82.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Egress Packet Drop Mismatch Alert", - "description": "Policy to Audit/Deploy VNetG Egress Packet Drop Mismatch Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressBytes_a34fa329-da3e-4947-8d06-9bd2bee6c8a7.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressBytes_a34fa329-da3e-4947-8d06-9bd2bee6c8a7.json index 7cf6be5fe..6e3684a4d 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressBytes_a34fa329-da3e-4947-8d06-9bd2bee6c8a7.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressBytes_a34fa329-da3e-4947-8d06-9bd2bee6c8a7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Tunnel Ingress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Tunnel Ingress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Tunnel Ingress Alert", - "description": "Policy to Audit/Deploy VNetG Tunnel Ingress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropCount_b511650f-535c-45d1-a089-0ea402245deb.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropCount_b511650f-535c-45d1-a089-0ea402245deb.json index aa0e65920..fdc753c26 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropCount_b511650f-535c-45d1-a089-0ea402245deb.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropCount_b511650f-535c-45d1-a089-0ea402245deb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Ingress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Ingress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Ingress Packet Drop Count Alert", - "description": "Policy to Audit/Deploy VNetG Ingress Packet Drop Count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_1cc4a539-e4bf-40e8-a280-f4e9e178fb51.json b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_1cc4a539-e4bf-40e8-a280-f4e9e178fb51.json index 6177c3bce..221699675 100644 --- a/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_1cc4a539-e4bf-40e8-a280-f4e9e178fb51.json +++ b/services/Network/virtualNetworkGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_1cc4a539-e4bf-40e8-a280-f4e9e178fb51.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Egress Packet Drop Mismatch Alert", - "description": "Policy to Audit/Deploy VNetG Egress Packet Drop Mismatch Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/virtualNetworks/templates/policy-arm/IfUnderDDoSAttack_72dea6f4-858c-423f-8189-406aac7d20ac.json b/services/Network/virtualNetworks/templates/policy-arm/IfUnderDDoSAttack_72dea6f4-858c-423f-8189-406aac7d20ac.json index a53839df3..8a3412a88 100644 --- a/services/Network/virtualNetworks/templates/policy-arm/IfUnderDDoSAttack_72dea6f4-858c-423f-8189-406aac7d20ac.json +++ b/services/Network/virtualNetworks/templates/policy-arm/IfUnderDDoSAttack_72dea6f4-858c-423f-8189-406aac7d20ac.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNet DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNet DDoS Attack Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNet DDoS Attack Alert", - "description": "Policy to Audit/Deploy VNet DDoS Attack Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/BGPPeerStatus_b0ea832c-aae8-42c0-ad83-0bb13d66d56e.json b/services/Network/vpnGateways/templates/policy-arm/BGPPeerStatus_b0ea832c-aae8-42c0-ad83-0bb13d66d56e.json index 48ddb6a79..1c54e5d70 100644 --- a/services/Network/vpnGateways/templates/policy-arm/BGPPeerStatus_b0ea832c-aae8-42c0-ad83-0bb13d66d56e.json +++ b/services/Network/vpnGateways/templates/policy-arm/BGPPeerStatus_b0ea832c-aae8-42c0-ad83-0bb13d66d56e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG BGP Peer Status Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG BGP Peer Status Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG BGP Peer Status Alert", - "description": "Policy to Audit/Deploy VPNG BGP Peer Status Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelAverageBandwidth_d74fd111-125f-45b8-8bbc-e23bd40aa869.json b/services/Network/vpnGateways/templates/policy-arm/TunnelAverageBandwidth_d74fd111-125f-45b8-8bbc-e23bd40aa869.json index 96d1b7055..72b88b1fb 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelAverageBandwidth_d74fd111-125f-45b8-8bbc-e23bd40aa869.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelAverageBandwidth_d74fd111-125f-45b8-8bbc-e23bd40aa869.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Bandwidth Utilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Bandwidth Utilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Bandwidth Utilization Alert", - "description": "Policy to Audit/Deploy VPNG Bandwidth Utilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressBytes_cd3b834d-f34f-4a67-af01-b1c5d32195a9.json b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressBytes_cd3b834d-f34f-4a67-af01-b1c5d32195a9.json index d752fa4e2..763c3c722 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressBytes_cd3b834d-f34f-4a67-af01-b1c5d32195a9.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressBytes_cd3b834d-f34f-4a67-af01-b1c5d32195a9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Egress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Egress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Egress Alert", - "description": "Policy to Audit/Deploy VPNG Egress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropCount_c5ae6d80-59db-4087-8e9b-0df36c54ebe9.json b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropCount_c5ae6d80-59db-4087-8e9b-0df36c54ebe9.json index 39d68431b..d90410e39 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropCount_c5ae6d80-59db-4087-8e9b-0df36c54ebe9.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropCount_c5ae6d80-59db-4087-8e9b-0df36c54ebe9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Egress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Egress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Egress Packet Drop Count Alert", - "description": "Policy to Audit/Deploy VPNG Egress Packet Drop Count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_7b361791-127e-4a6f-9c1b-c8d9f41ec223.json b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_7b361791-127e-4a6f-9c1b-c8d9f41ec223.json index 4301d41d5..46f7da48b 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_7b361791-127e-4a6f-9c1b-c8d9f41ec223.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelEgressPacketDropTSMismatch_7b361791-127e-4a6f-9c1b-c8d9f41ec223.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Egress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Egress Packet Drop Mismatch Alert", - "description": "Policy to Audit/Deploy VPNG Egress Packet Drop Mismatch Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressBytes_a05d97b8-37b9-4100-a860-d57363aaaf5f.json b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressBytes_a05d97b8-37b9-4100-a860-d57363aaaf5f.json index 7cc606ccb..58d923301 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressBytes_a05d97b8-37b9-4100-a860-d57363aaaf5f.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressBytes_a05d97b8-37b9-4100-a860-d57363aaaf5f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Ingress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Ingress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Ingress Alert", - "description": "Policy to Audit/Deploy VPNG Ingress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropCount_c2c9a09d-7fad-4c67-9a29-4c2c376a7214.json b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropCount_c2c9a09d-7fad-4c67-9a29-4c2c376a7214.json index 404610ea3..978fdc3a7 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropCount_c2c9a09d-7fad-4c67-9a29-4c2c376a7214.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropCount_c2c9a09d-7fad-4c67-9a29-4c2c376a7214.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VNetG Ingress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VNetG Ingress Packet Drop Count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VNetG Ingress Packet Drop Count Alert", - "description": "Policy to Audit/Deploy VNetG Ingress Packet Drop Count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_7affb4da-2058-4f12-b15b-ca58e92b63e5.json b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_7affb4da-2058-4f12-b15b-ca58e92b63e5.json index 75b3bb1d9..8492c0311 100644 --- a/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_7affb4da-2058-4f12-b15b-ca58e92b63e5.json +++ b/services/Network/vpnGateways/templates/policy-arm/TunnelIngressPacketDropTSMismatch_7affb4da-2058-4f12-b15b-ca58e92b63e5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy VPNG Ingress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy VPNG Ingress Packet Drop Mismatch Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy VPNG Ingress Packet Drop Mismatch Alert", - "description": "Policy to Audit/Deploy VPNG Ingress Packet Drop Mismatch Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Network", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytesMemory_99ba0b14-4b3c-49b5-8763-3161b9aae538.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytesMemory_99ba0b14-4b3c-49b5-8763-3161b9aae538.json index dc6d6d539..fe26e3a83 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytesMemory_99ba0b14-4b3c-49b5-8763-3161b9aae538.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytesMemory_99ba0b14-4b3c-49b5-8763-3161b9aae538.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Available MBytes Memory Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Available MBytes Memory Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Available MBytes Memory Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Available MBytes Memory Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytes_b0c5e86f-eb2d-41ea-a4a0-9819ad841c70.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytes_b0c5e86f-eb2d-41ea-a4a0-9819ad841c70.json index 4722904f4..d02c7ab16 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytes_b0c5e86f-eb2d-41ea-a4a0-9819ad841c70.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMBytes_b0c5e86f-eb2d-41ea-a4a0-9819ad841c70.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Available MBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Available MBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Available MBytes Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Available MBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMemory_91044c16-83bc-457f-80a9-360bad5dedb4.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMemory_91044c16-83bc-457f-80a9-360bad5dedb4.json index 43ed8195b..55845f5a2 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMemory_91044c16-83bc-457f-80a9-360bad5dedb4.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvailableMemory_91044c16-83bc-457f-80a9-360bad5dedb4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Available Memory Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Available Memory Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Available Memory Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Available Memory Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecRead_8b472051-ff68-4059-9e50-243bfb64bae4.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecRead_8b472051-ff68-4059-9e50-243bfb64bae4.json index da5d952d8..a1a773d15 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecRead_8b472051-ff68-4059-9e50-243bfb64bae4.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecRead_8b472051-ff68-4059-9e50-243bfb64bae4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Avg. Disk sec/Read Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Avg. Disk sec/Read Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Avg. Disk sec/Read Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Avg. Disk sec/Read Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecWrite_aad0e64e-3cda-45bf-b6bd-8cff29ee35e5.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecWrite_aad0e64e-3cda-45bf-b6bd-8cff29ee35e5.json index 3adf0507b..8beb706db 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecWrite_aad0e64e-3cda-45bf-b6bd-8cff29ee35e5.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageAvgDisksecWrite_aad0e64e-3cda-45bf-b6bd-8cff29ee35e5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Avg. Disk sec/Write Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Avg. Disk sec/Write Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Avg. Disk sec/Write Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Avg. Disk sec/Write Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesReceivedsec_60ec2790-dc83-419c-bdb5-38da9a477c68.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesReceivedsec_60ec2790-dc83-419c-bdb5-38da9a477c68.json index da0ba55b0..a562ff607 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesReceivedsec_60ec2790-dc83-419c-bdb5-38da9a477c68.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesReceivedsec_60ec2790-dc83-419c-bdb5-38da9a477c68.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Bytes Received/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Bytes Received/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Bytes Received/sec Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Bytes Received/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesSentsec_de6d5087-bc5a-474f-9319-248a3c03ab44.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesSentsec_de6d5087-bc5a-474f-9319-248a3c03ab44.json index 91a12a052..257234b38 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesSentsec_de6d5087-bc5a-474f-9319-248a3c03ab44.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageBytesSentsec_de6d5087-bc5a-474f-9319-248a3c03ab44.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Bytes Sent/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Bytes Sent/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Bytes Sent/sec Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Bytes Sent/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageCommittedBytesInUse_a70e406c-a0ae-4e0f-99cd-8b0836812c59.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageCommittedBytesInUse_a70e406c-a0ae-4e0f-99cd-8b0836812c59.json index 2fd7e72d4..ad29cd9fc 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageCommittedBytesInUse_a70e406c-a0ae-4e0f-99cd-8b0836812c59.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageCommittedBytesInUse_a70e406c-a0ae-4e0f-99cd-8b0836812c59.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Committed Bytes In Use Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Committed Bytes In Use Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Committed Bytes In Use Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Committed Bytes In Use Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageCurrentDiskQueueLength_08a4f049-9bb8-45d0-9dfb-320f385cc71f.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageCurrentDiskQueueLength_08a4f049-9bb8-45d0-9dfb-320f385cc71f.json index 1a6485c4d..328aaf569 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageCurrentDiskQueueLength_08a4f049-9bb8-45d0-9dfb-320f385cc71f.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageCurrentDiskQueueLength_08a4f049-9bb8-45d0-9dfb-320f385cc71f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Current Disk Queue Length Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Current Disk Queue Length Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Current Disk Queue Length Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Current Disk Queue Length Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageDiskTransferssec_30b462dd-d026-4122-9bcf-3a114517e04c.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageDiskTransferssec_30b462dd-d026-4122-9bcf-3a114517e04c.json index 80bc19e0d..29fccd51b 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageDiskTransferssec_30b462dd-d026-4122-9bcf-3a114517e04c.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageDiskTransferssec_30b462dd-d026-4122-9bcf-3a114517e04c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Disk Transfers/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Disk Transfers/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Disk Transfers/sec Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Disk Transfers/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeMegabytes_969677fe-d1e0-42f6-92af-c9269780411b.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeMegabytes_969677fe-d1e0-42f6-92af-c9269780411b.json index 1e8395e98..bf91fa921 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeMegabytes_969677fe-d1e0-42f6-92af-c9269780411b.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeMegabytes_969677fe-d1e0-42f6-92af-c9269780411b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Free Megabytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Free Megabytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Free Megabytes Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Free Megabytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeSpace_db621663-ec0a-4fa3-82a7-b6b110726568.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeSpace_db621663-ec0a-4fa3-82a7-b6b110726568.json index c5dffb2dd..e16169105 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeSpace_db621663-ec0a-4fa3-82a7-b6b110726568.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageFreeSpace_db621663-ec0a-4fa3-82a7-b6b110726568.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Free Space Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Free Space Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Free Space Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Free Space Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageIOWaitTime_1116a5eb-9e12-415a-af46-fad552421d36.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageIOWaitTime_1116a5eb-9e12-415a-af46-fad552421d36.json index d205dd780..1ffe0ca9d 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageIOWaitTime_1116a5eb-9e12-415a-af46-fad552421d36.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageIOWaitTime_1116a5eb-9e12-415a-af46-fad552421d36.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% IO Wait Time Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% IO Wait Time Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% IO Wait Time Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% IO Wait Time Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageIdleTime_732c0a7b-ac17-47cb-bf78-2ebaa839fa0d.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageIdleTime_732c0a7b-ac17-47cb-bf78-2ebaa839fa0d.json index aa941a751..338c47513 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageIdleTime_732c0a7b-ac17-47cb-bf78-2ebaa839fa0d.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageIdleTime_732c0a7b-ac17-47cb-bf78-2ebaa839fa0d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Idle Time Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Idle Time Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Idle Time Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Idle Time Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AveragePagessec_88b7198b-32a5-4ae2-aaa5-7925066cc08c.json b/services/OperationalInsights/workspaces/templates/policy-arm/AveragePagessec_88b7198b-32a5-4ae2-aaa5-7925066cc08c.json index 39cf071ab..251ad0212 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AveragePagessec_88b7198b-32a5-4ae2-aaa5-7925066cc08c.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AveragePagessec_88b7198b-32a5-4ae2-aaa5-7925066cc08c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Pages/sec Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Pages/sec Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Pages/sec Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Pages/sec Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageProcessorTime_0c416177-e7ce-40d5-8f15-8566b3d7c03c.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageProcessorTime_0c416177-e7ce-40d5-8f15-8566b3d7c03c.json index ff5c75024..7b6c8b487 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageProcessorTime_0c416177-e7ce-40d5-8f15-8566b3d7c03c.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageProcessorTime_0c416177-e7ce-40d5-8f15-8566b3d7c03c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Processor Time Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Processor Time Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Processor Time Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Processor Time Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesReceived_593b6885-3fb8-4562-89f1-8b0b68649185.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesReceived_593b6885-3fb8-4562-89f1-8b0b68649185.json index 36a1f7e8d..08a60cd80 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesReceived_593b6885-3fb8-4562-89f1-8b0b68649185.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesReceived_593b6885-3fb8-4562-89f1-8b0b68649185.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Total Bytes Received Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Total Bytes Received Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Total Bytes Received Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Total Bytes Received Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesTransmitted_76583e85-8be6-4d02-8e09-aff0ce8574f8.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesTransmitted_76583e85-8be6-4d02-8e09-aff0ce8574f8.json index be0bf146e..d7386a3a9 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesTransmitted_76583e85-8be6-4d02-8e09-aff0ce8574f8.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageTotalBytesTransmitted_76583e85-8be6-4d02-8e09-aff0ce8574f8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_Total Bytes Transmitted Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_Total Bytes Transmitted Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_Total Bytes Transmitted Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_Total Bytes Transmitted Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedInodes_af5d055f-0e1f-4c48-808a-d21f8268357d.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedInodes_af5d055f-0e1f-4c48-808a-d21f8268357d.json index 9066930fb..2b7426775 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedInodes_af5d055f-0e1f-4c48-808a-d21f8268357d.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedInodes_af5d055f-0e1f-4c48-808a-d21f8268357d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Used Inodes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Inodes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Used Inodes Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Inodes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedMemory_171e5b5c-78cc-44a1-b7fb-7d750914ed5e.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedMemory_171e5b5c-78cc-44a1-b7fb-7d750914ed5e.json index 7371c61e5..dbebce761 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedMemory_171e5b5c-78cc-44a1-b7fb-7d750914ed5e.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedMemory_171e5b5c-78cc-44a1-b7fb-7d750914ed5e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Used Memory Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Memory Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Used Memory Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Memory Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSpace_49ba0df7-18bf-4b3e-9d0f-f8c055762fd5.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSpace_49ba0df7-18bf-4b3e-9d0f-f8c055762fd5.json index 62b6ac966..f6e707b50 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSpace_49ba0df7-18bf-4b3e-9d0f-f8c055762fd5.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSpace_49ba0df7-18bf-4b3e-9d0f-f8c055762fd5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Used Space Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Space Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Used Space Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Space Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSwapSpace_04f64694-48a2-48ee-9455-ccce8e59b66f.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSwapSpace_04f64694-48a2-48ee-9455-ccce8e59b66f.json index b2a206fb5..9550edf5e 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSwapSpace_04f64694-48a2-48ee-9455-ccce8e59b66f.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUsedSwapSpace_04f64694-48a2-48ee-9455-ccce8e59b66f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% Used Swap Space Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Swap Space Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% Used Swap Space Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% Used Swap Space Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUserTime_b8140cdb-5492-4177-881f-8668372947a8.json b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUserTime_b8140cdb-5492-4177-881f-8668372947a8.json index 51866c6ed..7bf02b526 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/AverageUserTime_b8140cdb-5492-4177-881f-8668372947a8.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/AverageUserTime_b8140cdb-5492-4177-881f-8668372947a8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Average_% User Time Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Average_% User Time Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Average_% User Time Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Average_% User Time Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/Event_0b608189-b028-4851-8854-9ce1a48c3dd6.json b/services/OperationalInsights/workspaces/templates/policy-arm/Event_0b608189-b028-4851-8854-9ce1a48c3dd6.json index 2ef3fd62b..f39d5c47c 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/Event_0b608189-b028-4851-8854-9ce1a48c3dd6.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/Event_0b608189-b028-4851-8854-9ce1a48c3dd6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Event Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Event Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Event Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Event Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/OperationalInsights/workspaces/templates/policy-arm/Heartbeat_83703f70-9ea8-44aa-b88a-a8e56eb42858.json b/services/OperationalInsights/workspaces/templates/policy-arm/Heartbeat_83703f70-9ea8-44aa-b88a-a8e56eb42858.json index e57a9d7cc..2df28e539 100644 --- a/services/OperationalInsights/workspaces/templates/policy-arm/Heartbeat_83703f70-9ea8-44aa-b88a-a8e56eb42858.json +++ b/services/OperationalInsights/workspaces/templates/policy-arm/Heartbeat_83703f70-9ea8-44aa-b88a-a8e56eb42858.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy OperationalInsights workspaces Heartbeat Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy OperationalInsights workspaces Heartbeat Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy OperationalInsights workspaces Heartbeat Alert", - "description": "Policy to Audit/Deploy OperationalInsights workspaces Heartbeat Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "OperationalInsights", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/PowerBIDedicated/capacities/templates/policy-arm/cpumetric_2993107e-d54f-4fc4-af7a-6a9bc6b4ea46.json b/services/PowerBIDedicated/capacities/templates/policy-arm/cpumetric_2993107e-d54f-4fc4-af7a-6a9bc6b4ea46.json index 7531e8f1d..6ecee8fcd 100644 --- a/services/PowerBIDedicated/capacities/templates/policy-arm/cpumetric_2993107e-d54f-4fc4-af7a-6a9bc6b4ea46.json +++ b/services/PowerBIDedicated/capacities/templates/policy-arm/cpumetric_2993107e-d54f-4fc4-af7a-6a9bc6b4ea46.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy PowerBIDedicated capacities cpu_metric Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy PowerBIDedicated capacities cpu_metric Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy PowerBIDedicated capacities cpu_metric Alert", - "description": "Policy to Audit/Deploy PowerBIDedicated capacities cpu_metric Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "PowerBIDedicated", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/RecoveryServices/vaults/templates/policy-arm/BackupHealthEvent_8f9b2819-9c51-4f30-91fd-195b7bc5d7a5.json b/services/RecoveryServices/vaults/templates/policy-arm/BackupHealthEvent_8f9b2819-9c51-4f30-91fd-195b7bc5d7a5.json index 4947f394b..15c1182c1 100644 --- a/services/RecoveryServices/vaults/templates/policy-arm/BackupHealthEvent_8f9b2819-9c51-4f30-91fd-195b7bc5d7a5.json +++ b/services/RecoveryServices/vaults/templates/policy-arm/BackupHealthEvent_8f9b2819-9c51-4f30-91fd-195b7bc5d7a5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy RecoveryServices vaults BackupHealthEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy RecoveryServices vaults BackupHealthEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy RecoveryServices vaults BackupHealthEvent Alert", - "description": "Policy to Audit/Deploy RecoveryServices vaults BackupHealthEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "RecoveryServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/RecoveryServices/vaults/templates/policy-arm/RestoreHealthEvent_805aa9c8-4d52-411d-9811-cc02b33952e3.json b/services/RecoveryServices/vaults/templates/policy-arm/RestoreHealthEvent_805aa9c8-4d52-411d-9811-cc02b33952e3.json index eb8d35086..5fdab3433 100644 --- a/services/RecoveryServices/vaults/templates/policy-arm/RestoreHealthEvent_805aa9c8-4d52-411d-9811-cc02b33952e3.json +++ b/services/RecoveryServices/vaults/templates/policy-arm/RestoreHealthEvent_805aa9c8-4d52-411d-9811-cc02b33952e3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy RecoveryServices vaults RestoreHealthEvent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy RecoveryServices vaults RestoreHealthEvent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy RecoveryServices vaults RestoreHealthEvent Alert", - "description": "Policy to Audit/Deploy RecoveryServices vaults RestoreHealthEvent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "RecoveryServices", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Relay/namespaces/templates/policy-arm/ActiveListeners_25a1c11a-3ec4-47aa-b67e-f359fd14483a.json b/services/Relay/namespaces/templates/policy-arm/ActiveListeners_25a1c11a-3ec4-47aa-b67e-f359fd14483a.json index 1b9e15c3e..e9c9c8455 100644 --- a/services/Relay/namespaces/templates/policy-arm/ActiveListeners_25a1c11a-3ec4-47aa-b67e-f359fd14483a.json +++ b/services/Relay/namespaces/templates/policy-arm/ActiveListeners_25a1c11a-3ec4-47aa-b67e-f359fd14483a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Relay namespaces ActiveListeners Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Relay namespaces ActiveListeners Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Relay namespaces ActiveListeners Alert", - "description": "Policy to Audit/Deploy Relay namespaces ActiveListeners Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Relay", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Search/searchServices/templates/policy-arm/SearchLatency_d3985fe5-c7f0-47a1-b52e-26098345a433.json b/services/Search/searchServices/templates/policy-arm/SearchLatency_d3985fe5-c7f0-47a1-b52e-26098345a433.json index 710bc4012..9e2441fb5 100644 --- a/services/Search/searchServices/templates/policy-arm/SearchLatency_d3985fe5-c7f0-47a1-b52e-26098345a433.json +++ b/services/Search/searchServices/templates/policy-arm/SearchLatency_d3985fe5-c7f0-47a1-b52e-26098345a433.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Search searchServices SearchLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Search searchServices SearchLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Search searchServices SearchLatency Alert", - "description": "Policy to Audit/Deploy Search searchServices SearchLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Search", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Search/searchServices/templates/policy-arm/ThrottledSearchQueriesPercentage_7a044f2f-f38f-4f13-82eb-c7f49bf17ad0.json b/services/Search/searchServices/templates/policy-arm/ThrottledSearchQueriesPercentage_7a044f2f-f38f-4f13-82eb-c7f49bf17ad0.json index 03321c79a..ab222b854 100644 --- a/services/Search/searchServices/templates/policy-arm/ThrottledSearchQueriesPercentage_7a044f2f-f38f-4f13-82eb-c7f49bf17ad0.json +++ b/services/Search/searchServices/templates/policy-arm/ThrottledSearchQueriesPercentage_7a044f2f-f38f-4f13-82eb-c7f49bf17ad0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Search searchServices ThrottledSearchQueriesPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Search searchServices ThrottledSearchQueriesPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Search searchServices ThrottledSearchQueriesPercentage Alert", - "description": "Policy to Audit/Deploy Search searchServices ThrottledSearchQueriesPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Search", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/AbandonMessage_172396a9-27f0-4c01-9510-94ba4a0d4738.json b/services/ServiceBus/namespaces/templates/policy-arm/AbandonMessage_172396a9-27f0-4c01-9510-94ba4a0d4738.json index fbde259d1..48f0c53d4 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/AbandonMessage_172396a9-27f0-4c01-9510-94ba4a0d4738.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/AbandonMessage_172396a9-27f0-4c01-9510-94ba4a0d4738.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces AbandonMessage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces AbandonMessage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces AbandonMessage Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces AbandonMessage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ActiveConnections_784a29e7-5799-4fde-90ee-b6ebcb2a8747.json b/services/ServiceBus/namespaces/templates/policy-arm/ActiveConnections_784a29e7-5799-4fde-90ee-b6ebcb2a8747.json index 1978b2221..7ee68aec4 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ActiveConnections_784a29e7-5799-4fde-90ee-b6ebcb2a8747.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ActiveConnections_784a29e7-5799-4fde-90ee-b6ebcb2a8747.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ActiveConnections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ActiveConnections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ActiveConnections Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ActiveConnections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ActiveMessages_0b3362f7-b1ff-4d78-8c25-f14ee9300ae1.json b/services/ServiceBus/namespaces/templates/policy-arm/ActiveMessages_0b3362f7-b1ff-4d78-8c25-f14ee9300ae1.json index 2c221a31c..b84a5b252 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ActiveMessages_0b3362f7-b1ff-4d78-8c25-f14ee9300ae1.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ActiveMessages_0b3362f7-b1ff-4d78-8c25-f14ee9300ae1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ActiveMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ActiveMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ActiveMessages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ActiveMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/DeadletteredMessages_868a7fc3-9c5c-4fb4-9289-fbe10dd4db82.json b/services/ServiceBus/namespaces/templates/policy-arm/DeadletteredMessages_868a7fc3-9c5c-4fb4-9289-fbe10dd4db82.json index c7fdc151c..60deaf816 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/DeadletteredMessages_868a7fc3-9c5c-4fb4-9289-fbe10dd4db82.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/DeadletteredMessages_868a7fc3-9c5c-4fb4-9289-fbe10dd4db82.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces DeadletteredMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces DeadletteredMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces DeadletteredMessages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces DeadletteredMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/IncomingMessages_c1095936-da8d-4c63-ac70-cf97d5b1f630.json b/services/ServiceBus/namespaces/templates/policy-arm/IncomingMessages_c1095936-da8d-4c63-ac70-cf97d5b1f630.json index 9efac7bbe..78a1d6bbf 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/IncomingMessages_c1095936-da8d-4c63-ac70-cf97d5b1f630.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/IncomingMessages_c1095936-da8d-4c63-ac70-cf97d5b1f630.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces IncomingMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces IncomingMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces IncomingMessages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces IncomingMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/Messages_67872571-d13d-4123-81c5-60404c4eea45.json b/services/ServiceBus/namespaces/templates/policy-arm/Messages_67872571-d13d-4123-81c5-60404c4eea45.json index 910adb038..f2fef94b5 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/Messages_67872571-d13d-4123-81c5-60404c4eea45.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/Messages_67872571-d13d-4123-81c5-60404c4eea45.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces Messages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces Messages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces Messages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces Messages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/NamespaceCpuUsage_52ec94f5-0d89-434b-9d51-df92d69ba284.json b/services/ServiceBus/namespaces/templates/policy-arm/NamespaceCpuUsage_52ec94f5-0d89-434b-9d51-df92d69ba284.json index 788c2cbe1..6a64b7c28 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/NamespaceCpuUsage_52ec94f5-0d89-434b-9d51-df92d69ba284.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/NamespaceCpuUsage_52ec94f5-0d89-434b-9d51-df92d69ba284.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces NamespaceCpuUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces NamespaceCpuUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces NamespaceCpuUsage Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces NamespaceCpuUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/NamespaceMemoryUsage_860d21ea-8c6a-4c78-ac40-f556eb02c3ac.json b/services/ServiceBus/namespaces/templates/policy-arm/NamespaceMemoryUsage_860d21ea-8c6a-4c78-ac40-f556eb02c3ac.json index d585e91e2..b1956e7be 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/NamespaceMemoryUsage_860d21ea-8c6a-4c78-ac40-f556eb02c3ac.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/NamespaceMemoryUsage_860d21ea-8c6a-4c78-ac40-f556eb02c3ac.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces NamespaceMemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces NamespaceMemoryUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces NamespaceMemoryUsage Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces NamespaceMemoryUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/OutgoingMessages_fdde6805-edf8-4277-adb8-ad2f44e3f977.json b/services/ServiceBus/namespaces/templates/policy-arm/OutgoingMessages_fdde6805-edf8-4277-adb8-ad2f44e3f977.json index 8ed489d49..c205840a3 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/OutgoingMessages_fdde6805-edf8-4277-adb8-ad2f44e3f977.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/OutgoingMessages_fdde6805-edf8-4277-adb8-ad2f44e3f977.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces OutgoingMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces OutgoingMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces OutgoingMessages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces OutgoingMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ScheduledMessages_5543b815-f2c8-420e-847e-7507a9724557.json b/services/ServiceBus/namespaces/templates/policy-arm/ScheduledMessages_5543b815-f2c8-420e-847e-7507a9724557.json index f349c37f1..8e121eb53 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ScheduledMessages_5543b815-f2c8-420e-847e-7507a9724557.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ScheduledMessages_5543b815-f2c8-420e-847e-7507a9724557.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ScheduledMessages Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ScheduledMessages Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ScheduledMessages Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ScheduledMessages Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ServerErrors_c51c3514-1730-42f3-b8ae-f2980bd22d83.json b/services/ServiceBus/namespaces/templates/policy-arm/ServerErrors_c51c3514-1730-42f3-b8ae-f2980bd22d83.json index 7c0bd76c8..91620f222 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ServerErrors_c51c3514-1730-42f3-b8ae-f2980bd22d83.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ServerErrors_c51c3514-1730-42f3-b8ae-f2980bd22d83.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ServerErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ServerErrors Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ServerErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ServerSendLatency_487c6beb-1468-4167-8eb6-e9b3ad8743b1.json b/services/ServiceBus/namespaces/templates/policy-arm/ServerSendLatency_487c6beb-1468-4167-8eb6-e9b3ad8743b1.json index 0cd6e37ad..14b17acaf 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ServerSendLatency_487c6beb-1468-4167-8eb6-e9b3ad8743b1.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ServerSendLatency_487c6beb-1468-4167-8eb6-e9b3ad8743b1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ServerSendLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ServerSendLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ServerSendLatency Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ServerSendLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/Size_950586ee-6926-4483-96d4-82838afe1ca6.json b/services/ServiceBus/namespaces/templates/policy-arm/Size_950586ee-6926-4483-96d4-82838afe1ca6.json index 296186e0c..b048cef4c 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/Size_950586ee-6926-4483-96d4-82838afe1ca6.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/Size_950586ee-6926-4483-96d4-82838afe1ca6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces Size Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces Size Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces Size Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces Size Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/ThrottledRequests_19785707-24c9-4852-b92a-31732b86ee04.json b/services/ServiceBus/namespaces/templates/policy-arm/ThrottledRequests_19785707-24c9-4852-b92a-31732b86ee04.json index 6a2d3c16a..012d82c89 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/ThrottledRequests_19785707-24c9-4852-b92a-31732b86ee04.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/ThrottledRequests_19785707-24c9-4852-b92a-31732b86ee04.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces ThrottledRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces ThrottledRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces ThrottledRequests Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces ThrottledRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/ServiceBus/namespaces/templates/policy-arm/UserErrors_a57a1cc4-4ec9-4d8f-a81d-7e18afe54948.json b/services/ServiceBus/namespaces/templates/policy-arm/UserErrors_a57a1cc4-4ec9-4d8f-a81d-7e18afe54948.json index 957c7f7fb..9d3f1f759 100644 --- a/services/ServiceBus/namespaces/templates/policy-arm/UserErrors_a57a1cc4-4ec9-4d8f-a81d-7e18afe54948.json +++ b/services/ServiceBus/namespaces/templates/policy-arm/UserErrors_a57a1cc4-4ec9-4d8f-a81d-7e18afe54948.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy ServiceBus namespaces UserErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy ServiceBus namespaces UserErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy ServiceBus namespaces UserErrors Alert", - "description": "Policy to Audit/Deploy ServiceBus namespaces UserErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "ServiceBus", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/SignalRService/SignalR/templates/policy-arm/ConnectionCount_b7581df7-f127-405e-9408-9d484122be74.json b/services/SignalRService/SignalR/templates/policy-arm/ConnectionCount_b7581df7-f127-405e-9408-9d484122be74.json index aed197026..74472dd7a 100644 --- a/services/SignalRService/SignalR/templates/policy-arm/ConnectionCount_b7581df7-f127-405e-9408-9d484122be74.json +++ b/services/SignalRService/SignalR/templates/policy-arm/ConnectionCount_b7581df7-f127-405e-9408-9d484122be74.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy SignalRService SignalR ConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy SignalRService SignalR ConnectionCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy SignalRService SignalR ConnectionCount Alert", - "description": "Policy to Audit/Deploy SignalRService SignalR ConnectionCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "SignalRService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/SignalRService/SignalR/templates/policy-arm/ConnectionQuotaUtilization_c7567682-8723-4426-8c27-848a9cc634d0.json b/services/SignalRService/SignalR/templates/policy-arm/ConnectionQuotaUtilization_c7567682-8723-4426-8c27-848a9cc634d0.json index f1c3446e7..4f8e73e1c 100644 --- a/services/SignalRService/SignalR/templates/policy-arm/ConnectionQuotaUtilization_c7567682-8723-4426-8c27-848a9cc634d0.json +++ b/services/SignalRService/SignalR/templates/policy-arm/ConnectionQuotaUtilization_c7567682-8723-4426-8c27-848a9cc634d0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy SignalRService SignalR ConnectionQuotaUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy SignalRService SignalR ConnectionQuotaUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy SignalRService SignalR ConnectionQuotaUtilization Alert", - "description": "Policy to Audit/Deploy SignalRService SignalR ConnectionQuotaUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "SignalRService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/SignalRService/SignalR/templates/policy-arm/SystemErrors_58f62f20-b9ba-472c-a2a4-37b53ed3e21d.json b/services/SignalRService/SignalR/templates/policy-arm/SystemErrors_58f62f20-b9ba-472c-a2a4-37b53ed3e21d.json index 70af7235c..16f63ad45 100644 --- a/services/SignalRService/SignalR/templates/policy-arm/SystemErrors_58f62f20-b9ba-472c-a2a4-37b53ed3e21d.json +++ b/services/SignalRService/SignalR/templates/policy-arm/SystemErrors_58f62f20-b9ba-472c-a2a4-37b53ed3e21d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy SignalRService SignalR SystemErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy SignalRService SignalR SystemErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy SignalRService SignalR SystemErrors Alert", - "description": "Policy to Audit/Deploy SignalRService SignalR SystemErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "SignalRService", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/managedInstances/templates/policy-arm/avgcpupercent_dfd37715-0d5c-4ec5-98ae-836cd626a27f.json b/services/Sql/managedInstances/templates/policy-arm/avgcpupercent_dfd37715-0d5c-4ec5-98ae-836cd626a27f.json index 0cdce0af7..fb4f33ef8 100644 --- a/services/Sql/managedInstances/templates/policy-arm/avgcpupercent_dfd37715-0d5c-4ec5-98ae-836cd626a27f.json +++ b/services/Sql/managedInstances/templates/policy-arm/avgcpupercent_dfd37715-0d5c-4ec5-98ae-836cd626a27f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql managedInstances avg_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql managedInstances avg_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql managedInstances avg_cpu_percent Alert", - "description": "Policy to Audit/Deploy Sql managedInstances avg_cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/managedInstances/templates/policy-arm/storagespaceusedmb_641ca3dc-a00f-43ac-b6bd-4f5d16f35cac.json b/services/Sql/managedInstances/templates/policy-arm/storagespaceusedmb_641ca3dc-a00f-43ac-b6bd-4f5d16f35cac.json index d0bf22aa6..fee535a5a 100644 --- a/services/Sql/managedInstances/templates/policy-arm/storagespaceusedmb_641ca3dc-a00f-43ac-b6bd-4f5d16f35cac.json +++ b/services/Sql/managedInstances/templates/policy-arm/storagespaceusedmb_641ca3dc-a00f-43ac-b6bd-4f5d16f35cac.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql managedInstances storage_space_used_mb Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql managedInstances storage_space_used_mb Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql managedInstances storage_space_used_mb Alert", - "description": "Policy to Audit/Deploy Sql managedInstances storage_space_used_mb Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-appcpupercent_05591510-5fe2-454a-96d8-bbda8201c6a4.json b/services/Sql/servers/templates/policy-arm/databases-appcpupercent_05591510-5fe2-454a-96d8-bbda8201c6a4.json index 778a430f5..d7b6c02a2 100644 --- a/services/Sql/servers/templates/policy-arm/databases-appcpupercent_05591510-5fe2-454a-96d8-bbda8201c6a4.json +++ b/services/Sql/servers/templates/policy-arm/databases-appcpupercent_05591510-5fe2-454a-96d8-bbda8201c6a4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases app_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases app_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases app_cpu_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases app_cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-appmemorypercent_c5c95fe9-a4b4-4afa-a07a-a0d18804d416.json b/services/Sql/servers/templates/policy-arm/databases-appmemorypercent_c5c95fe9-a4b4-4afa-a07a-a0d18804d416.json index 485d673c2..904638d49 100644 --- a/services/Sql/servers/templates/policy-arm/databases-appmemorypercent_c5c95fe9-a4b4-4afa-a07a-a0d18804d416.json +++ b/services/Sql/servers/templates/policy-arm/databases-appmemorypercent_c5c95fe9-a4b4-4afa-a07a-a0d18804d416.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases app_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases app_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases app_memory_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases app_memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-blockedbyfirewall_2cda2f3a-8657-431a-a50f-56835aea9a81.json b/services/Sql/servers/templates/policy-arm/databases-blockedbyfirewall_2cda2f3a-8657-431a-a50f-56835aea9a81.json index 7f5a3c740..0d190aad7 100644 --- a/services/Sql/servers/templates/policy-arm/databases-blockedbyfirewall_2cda2f3a-8657-431a-a50f-56835aea9a81.json +++ b/services/Sql/servers/templates/policy-arm/databases-blockedbyfirewall_2cda2f3a-8657-431a-a50f-56835aea9a81.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases blocked_by_firewall Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases blocked_by_firewall Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases blocked_by_firewall Alert", - "description": "Policy to Audit/Deploy Sql servers databases blocked_by_firewall Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-connectionfailed_7157dc17-9d5a-4835-a122-1d0d904d61ff.json b/services/Sql/servers/templates/policy-arm/databases-connectionfailed_7157dc17-9d5a-4835-a122-1d0d904d61ff.json index b2825d596..cb0f670c8 100644 --- a/services/Sql/servers/templates/policy-arm/databases-connectionfailed_7157dc17-9d5a-4835-a122-1d0d904d61ff.json +++ b/services/Sql/servers/templates/policy-arm/databases-connectionfailed_7157dc17-9d5a-4835-a122-1d0d904d61ff.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases connection_failed Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases connection_failed Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases connection_failed Alert", - "description": "Policy to Audit/Deploy Sql servers databases connection_failed Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-connectionfailedusererror_d528ffcb-3a99-4356-96d1-981499139ffb.json b/services/Sql/servers/templates/policy-arm/databases-connectionfailedusererror_d528ffcb-3a99-4356-96d1-981499139ffb.json index c1979f143..8e48df033 100644 --- a/services/Sql/servers/templates/policy-arm/databases-connectionfailedusererror_d528ffcb-3a99-4356-96d1-981499139ffb.json +++ b/services/Sql/servers/templates/policy-arm/databases-connectionfailedusererror_d528ffcb-3a99-4356-96d1-981499139ffb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases connection_failed_user_error Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases connection_failed_user_error Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases connection_failed_user_error Alert", - "description": "Policy to Audit/Deploy Sql servers databases connection_failed_user_error Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-connectionsuccessful_460b6b29-a602-4409-b748-6b47b232a984.json b/services/Sql/servers/templates/policy-arm/databases-connectionsuccessful_460b6b29-a602-4409-b748-6b47b232a984.json index 10cc70d80..6ce9eafad 100644 --- a/services/Sql/servers/templates/policy-arm/databases-connectionsuccessful_460b6b29-a602-4409-b748-6b47b232a984.json +++ b/services/Sql/servers/templates/policy-arm/databases-connectionsuccessful_460b6b29-a602-4409-b748-6b47b232a984.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases connection_successful Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases connection_successful Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases connection_successful Alert", - "description": "Policy to Audit/Deploy Sql servers databases connection_successful Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-cpuused_3ddd3f95-989c-4777-b6b8-728439aae1df.json b/services/Sql/servers/templates/policy-arm/databases-cpuused_3ddd3f95-989c-4777-b6b8-728439aae1df.json index ea39a96a3..1790762c3 100644 --- a/services/Sql/servers/templates/policy-arm/databases-cpuused_3ddd3f95-989c-4777-b6b8-728439aae1df.json +++ b/services/Sql/servers/templates/policy-arm/databases-cpuused_3ddd3f95-989c-4777-b6b8-728439aae1df.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases cpu_used Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases cpu_used Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases cpu_used Alert", - "description": "Policy to Audit/Deploy Sql servers databases cpu_used Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-deadlock_ce44fc81-3610-4165-a107-9dd4b8ab3972.json b/services/Sql/servers/templates/policy-arm/databases-deadlock_ce44fc81-3610-4165-a107-9dd4b8ab3972.json index c9555c02a..09c89b66e 100644 --- a/services/Sql/servers/templates/policy-arm/databases-deadlock_ce44fc81-3610-4165-a107-9dd4b8ab3972.json +++ b/services/Sql/servers/templates/policy-arm/databases-deadlock_ce44fc81-3610-4165-a107-9dd4b8ab3972.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases deadlock Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases deadlock Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases deadlock Alert", - "description": "Policy to Audit/Deploy Sql servers databases deadlock Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-dtulimit_50124594-a291-4183-a8e3-195f5e6f5204.json b/services/Sql/servers/templates/policy-arm/databases-dtulimit_50124594-a291-4183-a8e3-195f5e6f5204.json index 1f4b95b2e..8981c45cd 100644 --- a/services/Sql/servers/templates/policy-arm/databases-dtulimit_50124594-a291-4183-a8e3-195f5e6f5204.json +++ b/services/Sql/servers/templates/policy-arm/databases-dtulimit_50124594-a291-4183-a8e3-195f5e6f5204.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases dtu_limit Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases dtu_limit Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases dtu_limit Alert", - "description": "Policy to Audit/Deploy Sql servers databases dtu_limit Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-dtuused_d26f4c8b-0461-4c57-b230-cbd1a5424db1.json b/services/Sql/servers/templates/policy-arm/databases-dtuused_d26f4c8b-0461-4c57-b230-cbd1a5424db1.json index f5817b44a..d60a8023c 100644 --- a/services/Sql/servers/templates/policy-arm/databases-dtuused_d26f4c8b-0461-4c57-b230-cbd1a5424db1.json +++ b/services/Sql/servers/templates/policy-arm/databases-dtuused_d26f4c8b-0461-4c57-b230-cbd1a5424db1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases dtu_used Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases dtu_used Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases dtu_used Alert", - "description": "Policy to Audit/Deploy Sql servers databases dtu_used Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-dwuconsumptionpercent_70f88865-7a8b-4e03-9252-a9369df503ef.json b/services/Sql/servers/templates/policy-arm/databases-dwuconsumptionpercent_70f88865-7a8b-4e03-9252-a9369df503ef.json index 8a3d29067..d4194b869 100644 --- a/services/Sql/servers/templates/policy-arm/databases-dwuconsumptionpercent_70f88865-7a8b-4e03-9252-a9369df503ef.json +++ b/services/Sql/servers/templates/policy-arm/databases-dwuconsumptionpercent_70f88865-7a8b-4e03-9252-a9369df503ef.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases dwu_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases dwu_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases dwu_consumption_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases dwu_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-memoryusagepercent_f5c13b49-8528-457d-9d7d-083b8433bf96.json b/services/Sql/servers/templates/policy-arm/databases-memoryusagepercent_f5c13b49-8528-457d-9d7d-083b8433bf96.json index 9a9b578ea..e7045f5fc 100644 --- a/services/Sql/servers/templates/policy-arm/databases-memoryusagepercent_f5c13b49-8528-457d-9d7d-083b8433bf96.json +++ b/services/Sql/servers/templates/policy-arm/databases-memoryusagepercent_f5c13b49-8528-457d-9d7d-083b8433bf96.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases memory_usage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases memory_usage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases memory_usage_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases memory_usage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-sessionscount_07eeae07-010e-47ca-ad90-fa7adb5a6c52.json b/services/Sql/servers/templates/policy-arm/databases-sessionscount_07eeae07-010e-47ca-ad90-fa7adb5a6c52.json index 83fc36530..5a17f40eb 100644 --- a/services/Sql/servers/templates/policy-arm/databases-sessionscount_07eeae07-010e-47ca-ad90-fa7adb5a6c52.json +++ b/services/Sql/servers/templates/policy-arm/databases-sessionscount_07eeae07-010e-47ca-ad90-fa7adb5a6c52.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases sessions_count Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases sessions_count Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases sessions_count Alert", - "description": "Policy to Audit/Deploy Sql servers databases sessions_count Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-sqlinstancecpupercent_1a8132b9-fbd2-4ac5-9e08-96358e16b7f7.json b/services/Sql/servers/templates/policy-arm/databases-sqlinstancecpupercent_1a8132b9-fbd2-4ac5-9e08-96358e16b7f7.json index d4f2515bf..f8047f291 100644 --- a/services/Sql/servers/templates/policy-arm/databases-sqlinstancecpupercent_1a8132b9-fbd2-4ac5-9e08-96358e16b7f7.json +++ b/services/Sql/servers/templates/policy-arm/databases-sqlinstancecpupercent_1a8132b9-fbd2-4ac5-9e08-96358e16b7f7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases sql_instance_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases sql_instance_cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases sql_instance_cpu_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases sql_instance_cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-sqlinstancememorypercent_f44a3cb0-6e99-4a5e-a691-c5d7d5bf7e64.json b/services/Sql/servers/templates/policy-arm/databases-sqlinstancememorypercent_f44a3cb0-6e99-4a5e-a691-c5d7d5bf7e64.json index d259d2f3c..df1121487 100644 --- a/services/Sql/servers/templates/policy-arm/databases-sqlinstancememorypercent_f44a3cb0-6e99-4a5e-a691-c5d7d5bf7e64.json +++ b/services/Sql/servers/templates/policy-arm/databases-sqlinstancememorypercent_f44a3cb0-6e99-4a5e-a691-c5d7d5bf7e64.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases sql_instance_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases sql_instance_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases sql_instance_memory_percent Alert", - "description": "Policy to Audit/Deploy Sql servers databases sql_instance_memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-storage_86922a27-41bb-4834-bc54-0b602b275597.json b/services/Sql/servers/templates/policy-arm/databases-storage_86922a27-41bb-4834-bc54-0b602b275597.json index 09d5d30cb..6cf7c1cd3 100644 --- a/services/Sql/servers/templates/policy-arm/databases-storage_86922a27-41bb-4834-bc54-0b602b275597.json +++ b/services/Sql/servers/templates/policy-arm/databases-storage_86922a27-41bb-4834-bc54-0b602b275597.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases storage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases storage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases storage Alert", - "description": "Policy to Audit/Deploy Sql servers databases storage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/databases-tempdbdatasize_0fe27fd1-e4f7-48c1-bbd2-a6953755d5e8.json b/services/Sql/servers/templates/policy-arm/databases-tempdbdatasize_0fe27fd1-e4f7-48c1-bbd2-a6953755d5e8.json index f58b0fd55..47d90c289 100644 --- a/services/Sql/servers/templates/policy-arm/databases-tempdbdatasize_0fe27fd1-e4f7-48c1-bbd2-a6953755d5e8.json +++ b/services/Sql/servers/templates/policy-arm/databases-tempdbdatasize_0fe27fd1-e4f7-48c1-bbd2-a6953755d5e8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers databases tempdb_data_size Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers databases tempdb_data_size Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers databases tempdb_data_size Alert", - "description": "Policy to Audit/Deploy Sql servers databases tempdb_data_size Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastorage_3743016a-a056-43fe-b53a-36dd9a17626d.json b/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastorage_3743016a-a056-43fe-b53a-36dd9a17626d.json index 2f494b4a6..c76f37fb9 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastorage_3743016a-a056-43fe-b53a-36dd9a17626d.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastorage_3743016a-a056-43fe-b53a-36dd9a17626d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools allocated_data_storage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools allocated_data_storage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools allocated_data_storage Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools allocated_data_storage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastoragepercent_7e9d0710-3243-4cf2-8b73-6be1539b8545.json b/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastoragepercent_7e9d0710-3243-4cf2-8b73-6be1539b8545.json index 835419efd..7882ca31e 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastoragepercent_7e9d0710-3243-4cf2-8b73-6be1539b8545.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-allocateddatastoragepercent_7e9d0710-3243-4cf2-8b73-6be1539b8545.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools allocated_data_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools allocated_data_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools allocated_data_storage_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools allocated_data_storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-cpupercent_805c4ae5-a852-43bd-ad1c-0f7f381d8f32.json b/services/Sql/servers/templates/policy-arm/elasticpools-cpupercent_805c4ae5-a852-43bd-ad1c-0f7f381d8f32.json index 73da5373f..bfc9e5e5c 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-cpupercent_805c4ae5-a852-43bd-ad1c-0f7f381d8f32.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-cpupercent_805c4ae5-a852-43bd-ad1c-0f7f381d8f32.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools cpu_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools cpu_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools cpu_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-dtuconsumptionpercent_5d9075b5-3c19-4cf6-9c2e-50ba4c175691.json b/services/Sql/servers/templates/policy-arm/elasticpools-dtuconsumptionpercent_5d9075b5-3c19-4cf6-9c2e-50ba4c175691.json index a721150fd..1ed85e4fb 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-dtuconsumptionpercent_5d9075b5-3c19-4cf6-9c2e-50ba4c175691.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-dtuconsumptionpercent_5d9075b5-3c19-4cf6-9c2e-50ba4c175691.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools dtu_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools dtu_consumption_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools dtu_consumption_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools dtu_consumption_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-eDTUused_16a64053-1905-4d8e-8198-810584cad108.json b/services/Sql/servers/templates/policy-arm/elasticpools-eDTUused_16a64053-1905-4d8e-8198-810584cad108.json index dc49f55a3..53ea93965 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-eDTUused_16a64053-1905-4d8e-8198-810584cad108.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-eDTUused_16a64053-1905-4d8e-8198-810584cad108.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools eDTU_used Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools eDTU_used Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools eDTU_used Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools eDTU_used Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-logwritepercent_47cd814e-1991-437e-8feb-e589a250d2a3.json b/services/Sql/servers/templates/policy-arm/elasticpools-logwritepercent_47cd814e-1991-437e-8feb-e589a250d2a3.json index bf40c2fe5..0549d99ed 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-logwritepercent_47cd814e-1991-437e-8feb-e589a250d2a3.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-logwritepercent_47cd814e-1991-437e-8feb-e589a250d2a3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools log_write_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools log_write_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools log_write_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools log_write_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-physicaldatareadpercent_92efc2ea-b6ed-41aa-921c-6d40e7b58c27.json b/services/Sql/servers/templates/policy-arm/elasticpools-physicaldatareadpercent_92efc2ea-b6ed-41aa-921c-6d40e7b58c27.json index 579ac7c4b..59bd5108f 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-physicaldatareadpercent_92efc2ea-b6ed-41aa-921c-6d40e7b58c27.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-physicaldatareadpercent_92efc2ea-b6ed-41aa-921c-6d40e7b58c27.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools physical_data_read_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools physical_data_read_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools physical_data_read_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools physical_data_read_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-sessionspercent_6b2e0ce9-d1b8-4061-b3ce-c39f9c5c1763.json b/services/Sql/servers/templates/policy-arm/elasticpools-sessionspercent_6b2e0ce9-d1b8-4061-b3ce-c39f9c5c1763.json index 4dd19565f..5fd36e662 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-sessionspercent_6b2e0ce9-d1b8-4061-b3ce-c39f9c5c1763.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-sessionspercent_6b2e0ce9-d1b8-4061-b3ce-c39f9c5c1763.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools sessions_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools sessions_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools sessions_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools sessions_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocesscorepercent_73ec4301-872a-4bea-928e-420255aae8cb.json b/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocesscorepercent_73ec4301-872a-4bea-928e-420255aae8cb.json index 27ab88a8c..368434546 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocesscorepercent_73ec4301-872a-4bea-928e-420255aae8cb.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocesscorepercent_73ec4301-872a-4bea-928e-420255aae8cb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools sqlserver_process_core_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools sqlserver_process_core_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools sqlserver_process_core_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools sqlserver_process_core_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocessmemorypercent_fa056aaf-57c4-4abe-9bc5-23ba413a1f5b.json b/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocessmemorypercent_fa056aaf-57c4-4abe-9bc5-23ba413a1f5b.json index 2965ca6c4..b240d4124 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocessmemorypercent_fa056aaf-57c4-4abe-9bc5-23ba413a1f5b.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-sqlserverprocessmemorypercent_fa056aaf-57c4-4abe-9bc5-23ba413a1f5b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools sqlserver_process_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools sqlserver_process_memory_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools sqlserver_process_memory_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools sqlserver_process_memory_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-storagepercent_88f3cbc0-bcfb-482f-b6f4-709a335afcad.json b/services/Sql/servers/templates/policy-arm/elasticpools-storagepercent_88f3cbc0-bcfb-482f-b6f4-709a335afcad.json index d7ae57a5d..852e3e154 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-storagepercent_88f3cbc0-bcfb-482f-b6f4-709a335afcad.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-storagepercent_88f3cbc0-bcfb-482f-b6f4-709a335afcad.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools storage_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-tempdblogusedpercent_af66de51-079c-4d34-af92-f52f887642dc.json b/services/Sql/servers/templates/policy-arm/elasticpools-tempdblogusedpercent_af66de51-079c-4d34-af92-f52f887642dc.json index e3a8aef57..1179b509e 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-tempdblogusedpercent_af66de51-079c-4d34-af92-f52f887642dc.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-tempdblogusedpercent_af66de51-079c-4d34-af92-f52f887642dc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools tempdb_log_used_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools tempdb_log_used_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools tempdb_log_used_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools tempdb_log_used_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-workerspercent_1b37038e-6e5c-4463-97d4-8a632251d70e.json b/services/Sql/servers/templates/policy-arm/elasticpools-workerspercent_1b37038e-6e5c-4463-97d4-8a632251d70e.json index ce49b99fc..4d78e0b43 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-workerspercent_1b37038e-6e5c-4463-97d4-8a632251d70e.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-workerspercent_1b37038e-6e5c-4463-97d4-8a632251d70e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools workers_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools workers_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools workers_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools workers_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Sql/servers/templates/policy-arm/elasticpools-xtpstoragepercent_db517009-30ad-4cbc-b282-7f212052c3b4.json b/services/Sql/servers/templates/policy-arm/elasticpools-xtpstoragepercent_db517009-30ad-4cbc-b282-7f212052c3b4.json index 409d7d3b5..1e4fb6f5d 100644 --- a/services/Sql/servers/templates/policy-arm/elasticpools-xtpstoragepercent_db517009-30ad-4cbc-b282-7f212052c3b4.json +++ b/services/Sql/servers/templates/policy-arm/elasticpools-xtpstoragepercent_db517009-30ad-4cbc-b282-7f212052c3b4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Sql servers elasticpools xtp_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Sql servers elasticpools xtp_storage_percent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Sql servers elasticpools xtp_storage_percent Alert", - "description": "Policy to Audit/Deploy Sql servers elasticpools xtp_storage_percent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Sql", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/Availability_b1a4849b-78a8-437f-8113-7c6f2dc34927.json b/services/Storage/storageAccounts/templates/policy-arm/Availability_b1a4849b-78a8-437f-8113-7c6f2dc34927.json index 81af8eb23..cd66b3180 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/Availability_b1a4849b-78a8-437f-8113-7c6f2dc34927.json +++ b/services/Storage/storageAccounts/templates/policy-arm/Availability_b1a4849b-78a8-437f-8113-7c6f2dc34927.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy SA Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy SA Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy SA Availability Alert", - "description": "Policy to Audit/Deploy SA Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/Egress_eb186756-b63b-408a-bbaf-ac94c1010287.json b/services/Storage/storageAccounts/templates/policy-arm/Egress_eb186756-b63b-408a-bbaf-ac94c1010287.json index db9da4b4b..155128e5c 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/Egress_eb186756-b63b-408a-bbaf-ac94c1010287.json +++ b/services/Storage/storageAccounts/templates/policy-arm/Egress_eb186756-b63b-408a-bbaf-ac94c1010287.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts Egress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts Egress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts Egress Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts Egress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/FileShareCount_a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80.json b/services/Storage/storageAccounts/templates/policy-arm/FileShareCount_a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80.json index 888305474..249d42cb9 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/FileShareCount_a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80.json +++ b/services/Storage/storageAccounts/templates/policy-arm/FileShareCount_a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices FileShareCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices FileShareCount Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/Ingress_5d872cb4-7f71-4275-81eb-98c968c0cadd.json b/services/Storage/storageAccounts/templates/policy-arm/Ingress_5d872cb4-7f71-4275-81eb-98c968c0cadd.json index dacc6b8af..b3a7bd748 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/Ingress_5d872cb4-7f71-4275-81eb-98c968c0cadd.json +++ b/services/Storage/storageAccounts/templates/policy-arm/Ingress_5d872cb4-7f71-4275-81eb-98c968c0cadd.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts Ingress Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts Ingress Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts Ingress Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts Ingress Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/QueueCount_f75dec98-78a3-4e42-954d-375fe3352857.json b/services/Storage/storageAccounts/templates/policy-arm/QueueCount_f75dec98-78a3-4e42-954d-375fe3352857.json index a8c337623..b9441bda7 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/QueueCount_f75dec98-78a3-4e42-954d-375fe3352857.json +++ b/services/Storage/storageAccounts/templates/policy-arm/QueueCount_f75dec98-78a3-4e42-954d-375fe3352857.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts queueServices QueueCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts queueServices QueueCount Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/Throttling_5e544473-d84f-427d-869d-9d982619e4cb.json b/services/Storage/storageAccounts/templates/policy-arm/Throttling_5e544473-d84f-427d-869d-9d982619e4cb.json index ce6438020..3dab901ea 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/Throttling_5e544473-d84f-427d-869d-9d982619e4cb.json +++ b/services/Storage/storageAccounts/templates/policy-arm/Throttling_5e544473-d84f-427d-869d-9d982619e4cb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy SA Throttling Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy SA Throttling Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy SA Throttling Alert", - "description": "Policy to Audit/Deploy SA Throttling Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/UsedCapacity_b663a689-6db8-467d-8b5d-8cd34afe4b0e.json b/services/Storage/storageAccounts/templates/policy-arm/UsedCapacity_b663a689-6db8-467d-8b5d-8cd34afe4b0e.json index 9f7e7251e..0f7a95684 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/UsedCapacity_b663a689-6db8-467d-8b5d-8cd34afe4b0e.json +++ b/services/Storage/storageAccounts/templates/policy-arm/UsedCapacity_b663a689-6db8-467d-8b5d-8cd34afe4b0e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts UsedCapacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts UsedCapacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts UsedCapacity Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts UsedCapacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCapacity_8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c.json b/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCapacity_8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c.json index 03b686301..7a09562e1 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCapacity_8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c.json +++ b/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCapacity_8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts blobServices BlobCapacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts blobServices BlobCapacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts blobServices BlobCapacity Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts blobServices BlobCapacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCount_c4d93fac-a6b6-4731-a92a-c499b6fb2bcb.json b/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCount_c4d93fac-a6b6-4731-a92a-c499b6fb2bcb.json index 80344c4e7..58591acf1 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCount_c4d93fac-a6b6-4731-a92a-c499b6fb2bcb.json +++ b/services/Storage/storageAccounts/templates/policy-arm/blobServices-BlobCount_c4d93fac-a6b6-4731-a92a-c499b6fb2bcb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts blobServices BlobCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts blobServices BlobCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts blobServices BlobCount Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts blobServices BlobCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessE2ELatency_0acc30dc-881d-46c9-b634-8cba507a263f.json b/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessE2ELatency_0acc30dc-881d-46c9-b634-8cba507a263f.json index ac7e7f0de..81cd35272 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessE2ELatency_0acc30dc-881d-46c9-b634-8cba507a263f.json +++ b/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessE2ELatency_0acc30dc-881d-46c9-b634-8cba507a263f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts blobServices SuccessE2ELatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts blobServices SuccessE2ELatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts blobServices SuccessE2ELatency Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts blobServices SuccessE2ELatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessServerLatency_0a3689c7-b610-4c52-ae84-ab0640f3d6e4.json b/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessServerLatency_0a3689c7-b610-4c52-ae84-ab0640f3d6e4.json index ea561c32d..45fb55e25 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessServerLatency_0a3689c7-b610-4c52-ae84-ab0640f3d6e4.json +++ b/services/Storage/storageAccounts/templates/policy-arm/blobServices-SuccessServerLatency_0a3689c7-b610-4c52-ae84-ab0640f3d6e4.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts blobServices SuccessServerLatency Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts blobServices SuccessServerLatency Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts blobServices SuccessServerLatency Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts blobServices SuccessServerLatency Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/fileServices-Availability_45fef979-c27e-425a-a6c3-e5bd28b1eb86.json b/services/Storage/storageAccounts/templates/policy-arm/fileServices-Availability_45fef979-c27e-425a-a6c3-e5bd28b1eb86.json index 64c18a6bb..bc5ee3b9e 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/fileServices-Availability_45fef979-c27e-425a-a6c3-e5bd28b1eb86.json +++ b/services/Storage/storageAccounts/templates/policy-arm/fileServices-Availability_45fef979-c27e-425a-a6c3-e5bd28b1eb86.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices Availability Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices Availability Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices Availability Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices Availability Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileCapacity_26e09eae-c784-4e8f-a225-d3f13efff76f.json b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileCapacity_26e09eae-c784-4e8f-a225-d3f13efff76f.json index 74ddf6848..92751be9b 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileCapacity_26e09eae-c784-4e8f-a225-d3f13efff76f.json +++ b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileCapacity_26e09eae-c784-4e8f-a225-d3f13efff76f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices FileCapacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices FileCapacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices FileCapacity Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices FileCapacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareCapacityQuota_8660f357-83f9-4719-bdf3-bae57af2d967.json b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareCapacityQuota_8660f357-83f9-4719-bdf3-bae57af2d967.json index 61eb20eab..b63664b31 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareCapacityQuota_8660f357-83f9-4719-bdf3-bae57af2d967.json +++ b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareCapacityQuota_8660f357-83f9-4719-bdf3-bae57af2d967.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices FileShareCapacityQuota Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareCapacityQuota Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices FileShareCapacityQuota Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareCapacityQuota Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareSnapshotCount_8cbe449d-9264-4ae1-8221-5d97989005a8.json b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareSnapshotCount_8cbe449d-9264-4ae1-8221-5d97989005a8.json index b9dd9d19f..0d65387aa 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareSnapshotCount_8cbe449d-9264-4ae1-8221-5d97989005a8.json +++ b/services/Storage/storageAccounts/templates/policy-arm/fileServices-FileShareSnapshotCount_8cbe449d-9264-4ae1-8221-5d97989005a8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices FileShareSnapshotCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareSnapshotCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices FileShareSnapshotCount Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices FileShareSnapshotCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/fileServices-Transactions_c81d3e6c-5539-42ad-a95f-9bba504d91f0.json b/services/Storage/storageAccounts/templates/policy-arm/fileServices-Transactions_c81d3e6c-5539-42ad-a95f-9bba504d91f0.json index 83d6aaa1a..687878152 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/fileServices-Transactions_c81d3e6c-5539-42ad-a95f-9bba504d91f0.json +++ b/services/Storage/storageAccounts/templates/policy-arm/fileServices-Transactions_c81d3e6c-5539-42ad-a95f-9bba504d91f0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts fileServices Transactions Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts fileServices Transactions Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts fileServices Transactions Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts fileServices Transactions Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueCapacity_7815fc6f-bfb1-4474-9ea6-05e1449a2ed5.json b/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueCapacity_7815fc6f-bfb1-4474-9ea6-05e1449a2ed5.json index ef407b996..567fce2a3 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueCapacity_7815fc6f-bfb1-4474-9ea6-05e1449a2ed5.json +++ b/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueCapacity_7815fc6f-bfb1-4474-9ea6-05e1449a2ed5.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts queueServices QueueCapacity Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueCapacity Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts queueServices QueueCapacity Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueCapacity Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueMessageCount_34769aaa-5014-4ced-bb08-9fabfba3d959.json b/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueMessageCount_34769aaa-5014-4ced-bb08-9fabfba3d959.json index 5b7ca7c7a..7a43f2f4f 100644 --- a/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueMessageCount_34769aaa-5014-4ced-bb08-9fabfba3d959.json +++ b/services/Storage/storageAccounts/templates/policy-arm/queueServices-QueueMessageCount_34769aaa-5014-4ced-bb08-9fabfba3d959.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Storage storageAccounts queueServices QueueMessageCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueMessageCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Storage storageAccounts queueServices QueueMessageCount Alert", - "description": "Policy to Audit/Deploy Storage storageAccounts queueServices QueueMessageCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Storage", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StorageCache/AmlFilesystems/templates/policy-arm/Uptime_7f951991-c6ce-4c72-9f55-7eade2c4f57c.json b/services/StorageCache/AmlFilesystems/templates/policy-arm/Uptime_7f951991-c6ce-4c72-9f55-7eade2c4f57c.json index 142c9ea30..6fdae7981 100644 --- a/services/StorageCache/AmlFilesystems/templates/policy-arm/Uptime_7f951991-c6ce-4c72-9f55-7eade2c4f57c.json +++ b/services/StorageCache/AmlFilesystems/templates/policy-arm/Uptime_7f951991-c6ce-4c72-9f55-7eade2c4f57c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StorageCache caches Uptime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StorageCache caches Uptime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StorageCache caches Uptime Alert", - "description": "Policy to Audit/Deploy StorageCache caches Uptime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StorageCache", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StorageSync/storageSyncServices/templates/policy-arm/ServerSyncSessionResult_ea68cbf2-b8a6-4f47-afda-94cab9ce4622.json b/services/StorageSync/storageSyncServices/templates/policy-arm/ServerSyncSessionResult_ea68cbf2-b8a6-4f47-afda-94cab9ce4622.json index 35ac992a9..7f0915b51 100644 --- a/services/StorageSync/storageSyncServices/templates/policy-arm/ServerSyncSessionResult_ea68cbf2-b8a6-4f47-afda-94cab9ce4622.json +++ b/services/StorageSync/storageSyncServices/templates/policy-arm/ServerSyncSessionResult_ea68cbf2-b8a6-4f47-afda-94cab9ce4622.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StorageSync storageSyncServices ServerSyncSessionResult Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StorageSync storageSyncServices ServerSyncSessionResult Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StorageSync storageSyncServices ServerSyncSessionResult Alert", - "description": "Policy to Audit/Deploy StorageSync storageSyncServices ServerSyncSessionResult Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StorageSync", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncServerHeartbeat_eb627157-b9c8-4e8f-a00e-f9eb7df45c78.json b/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncServerHeartbeat_eb627157-b9c8-4e8f-a00e-f9eb7df45c78.json index fc3c88caf..1398802ea 100644 --- a/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncServerHeartbeat_eb627157-b9c8-4e8f-a00e-f9eb7df45c78.json +++ b/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncServerHeartbeat_eb627157-b9c8-4e8f-a00e-f9eb7df45c78.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StorageSync storageSyncServices StorageSyncServerHeartbeat Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StorageSync storageSyncServices StorageSyncServerHeartbeat Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StorageSync storageSyncServices StorageSyncServerHeartbeat Alert", - "description": "Policy to Audit/Deploy StorageSync storageSyncServices StorageSyncServerHeartbeat Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StorageSync", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncSyncSessionPerItemErrorsCount_0020bd6d-cd35-491e-9c71-f66bd64ed9a9.json b/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncSyncSessionPerItemErrorsCount_0020bd6d-cd35-491e-9c71-f66bd64ed9a9.json index 721b41387..4e24e17b1 100644 --- a/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncSyncSessionPerItemErrorsCount_0020bd6d-cd35-491e-9c71-f66bd64ed9a9.json +++ b/services/StorageSync/storageSyncServices/templates/policy-arm/StorageSyncSyncSessionPerItemErrorsCount_0020bd6d-cd35-491e-9c71-f66bd64ed9a9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StorageSync storageSyncServices StorageSyncSyncSessionPerItemErrorsCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StorageSync storageSyncServices StorageSyncSyncSessionPerItemErrorsCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StorageSync storageSyncServices StorageSyncSyncSessionPerItemErrorsCount Alert", - "description": "Policy to Audit/Deploy StorageSync storageSyncServices StorageSyncSyncSessionPerItemErrorsCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StorageSync", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/AMLCalloutFailedRequests_f0fa5804-9d5f-4e23-91c0-996c561585ef.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/AMLCalloutFailedRequests_f0fa5804-9d5f-4e23-91c0-996c561585ef.json index 7d96462b8..7f5e382a7 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/AMLCalloutFailedRequests_f0fa5804-9d5f-4e23-91c0-996c561585ef.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/AMLCalloutFailedRequests_f0fa5804-9d5f-4e23-91c0-996c561585ef.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs AMLCalloutFailedRequests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs AMLCalloutFailedRequests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs AMLCalloutFailedRequests Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs AMLCalloutFailedRequests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ConversionErrors_7d30aeb3-31e5-4742-aa7e-825c2a6af42a.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ConversionErrors_7d30aeb3-31e5-4742-aa7e-825c2a6af42a.json index 4c3bffccb..f0ec896c1 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ConversionErrors_7d30aeb3-31e5-4742-aa7e-825c2a6af42a.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ConversionErrors_7d30aeb3-31e5-4742-aa7e-825c2a6af42a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs ConversionErrors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs ConversionErrors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs ConversionErrors Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs ConversionErrors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/DeserializationError_381221db-fd9a-4d65-a16f-63e7492b0a49.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/DeserializationError_381221db-fd9a-4d65-a16f-63e7492b0a49.json index de5000d9d..d2a3410a4 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/DeserializationError_381221db-fd9a-4d65-a16f-63e7492b0a49.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/DeserializationError_381221db-fd9a-4d65-a16f-63e7492b0a49.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs DeserializationError Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs DeserializationError Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs DeserializationError Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs DeserializationError Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/Errors_ebd9a9cf-7aa1-4c75-8b76-33f94e4bb8ef.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/Errors_ebd9a9cf-7aa1-4c75-8b76-33f94e4bb8ef.json index d677389b7..e3ba83378 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/Errors_ebd9a9cf-7aa1-4c75-8b76-33f94e4bb8ef.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/Errors_ebd9a9cf-7aa1-4c75-8b76-33f94e4bb8ef.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs Errors Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs Errors Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs Errors Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs Errors Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEventsSourcesBacklogged_b46ef7a9-6597-4c4f-a5ca-9ca653e1b716.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEventsSourcesBacklogged_b46ef7a9-6597-4c4f-a5ca-9ca653e1b716.json index 86b3ba445..65cb1aa98 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEventsSourcesBacklogged_b46ef7a9-6597-4c4f-a5ca-9ca653e1b716.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEventsSourcesBacklogged_b46ef7a9-6597-4c4f-a5ca-9ca653e1b716.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs InputEventsSourcesBacklogged Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs InputEventsSourcesBacklogged Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs InputEventsSourcesBacklogged Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs InputEventsSourcesBacklogged Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEvents_1dc8c746-4caf-4355-9d82-bdeaa1cf95bf.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEvents_1dc8c746-4caf-4355-9d82-bdeaa1cf95bf.json index 90f959c0b..9b4e4a67f 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEvents_1dc8c746-4caf-4355-9d82-bdeaa1cf95bf.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/InputEvents_1dc8c746-4caf-4355-9d82-bdeaa1cf95bf.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs InputEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs InputEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs InputEvents Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs InputEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputEvents_c0dbcbee-eefd-4ee4-bd25-48d42444c882.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputEvents_c0dbcbee-eefd-4ee4-bd25-48d42444c882.json index 5691d564c..31842c169 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputEvents_c0dbcbee-eefd-4ee4-bd25-48d42444c882.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputEvents_c0dbcbee-eefd-4ee4-bd25-48d42444c882.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs OutputEvents Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs OutputEvents Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs OutputEvents Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs OutputEvents Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputWatermarkDelaySeconds_289283c0-87ae-475f-b756-306783c7ec4d.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputWatermarkDelaySeconds_289283c0-87ae-475f-b756-306783c7ec4d.json index 513f87b32..b6ceebd17 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputWatermarkDelaySeconds_289283c0-87ae-475f-b756-306783c7ec4d.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/OutputWatermarkDelaySeconds_289283c0-87ae-475f-b756-306783c7ec4d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs OutputWatermarkDelaySeconds Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs OutputWatermarkDelaySeconds Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs OutputWatermarkDelaySeconds Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs OutputWatermarkDelaySeconds Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ProcessCPUUsagePercentage_ea14eb56-238e-42b2-95ae-4d624d720d10.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ProcessCPUUsagePercentage_ea14eb56-238e-42b2-95ae-4d624d720d10.json index 9673dfc9a..669f6e5ce 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ProcessCPUUsagePercentage_ea14eb56-238e-42b2-95ae-4d624d720d10.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ProcessCPUUsagePercentage_ea14eb56-238e-42b2-95ae-4d624d720d10.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs ProcessCPUUsagePercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs ProcessCPUUsagePercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs ProcessCPUUsagePercentage Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs ProcessCPUUsagePercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ResourceUtilization_4f2ead64-7412-4695-9855-47f36ade6f7e.json b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ResourceUtilization_4f2ead64-7412-4695-9855-47f36ade6f7e.json index 013392ead..11fbd59ca 100644 --- a/services/StreamAnalytics/streamingjobs/templates/policy-arm/ResourceUtilization_4f2ead64-7412-4695-9855-47f36ade6f7e.json +++ b/services/StreamAnalytics/streamingjobs/templates/policy-arm/ResourceUtilization_4f2ead64-7412-4695-9855-47f36ade6f7e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy StreamAnalytics streamingjobs ResourceUtilization Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy StreamAnalytics streamingjobs ResourceUtilization Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy StreamAnalytics streamingjobs ResourceUtilization Alert", - "description": "Policy to Audit/Deploy StreamAnalytics streamingjobs ResourceUtilization Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "StreamAnalytics", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolDataProcessedBytes_8e2a7c77-890c-49d5-aadd-052764135995.json b/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolDataProcessedBytes_8e2a7c77-890c-49d5-aadd-052764135995.json index 9c2190d6d..e4284ccd8 100644 --- a/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolDataProcessedBytes_8e2a7c77-890c-49d5-aadd-052764135995.json +++ b/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolDataProcessedBytes_8e2a7c77-890c-49d5-aadd-052764135995.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces BuiltinSqlPoolDataProcessedBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces BuiltinSqlPoolDataProcessedBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces BuiltinSqlPoolDataProcessedBytes Alert", - "description": "Policy to Audit/Deploy Synapse workspaces BuiltinSqlPoolDataProcessedBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolLoginAttempts_6cf01e09-24d5-4097-bac1-1d39b0f577c8.json b/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolLoginAttempts_6cf01e09-24d5-4097-bac1-1d39b0f577c8.json index 58f7630e3..00f7a1aba 100644 --- a/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolLoginAttempts_6cf01e09-24d5-4097-bac1-1d39b0f577c8.json +++ b/services/Synapse/workspaces/templates/policy-arm/BuiltinSqlPoolLoginAttempts_6cf01e09-24d5-4097-bac1-1d39b0f577c8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces BuiltinSqlPoolLoginAttempts Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces BuiltinSqlPoolLoginAttempts Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces BuiltinSqlPoolLoginAttempts Alert", - "description": "Policy to Audit/Deploy Synapse workspaces BuiltinSqlPoolLoginAttempts Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/IntegrationActivityRunsEnded_21280a1a-d4e5-4ec3-83f5-f8d22ae0340a.json b/services/Synapse/workspaces/templates/policy-arm/IntegrationActivityRunsEnded_21280a1a-d4e5-4ec3-83f5-f8d22ae0340a.json index 0b8e5167f..1ee4d57ed 100644 --- a/services/Synapse/workspaces/templates/policy-arm/IntegrationActivityRunsEnded_21280a1a-d4e5-4ec3-83f5-f8d22ae0340a.json +++ b/services/Synapse/workspaces/templates/policy-arm/IntegrationActivityRunsEnded_21280a1a-d4e5-4ec3-83f5-f8d22ae0340a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces IntegrationActivityRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces IntegrationActivityRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces IntegrationActivityRunsEnded Alert", - "description": "Policy to Audit/Deploy Synapse workspaces IntegrationActivityRunsEnded Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/IntegrationPipelineRunsEnded_16072e08-8ffb-48c9-afa9-fe2192b4513b.json b/services/Synapse/workspaces/templates/policy-arm/IntegrationPipelineRunsEnded_16072e08-8ffb-48c9-afa9-fe2192b4513b.json index ed806d934..eb6804fbf 100644 --- a/services/Synapse/workspaces/templates/policy-arm/IntegrationPipelineRunsEnded_16072e08-8ffb-48c9-afa9-fe2192b4513b.json +++ b/services/Synapse/workspaces/templates/policy-arm/IntegrationPipelineRunsEnded_16072e08-8ffb-48c9-afa9-fe2192b4513b.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces IntegrationPipelineRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces IntegrationPipelineRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces IntegrationPipelineRunsEnded Alert", - "description": "Policy to Audit/Deploy Synapse workspaces IntegrationPipelineRunsEnded Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/IntegrationTriggerRunsEnded_583c6484-b7a3-4908-b4d4-9a8b08d1edf9.json b/services/Synapse/workspaces/templates/policy-arm/IntegrationTriggerRunsEnded_583c6484-b7a3-4908-b4d4-9a8b08d1edf9.json index 17d6c05e4..681726ac2 100644 --- a/services/Synapse/workspaces/templates/policy-arm/IntegrationTriggerRunsEnded_583c6484-b7a3-4908-b4d4-9a8b08d1edf9.json +++ b/services/Synapse/workspaces/templates/policy-arm/IntegrationTriggerRunsEnded_583c6484-b7a3-4908-b4d4-9a8b08d1edf9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces IntegrationTriggerRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces IntegrationTriggerRunsEnded Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces IntegrationTriggerRunsEnded Alert", - "description": "Policy to Audit/Deploy Synapse workspaces IntegrationTriggerRunsEnded Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/sqlPools-CPUPercent_d8d1bc29-bfdb-48a5-89bd-7e34522d8085.json b/services/Synapse/workspaces/templates/policy-arm/sqlPools-CPUPercent_d8d1bc29-bfdb-48a5-89bd-7e34522d8085.json index dcc870511..a546546d5 100644 --- a/services/Synapse/workspaces/templates/policy-arm/sqlPools-CPUPercent_d8d1bc29-bfdb-48a5-89bd-7e34522d8085.json +++ b/services/Synapse/workspaces/templates/policy-arm/sqlPools-CPUPercent_d8d1bc29-bfdb-48a5-89bd-7e34522d8085.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces sqlPools CPUPercent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces sqlPools CPUPercent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces sqlPools CPUPercent Alert", - "description": "Policy to Audit/Deploy Synapse workspaces sqlPools CPUPercent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/sqlPools-DWUUsedPercent_64f41eaa-048f-4892-b80f-593e74ef4f84.json b/services/Synapse/workspaces/templates/policy-arm/sqlPools-DWUUsedPercent_64f41eaa-048f-4892-b80f-593e74ef4f84.json index a10b985db..0e64a17ad 100644 --- a/services/Synapse/workspaces/templates/policy-arm/sqlPools-DWUUsedPercent_64f41eaa-048f-4892-b80f-593e74ef4f84.json +++ b/services/Synapse/workspaces/templates/policy-arm/sqlPools-DWUUsedPercent_64f41eaa-048f-4892-b80f-593e74ef4f84.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces sqlPools DWUUsedPercent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces sqlPools DWUUsedPercent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces sqlPools DWUUsedPercent Alert", - "description": "Policy to Audit/Deploy Synapse workspaces sqlPools DWUUsedPercent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Synapse/workspaces/templates/policy-arm/sqlPools-MemoryUsedPercent_4c4d35e8-fdd7-4951-8a71-7b9add69d337.json b/services/Synapse/workspaces/templates/policy-arm/sqlPools-MemoryUsedPercent_4c4d35e8-fdd7-4951-8a71-7b9add69d337.json index 31c7733b7..ef5fa59bc 100644 --- a/services/Synapse/workspaces/templates/policy-arm/sqlPools-MemoryUsedPercent_4c4d35e8-fdd7-4951-8a71-7b9add69d337.json +++ b/services/Synapse/workspaces/templates/policy-arm/sqlPools-MemoryUsedPercent_4c4d35e8-fdd7-4951-8a71-7b9add69d337.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Synapse workspaces sqlPools MemoryUsedPercent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Synapse workspaces sqlPools MemoryUsedPercent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Synapse workspaces sqlPools MemoryUsedPercent Alert", - "description": "Policy to Audit/Deploy Synapse workspaces sqlPools MemoryUsedPercent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Synapse", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/hostingEnvironments/templates/policy-arm/CpuPercentage_f6c1126c-48cf-499a-b0a2-e4fdd80cdf0e.json b/services/Web/hostingEnvironments/templates/policy-arm/CpuPercentage_f6c1126c-48cf-499a-b0a2-e4fdd80cdf0e.json index 60eeb2c0e..d72a973bf 100644 --- a/services/Web/hostingEnvironments/templates/policy-arm/CpuPercentage_f6c1126c-48cf-499a-b0a2-e4fdd80cdf0e.json +++ b/services/Web/hostingEnvironments/templates/policy-arm/CpuPercentage_f6c1126c-48cf-499a-b0a2-e4fdd80cdf0e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web hostingEnvironments multiRolePools CpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web hostingEnvironments multiRolePools CpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web hostingEnvironments multiRolePools CpuPercentage Alert", - "description": "Policy to Audit/Deploy Web hostingEnvironments multiRolePools CpuPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/hostingEnvironments/templates/policy-arm/HttpQueueLength_c7ad761f-19bf-4289-ab47-2721c6d387eb.json b/services/Web/hostingEnvironments/templates/policy-arm/HttpQueueLength_c7ad761f-19bf-4289-ab47-2721c6d387eb.json index cf5b30d3f..6eed1b902 100644 --- a/services/Web/hostingEnvironments/templates/policy-arm/HttpQueueLength_c7ad761f-19bf-4289-ab47-2721c6d387eb.json +++ b/services/Web/hostingEnvironments/templates/policy-arm/HttpQueueLength_c7ad761f-19bf-4289-ab47-2721c6d387eb.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web hostingEnvironments multiRolePools HttpQueueLength Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web hostingEnvironments multiRolePools HttpQueueLength Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web hostingEnvironments multiRolePools HttpQueueLength Alert", - "description": "Policy to Audit/Deploy Web hostingEnvironments multiRolePools HttpQueueLength Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/BytesReceived_7bdc68c3-7679-482d-82e4-92a8229db9d7.json b/services/Web/serverFarms/templates/policy-arm/BytesReceived_7bdc68c3-7679-482d-82e4-92a8229db9d7.json index ec7cf3d56..de4ea5a45 100644 --- a/services/Web/serverFarms/templates/policy-arm/BytesReceived_7bdc68c3-7679-482d-82e4-92a8229db9d7.json +++ b/services/Web/serverFarms/templates/policy-arm/BytesReceived_7bdc68c3-7679-482d-82e4-92a8229db9d7.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms BytesReceived Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms BytesReceived Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms BytesReceived Alert", - "description": "Policy to Audit/Deploy Web serverFarms BytesReceived Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/BytesSent_520cc4d4-2caa-42df-b8b7-86dbc4786ce6.json b/services/Web/serverFarms/templates/policy-arm/BytesSent_520cc4d4-2caa-42df-b8b7-86dbc4786ce6.json index 44a7f6d49..17555dfdf 100644 --- a/services/Web/serverFarms/templates/policy-arm/BytesSent_520cc4d4-2caa-42df-b8b7-86dbc4786ce6.json +++ b/services/Web/serverFarms/templates/policy-arm/BytesSent_520cc4d4-2caa-42df-b8b7-86dbc4786ce6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms BytesSent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms BytesSent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms BytesSent Alert", - "description": "Policy to Audit/Deploy Web serverFarms BytesSent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/CpuPercentage_8748b7d6-ef2a-4548-bf8e-dc6eecd2a651.json b/services/Web/serverFarms/templates/policy-arm/CpuPercentage_8748b7d6-ef2a-4548-bf8e-dc6eecd2a651.json index 8631e25b4..9b5002acb 100644 --- a/services/Web/serverFarms/templates/policy-arm/CpuPercentage_8748b7d6-ef2a-4548-bf8e-dc6eecd2a651.json +++ b/services/Web/serverFarms/templates/policy-arm/CpuPercentage_8748b7d6-ef2a-4548-bf8e-dc6eecd2a651.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms CpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms CpuPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms CpuPercentage Alert", - "description": "Policy to Audit/Deploy Web serverFarms CpuPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/DiskQueueLength_14dbacac-2559-4537-9be9-7d08bdd0888d.json b/services/Web/serverFarms/templates/policy-arm/DiskQueueLength_14dbacac-2559-4537-9be9-7d08bdd0888d.json index b144b01ff..5614b4aa5 100644 --- a/services/Web/serverFarms/templates/policy-arm/DiskQueueLength_14dbacac-2559-4537-9be9-7d08bdd0888d.json +++ b/services/Web/serverFarms/templates/policy-arm/DiskQueueLength_14dbacac-2559-4537-9be9-7d08bdd0888d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms DiskQueueLength Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms DiskQueueLength Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms DiskQueueLength Alert", - "description": "Policy to Audit/Deploy Web serverFarms DiskQueueLength Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/HttpQueueLength_e85efb6a-239a-41e0-8cdd-b1792c41ec41.json b/services/Web/serverFarms/templates/policy-arm/HttpQueueLength_e85efb6a-239a-41e0-8cdd-b1792c41ec41.json index 48d83330c..8bab54431 100644 --- a/services/Web/serverFarms/templates/policy-arm/HttpQueueLength_e85efb6a-239a-41e0-8cdd-b1792c41ec41.json +++ b/services/Web/serverFarms/templates/policy-arm/HttpQueueLength_e85efb6a-239a-41e0-8cdd-b1792c41ec41.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms HttpQueueLength Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms HttpQueueLength Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms HttpQueueLength Alert", - "description": "Policy to Audit/Deploy Web serverFarms HttpQueueLength Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/MemoryPercentage_b87ecc60-7558-4cb4-8ef9-3185c4c19579.json b/services/Web/serverFarms/templates/policy-arm/MemoryPercentage_b87ecc60-7558-4cb4-8ef9-3185c4c19579.json index d83a9c440..f225e12bc 100644 --- a/services/Web/serverFarms/templates/policy-arm/MemoryPercentage_b87ecc60-7558-4cb4-8ef9-3185c4c19579.json +++ b/services/Web/serverFarms/templates/policy-arm/MemoryPercentage_b87ecc60-7558-4cb4-8ef9-3185c4c19579.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms MemoryPercentage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms MemoryPercentage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms MemoryPercentage Alert", - "description": "Policy to Audit/Deploy Web serverFarms MemoryPercentage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/SocketOutboundAll_96257455-b2cf-4f35-9c64-00eea637471a.json b/services/Web/serverFarms/templates/policy-arm/SocketOutboundAll_96257455-b2cf-4f35-9c64-00eea637471a.json index 000485d05..9982b56da 100644 --- a/services/Web/serverFarms/templates/policy-arm/SocketOutboundAll_96257455-b2cf-4f35-9c64-00eea637471a.json +++ b/services/Web/serverFarms/templates/policy-arm/SocketOutboundAll_96257455-b2cf-4f35-9c64-00eea637471a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms SocketOutboundAll Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms SocketOutboundAll Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms SocketOutboundAll Alert", - "description": "Policy to Audit/Deploy Web serverFarms SocketOutboundAll Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/TcpEstablished_f03350e9-f936-4ac0-a64f-2d2df1fc9f75.json b/services/Web/serverFarms/templates/policy-arm/TcpEstablished_f03350e9-f936-4ac0-a64f-2d2df1fc9f75.json index 1726047a4..cafd6c149 100644 --- a/services/Web/serverFarms/templates/policy-arm/TcpEstablished_f03350e9-f936-4ac0-a64f-2d2df1fc9f75.json +++ b/services/Web/serverFarms/templates/policy-arm/TcpEstablished_f03350e9-f936-4ac0-a64f-2d2df1fc9f75.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms TcpEstablished Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms TcpEstablished Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms TcpEstablished Alert", - "description": "Policy to Audit/Deploy Web serverFarms TcpEstablished Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/serverFarms/templates/policy-arm/TcpTimeWait_2a129b1b-36a7-4048-9403-004dc5e6b0b2.json b/services/Web/serverFarms/templates/policy-arm/TcpTimeWait_2a129b1b-36a7-4048-9403-004dc5e6b0b2.json index 9b8444ec9..4d27810a3 100644 --- a/services/Web/serverFarms/templates/policy-arm/TcpTimeWait_2a129b1b-36a7-4048-9403-004dc5e6b0b2.json +++ b/services/Web/serverFarms/templates/policy-arm/TcpTimeWait_2a129b1b-36a7-4048-9403-004dc5e6b0b2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web serverFarms TcpTimeWait Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web serverFarms TcpTimeWait Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web serverFarms TcpTimeWait Alert", - "description": "Policy to Audit/Deploy Web serverFarms TcpTimeWait Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/AppConnections_a74bd8f3-cab7-46e6-ac1e-7527d2385bee.json b/services/Web/sites/templates/policy-arm/AppConnections_a74bd8f3-cab7-46e6-ac1e-7527d2385bee.json index a21edc837..5d1b659ef 100644 --- a/services/Web/sites/templates/policy-arm/AppConnections_a74bd8f3-cab7-46e6-ac1e-7527d2385bee.json +++ b/services/Web/sites/templates/policy-arm/AppConnections_a74bd8f3-cab7-46e6-ac1e-7527d2385bee.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites AppConnections Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites AppConnections Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites AppConnections Alert", - "description": "Policy to Audit/Deploy Web sites AppConnections Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/AverageResponseTime_b16f8234-e6c6-4723-933e-e5f8c179f23d.json b/services/Web/sites/templates/policy-arm/AverageResponseTime_b16f8234-e6c6-4723-933e-e5f8c179f23d.json index 9d207793d..a13d921db 100644 --- a/services/Web/sites/templates/policy-arm/AverageResponseTime_b16f8234-e6c6-4723-933e-e5f8c179f23d.json +++ b/services/Web/sites/templates/policy-arm/AverageResponseTime_b16f8234-e6c6-4723-933e-e5f8c179f23d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites AverageResponseTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites AverageResponseTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites AverageResponseTime Alert", - "description": "Policy to Audit/Deploy Web sites AverageResponseTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/BytesReceived_a9177e32-e3fa-425a-a02e-727ff3515ae0.json b/services/Web/sites/templates/policy-arm/BytesReceived_a9177e32-e3fa-425a-a02e-727ff3515ae0.json index c28457427..86957c2ca 100644 --- a/services/Web/sites/templates/policy-arm/BytesReceived_a9177e32-e3fa-425a-a02e-727ff3515ae0.json +++ b/services/Web/sites/templates/policy-arm/BytesReceived_a9177e32-e3fa-425a-a02e-727ff3515ae0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites BytesReceived Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites BytesReceived Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites BytesReceived Alert", - "description": "Policy to Audit/Deploy Web sites BytesReceived Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/BytesSent_49f62a85-7edf-4afc-9201-7a8939d6a42a.json b/services/Web/sites/templates/policy-arm/BytesSent_49f62a85-7edf-4afc-9201-7a8939d6a42a.json index 29c945c35..03ee3de8d 100644 --- a/services/Web/sites/templates/policy-arm/BytesSent_49f62a85-7edf-4afc-9201-7a8939d6a42a.json +++ b/services/Web/sites/templates/policy-arm/BytesSent_49f62a85-7edf-4afc-9201-7a8939d6a42a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites BytesSent Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites BytesSent Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites BytesSent Alert", - "description": "Policy to Audit/Deploy Web sites BytesSent Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/CpuTime_48fcc15e-f043-4bb5-a628-6aefc60432c1.json b/services/Web/sites/templates/policy-arm/CpuTime_48fcc15e-f043-4bb5-a628-6aefc60432c1.json index 0a2186996..0d75ae4c0 100644 --- a/services/Web/sites/templates/policy-arm/CpuTime_48fcc15e-f043-4bb5-a628-6aefc60432c1.json +++ b/services/Web/sites/templates/policy-arm/CpuTime_48fcc15e-f043-4bb5-a628-6aefc60432c1.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites CpuTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites CpuTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites CpuTime Alert", - "description": "Policy to Audit/Deploy Web sites CpuTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/CurrentAssemblies_b63593ad-6c47-49e3-9b4a-e8b19f0cc7db.json b/services/Web/sites/templates/policy-arm/CurrentAssemblies_b63593ad-6c47-49e3-9b4a-e8b19f0cc7db.json index ff7f24115..3dbe8bedf 100644 --- a/services/Web/sites/templates/policy-arm/CurrentAssemblies_b63593ad-6c47-49e3-9b4a-e8b19f0cc7db.json +++ b/services/Web/sites/templates/policy-arm/CurrentAssemblies_b63593ad-6c47-49e3-9b4a-e8b19f0cc7db.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites CurrentAssemblies Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites CurrentAssemblies Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites CurrentAssemblies Alert", - "description": "Policy to Audit/Deploy Web sites CurrentAssemblies Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/FileSystemUsage_b0c0fca3-1832-4a18-8832-5eebd2c1370a.json b/services/Web/sites/templates/policy-arm/FileSystemUsage_b0c0fca3-1832-4a18-8832-5eebd2c1370a.json index 14f05b4b5..434a94efe 100644 --- a/services/Web/sites/templates/policy-arm/FileSystemUsage_b0c0fca3-1832-4a18-8832-5eebd2c1370a.json +++ b/services/Web/sites/templates/policy-arm/FileSystemUsage_b0c0fca3-1832-4a18-8832-5eebd2c1370a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites FileSystemUsage Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites FileSystemUsage Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites FileSystemUsage Alert", - "description": "Policy to Audit/Deploy Web sites FileSystemUsage Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/FunctionExecutionCount_1e71d59c-b29f-4b43-9f49-7aa0da50c88c.json b/services/Web/sites/templates/policy-arm/FunctionExecutionCount_1e71d59c-b29f-4b43-9f49-7aa0da50c88c.json index 239e8d26c..39be171a9 100644 --- a/services/Web/sites/templates/policy-arm/FunctionExecutionCount_1e71d59c-b29f-4b43-9f49-7aa0da50c88c.json +++ b/services/Web/sites/templates/policy-arm/FunctionExecutionCount_1e71d59c-b29f-4b43-9f49-7aa0da50c88c.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites FunctionExecutionCount Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites FunctionExecutionCount Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites FunctionExecutionCount Alert", - "description": "Policy to Audit/Deploy Web sites FunctionExecutionCount Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/FunctionExecutionUnits_12241b03-3f62-4100-9cf3-7798a7796600.json b/services/Web/sites/templates/policy-arm/FunctionExecutionUnits_12241b03-3f62-4100-9cf3-7798a7796600.json index db163359a..c211582cf 100644 --- a/services/Web/sites/templates/policy-arm/FunctionExecutionUnits_12241b03-3f62-4100-9cf3-7798a7796600.json +++ b/services/Web/sites/templates/policy-arm/FunctionExecutionUnits_12241b03-3f62-4100-9cf3-7798a7796600.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites FunctionExecutionUnits Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites FunctionExecutionUnits Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites FunctionExecutionUnits Alert", - "description": "Policy to Audit/Deploy Web sites FunctionExecutionUnits Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Handles_dc560ab2-18ad-49ae-9937-9b9a770faaab.json b/services/Web/sites/templates/policy-arm/Handles_dc560ab2-18ad-49ae-9937-9b9a770faaab.json index 4bb2eca6f..ce2ab6591 100644 --- a/services/Web/sites/templates/policy-arm/Handles_dc560ab2-18ad-49ae-9937-9b9a770faaab.json +++ b/services/Web/sites/templates/policy-arm/Handles_dc560ab2-18ad-49ae-9937-9b9a770faaab.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Handles Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Handles Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Handles Alert", - "description": "Policy to Audit/Deploy Web sites Handles Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Http2xx_e4fa68d2-55cd-4371-9574-95ae5c34d4ae.json b/services/Web/sites/templates/policy-arm/Http2xx_e4fa68d2-55cd-4371-9574-95ae5c34d4ae.json index 6920a8e05..0742993a3 100644 --- a/services/Web/sites/templates/policy-arm/Http2xx_e4fa68d2-55cd-4371-9574-95ae5c34d4ae.json +++ b/services/Web/sites/templates/policy-arm/Http2xx_e4fa68d2-55cd-4371-9574-95ae5c34d4ae.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Http2xx Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Http2xx Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Http2xx Alert", - "description": "Policy to Audit/Deploy Web sites Http2xx Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Http3xx_0853a13e-b316-4ea0-98a2-9d722a508d1e.json b/services/Web/sites/templates/policy-arm/Http3xx_0853a13e-b316-4ea0-98a2-9d722a508d1e.json index bc4df9d03..6a1dc7b05 100644 --- a/services/Web/sites/templates/policy-arm/Http3xx_0853a13e-b316-4ea0-98a2-9d722a508d1e.json +++ b/services/Web/sites/templates/policy-arm/Http3xx_0853a13e-b316-4ea0-98a2-9d722a508d1e.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Http3xx Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Http3xx Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Http3xx Alert", - "description": "Policy to Audit/Deploy Web sites Http3xx Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Http401_a8024ffc-b3b7-48eb-8f24-ae7da834cde2.json b/services/Web/sites/templates/policy-arm/Http401_a8024ffc-b3b7-48eb-8f24-ae7da834cde2.json index 20841e40e..bd7d757a7 100644 --- a/services/Web/sites/templates/policy-arm/Http401_a8024ffc-b3b7-48eb-8f24-ae7da834cde2.json +++ b/services/Web/sites/templates/policy-arm/Http401_a8024ffc-b3b7-48eb-8f24-ae7da834cde2.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Http401 Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Http401 Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Http401 Alert", - "description": "Policy to Audit/Deploy Web sites Http401 Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Http406_02ef5600-fed6-474a-8fbb-5ed088b04d0d.json b/services/Web/sites/templates/policy-arm/Http406_02ef5600-fed6-474a-8fbb-5ed088b04d0d.json index 66588b146..e31adf1eb 100644 --- a/services/Web/sites/templates/policy-arm/Http406_02ef5600-fed6-474a-8fbb-5ed088b04d0d.json +++ b/services/Web/sites/templates/policy-arm/Http406_02ef5600-fed6-474a-8fbb-5ed088b04d0d.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Http406 Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Http406 Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Http406 Alert", - "description": "Policy to Audit/Deploy Web sites Http406 Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/MemoryWorkingSet_93768520-ab75-4e4e-b39b-a210a32379c0.json b/services/Web/sites/templates/policy-arm/MemoryWorkingSet_93768520-ab75-4e4e-b39b-a210a32379c0.json index 73725521e..6f2014e69 100644 --- a/services/Web/sites/templates/policy-arm/MemoryWorkingSet_93768520-ab75-4e4e-b39b-a210a32379c0.json +++ b/services/Web/sites/templates/policy-arm/MemoryWorkingSet_93768520-ab75-4e4e-b39b-a210a32379c0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites MemoryWorkingSet Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites MemoryWorkingSet Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites MemoryWorkingSet Alert", - "description": "Policy to Audit/Deploy Web sites MemoryWorkingSet Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/PrivateBytes_3acdc4ab-514c-42c3-82e1-cb41fa338c2f.json b/services/Web/sites/templates/policy-arm/PrivateBytes_3acdc4ab-514c-42c3-82e1-cb41fa338c2f.json index a16086ee8..e83c1d530 100644 --- a/services/Web/sites/templates/policy-arm/PrivateBytes_3acdc4ab-514c-42c3-82e1-cb41fa338c2f.json +++ b/services/Web/sites/templates/policy-arm/PrivateBytes_3acdc4ab-514c-42c3-82e1-cb41fa338c2f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites PrivateBytes Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites PrivateBytes Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites PrivateBytes Alert", - "description": "Policy to Audit/Deploy Web sites PrivateBytes Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/RequestsInApplicationQueue_2e62242b-6d20-44b5-86f9-f9a0de8ffe3f.json b/services/Web/sites/templates/policy-arm/RequestsInApplicationQueue_2e62242b-6d20-44b5-86f9-f9a0de8ffe3f.json index 0d488a3a9..f29eff62e 100644 --- a/services/Web/sites/templates/policy-arm/RequestsInApplicationQueue_2e62242b-6d20-44b5-86f9-f9a0de8ffe3f.json +++ b/services/Web/sites/templates/policy-arm/RequestsInApplicationQueue_2e62242b-6d20-44b5-86f9-f9a0de8ffe3f.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites RequestsInApplicationQueue Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites RequestsInApplicationQueue Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites RequestsInApplicationQueue Alert", - "description": "Policy to Audit/Deploy Web sites RequestsInApplicationQueue Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Requests_fa87c863-2d21-4b9d-897f-452fd35b06c3.json b/services/Web/sites/templates/policy-arm/Requests_fa87c863-2d21-4b9d-897f-452fd35b06c3.json index 6f5f45b30..23c7e7066 100644 --- a/services/Web/sites/templates/policy-arm/Requests_fa87c863-2d21-4b9d-897f-452fd35b06c3.json +++ b/services/Web/sites/templates/policy-arm/Requests_fa87c863-2d21-4b9d-897f-452fd35b06c3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Requests Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Requests Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Requests Alert", - "description": "Policy to Audit/Deploy Web sites Requests Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/Threads_9e412261-433b-45fd-8944-2f891bf14a56.json b/services/Web/sites/templates/policy-arm/Threads_9e412261-433b-45fd-8944-2f891bf14a56.json index cb761c6c3..61836e7af 100644 --- a/services/Web/sites/templates/policy-arm/Threads_9e412261-433b-45fd-8944-2f891bf14a56.json +++ b/services/Web/sites/templates/policy-arm/Threads_9e412261-433b-45fd-8944-2f891bf14a56.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites Threads Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites Threads Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites Threads Alert", - "description": "Policy to Audit/Deploy Web sites Threads Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/WorkflowRunsFailureRate_89ec4b6f-d1b2-4402-8a1d-48440624fc31.json b/services/Web/sites/templates/policy-arm/WorkflowRunsFailureRate_89ec4b6f-d1b2-4402-8a1d-48440624fc31.json index faa6bc187..0cba09381 100644 --- a/services/Web/sites/templates/policy-arm/WorkflowRunsFailureRate_89ec4b6f-d1b2-4402-8a1d-48440624fc31.json +++ b/services/Web/sites/templates/policy-arm/WorkflowRunsFailureRate_89ec4b6f-d1b2-4402-8a1d-48440624fc31.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites WorkflowRunsFailureRate Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites WorkflowRunsFailureRate Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites WorkflowRunsFailureRate Alert", - "description": "Policy to Audit/Deploy Web sites WorkflowRunsFailureRate Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/WorkflowTriggersFailureRate_8a492278-c49f-4e4c-8fd5-a1680590864a.json b/services/Web/sites/templates/policy-arm/WorkflowTriggersFailureRate_8a492278-c49f-4e4c-8fd5-a1680590864a.json index e022091c6..ca8b81bfd 100644 --- a/services/Web/sites/templates/policy-arm/WorkflowTriggersFailureRate_8a492278-c49f-4e4c-8fd5-a1680590864a.json +++ b/services/Web/sites/templates/policy-arm/WorkflowTriggersFailureRate_8a492278-c49f-4e4c-8fd5-a1680590864a.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites WorkflowTriggersFailureRate Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites WorkflowTriggersFailureRate Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites WorkflowTriggersFailureRate Alert", - "description": "Policy to Audit/Deploy Web sites WorkflowTriggersFailureRate Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-AverageMemoryWorkingSet_e6f23a76-11f3-471e-b7d7-ebc787487069.json b/services/Web/sites/templates/policy-arm/slots-AverageMemoryWorkingSet_e6f23a76-11f3-471e-b7d7-ebc787487069.json index 846ca22c4..a2ca470c1 100644 --- a/services/Web/sites/templates/policy-arm/slots-AverageMemoryWorkingSet_e6f23a76-11f3-471e-b7d7-ebc787487069.json +++ b/services/Web/sites/templates/policy-arm/slots-AverageMemoryWorkingSet_e6f23a76-11f3-471e-b7d7-ebc787487069.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots AverageMemoryWorkingSet Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots AverageMemoryWorkingSet Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots AverageMemoryWorkingSet Alert", - "description": "Policy to Audit/Deploy Web sites slots AverageMemoryWorkingSet Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-HealthCheckStatus_ff5238a3-e40f-47c7-a142-f7a19b7764f9.json b/services/Web/sites/templates/policy-arm/slots-HealthCheckStatus_ff5238a3-e40f-47c7-a142-f7a19b7764f9.json index e4f490b01..a2a0cbf19 100644 --- a/services/Web/sites/templates/policy-arm/slots-HealthCheckStatus_ff5238a3-e40f-47c7-a142-f7a19b7764f9.json +++ b/services/Web/sites/templates/policy-arm/slots-HealthCheckStatus_ff5238a3-e40f-47c7-a142-f7a19b7764f9.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots HealthCheckStatus Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots HealthCheckStatus Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots HealthCheckStatus Alert", - "description": "Policy to Audit/Deploy Web sites slots HealthCheckStatus Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-Http403_67ca6d43-ab88-4fb8-9c18-2862765681e6.json b/services/Web/sites/templates/policy-arm/slots-Http403_67ca6d43-ab88-4fb8-9c18-2862765681e6.json index edf7838c0..17415b25d 100644 --- a/services/Web/sites/templates/policy-arm/slots-Http403_67ca6d43-ab88-4fb8-9c18-2862765681e6.json +++ b/services/Web/sites/templates/policy-arm/slots-Http403_67ca6d43-ab88-4fb8-9c18-2862765681e6.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots Http403 Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots Http403 Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots Http403 Alert", - "description": "Policy to Audit/Deploy Web sites slots Http403 Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-Http404_265b54e0-33a0-44b3-9f7b-ce53328439e3.json b/services/Web/sites/templates/policy-arm/slots-Http404_265b54e0-33a0-44b3-9f7b-ce53328439e3.json index 8c02426e0..f253246bc 100644 --- a/services/Web/sites/templates/policy-arm/slots-Http404_265b54e0-33a0-44b3-9f7b-ce53328439e3.json +++ b/services/Web/sites/templates/policy-arm/slots-Http404_265b54e0-33a0-44b3-9f7b-ce53328439e3.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots Http404 Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots Http404 Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots Http404 Alert", - "description": "Policy to Audit/Deploy Web sites slots Http404 Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-Http4xx_0bdd95e0-1d48-40e5-85c7-cd8008b966b0.json b/services/Web/sites/templates/policy-arm/slots-Http4xx_0bdd95e0-1d48-40e5-85c7-cd8008b966b0.json index 63824142e..aa4d45383 100644 --- a/services/Web/sites/templates/policy-arm/slots-Http4xx_0bdd95e0-1d48-40e5-85c7-cd8008b966b0.json +++ b/services/Web/sites/templates/policy-arm/slots-Http4xx_0bdd95e0-1d48-40e5-85c7-cd8008b966b0.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots Http4xx Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots Http4xx Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots Http4xx Alert", - "description": "Policy to Audit/Deploy Web sites slots Http4xx Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-Http5xx_fe7cfeb1-c18f-4822-8e6c-fb73dcd175a8.json b/services/Web/sites/templates/policy-arm/slots-Http5xx_fe7cfeb1-c18f-4822-8e6c-fb73dcd175a8.json index 96b4c2a5d..6577ef01b 100644 --- a/services/Web/sites/templates/policy-arm/slots-Http5xx_fe7cfeb1-c18f-4822-8e6c-fb73dcd175a8.json +++ b/services/Web/sites/templates/policy-arm/slots-Http5xx_fe7cfeb1-c18f-4822-8e6c-fb73dcd175a8.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots Http5xx Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots Http5xx Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots Http5xx Alert", - "description": "Policy to Audit/Deploy Web sites slots Http5xx Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/services/Web/sites/templates/policy-arm/slots-HttpResponseTime_b4e2bc80-9307-44d8-89f1-04c7133f37fc.json b/services/Web/sites/templates/policy-arm/slots-HttpResponseTime_b4e2bc80-9307-44d8-89f1-04c7133f37fc.json index 1a60f4fb3..2ab6d0501 100644 --- a/services/Web/sites/templates/policy-arm/slots-HttpResponseTime_b4e2bc80-9307-44d8-89f1-04c7133f37fc.json +++ b/services/Web/sites/templates/policy-arm/slots-HttpResponseTime_b4e2bc80-9307-44d8-89f1-04c7133f37fc.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "Deploy Web sites slots HttpResponseTime Alert", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "Policy to Audit/Deploy Web sites slots HttpResponseTime Alert", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "Deploy Web sites slots HttpResponseTime Alert", - "description": "Policy to Audit/Deploy Web sites slots HttpResponseTime Alert", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "Web", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/tooling/generate-templates/generate-policies-full-arm.ps1 b/tooling/generate-templates/generate-policies-full-arm.ps1 index d81f15768..ea1a4c907 100644 --- a/tooling/generate-templates/generate-policies-full-arm.ps1 +++ b/tooling/generate-templates/generate-policies-full-arm.ps1 @@ -51,6 +51,7 @@ process { #if ($alert.type -eq "ActivityLog" -and $alert.properties.category -eq "Administrative") { # $alertTemplate = Get-Content "C:\Repos\azure-monitor-baseline-alerts\tooling\generate-templates\policy\activity-administrative.json" #} + $alertTemplate = $alertTemplate -replace "##TELEMETRY_PID##", 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d' $alertTemplate = $alertTemplate -replace "##POLICY_NAME##", $alert.guid if ($alert.deployments.name -ne $null) { $alertTemplate = $alertTemplate -replace "##POLICY_DISPLAY_NAME##", $alert.deployments.name diff --git a/tooling/generate-templates/policy/metric-dynamic-full-arm.json b/tooling/generate-templates/policy/metric-dynamic-full-arm.json index cd38b3bc7..3ee78db62 100644 --- a/tooling/generate-templates/policy/metric-dynamic-full-arm.json +++ b/tooling/generate-templates/policy/metric-dynamic-full-arm.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "##POLICY_DISPLAY_NAME##", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "##POLICY_DESCRIPTION##", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('##TELEMETRY_PID##-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "##POLICY_DISPLAY_NAME##", - "description": "##POLICY_DESCRIPTION##", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "##POLICY_CATEGORY##", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -351,6 +385,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] } diff --git a/tooling/generate-templates/policy/metric-static-full-arm.json b/tooling/generate-templates/policy/metric-static-full-arm.json index ccebbef66..932720321 100644 --- a/tooling/generate-templates/policy/metric-static-full-arm.json +++ b/tooling/generate-templates/policy/metric-static-full-arm.json @@ -1,6 +1,44 @@ { "$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", "contentVersion": "1.0.0.0", + "parameters": { + "displayName": { + "defaultValue": "##POLICY_DISPLAY_NAME##", + "type": "String", + "metadata": { + "description": "Display name of policy" + } + }, + "description": { + "defaultValue": "##POLICY_DESCRIPTION##", + "type": "String", + "metadata": { + "description": "Description of policy" + } + }, + "currentDateTimeUtcNow": { + "defaultValue": "[utcNow()]", + "type": "String", + "metadata": { + "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" + } + }, + "telemetryOptOut": { + "defaultValue": "No", + "allowedValues": [ + "Yes", + "No" + ], + "type": "String", + "metadata": { + "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." + } + } + }, + "variables": { + "pidDeploymentName": "[take(concat('##TELEMETRY_PID##-', uniqueString(managementGroup().id, parameters('currentDateTimeUtcNow'))), 64)]", + "location": "[deployment().location]" + }, "resources": [ { "type": "Microsoft.Authorization/policyDefinitions", @@ -9,16 +47,12 @@ "properties": { "policyType": "Custom", "mode": "All", - "displayName": "##POLICY_DISPLAY_NAME##", - "description": "##POLICY_DESCRIPTION##", + "displayName": "[parameters('displayName')]", + "description": "[parameters('description')]", "metadata": { - "version": "1.0.0-preview", + "version": "1.0.0", "category": "##POLICY_CATEGORY##", - "preview": true, "source": "https://github.com/Azure/azure-monitor-baseline-alerts/", - "alzCloudEnvironments": [ - "AzureCloud" - ], "_deployed_by_amba": "True" }, "parameters": { @@ -334,6 +368,21 @@ } } } + }, + { + "type": "Microsoft.Resources/deployments", + "apiVersion": "2023-07-01", + "name": "[variables('pidDeploymentName')]", + "location": "[variables('location')]", + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [] + } + }, + "condition": "[equals(parameters('telemetryOptOut'), 'No')]" } ] }