{"id":317502,"date":"2021-02-04T21:01:01","date_gmt":"2021-02-04T21:01:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=317502"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=317502","title":{"rendered":"\u041e\u0441\u043d\u043e\u0432\u044b \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Microsoft Azure Blueprints"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/21f\/691\/56b\/21f69156b3d2a56357e458ee4d287800.png\" width=\"1600\" height=\"960\"><figcaption><\/figcaption><\/figure>\n<p><em>\u0410\u0432\u0442\u043e\u0440: \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041c\u043e\u043d\u0430\u0445\u043e\u0432, \u041b\u0435\u043e\u043d\u0442\u0438\u0439 \u041e\u043d\u0438\u0449\u0443\u043a, \u0412\u0438\u0442\u0430\u043b\u0438\u0439 \u0413\u043d\u0443\u0441\u0438\u043d <\/em>\u2014 <em>DevOps<\/em> <em>Engineers,<\/em> <em>DataArt, \u0410\u043d\u043d\u0430 \u041c\u0435\u0434\u0432\u0435\u0434\u0435\u043d\u043a\u043e<\/em> \u2014 <em>Project Manager,<\/em> <em>DataArt <\/em><\/p>\n<p>\u041d\u0430\u0448\u0430 DevOps-\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0430\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044f\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Blueprints. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f: \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 Blueprint, \u0437\u0430\u0442\u0440\u043e\u043d\u0443 \u0442\u0435\u043c\u0443 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0414\u0443\u043c\u0430\u044e, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, DevOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 Azure \u0438 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c. \u041d\u043e \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c, \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u0445, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e: Blueprints \u2014 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<h2>1. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Blueprints? <\/h2>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/overview\"><u>Blueprints<\/u><\/a> \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 Azure Cloud, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0432 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 Azure Cloud, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>Blueprints \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 Azure \u0441 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043c\u043f\u043b\u0430\u0435\u043d\u0441\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bab\/621\/aff\/bab621affc263f001abd4e88a6a3b16f.png\" alt=\"Blueprints \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0443\u0440\u043e\u0432\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\" title=\"Blueprints \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0443\u0440\u043e\u0432\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f\" width=\"1024\" height=\"536\"><figcaption>Blueprints \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0443\u0440\u043e\u0432\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/figcaption><\/figure>\n<p><strong>2. \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Blueprints?<\/strong><\/p>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b:&nbsp;<\/p>\n<ul>\n<li>\n<p>Role Assignments.<\/p>\n<\/li>\n<li>\n<p>Policy Assignments.<\/p>\n<\/li>\n<li>\n<p>Azure Resource Manager templates (ARM templates).<\/p>\n<\/li>\n<li>\n<p>Resource Groups.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u0441\u0435\u0440\u0432\u0438\u0441 Blueprints \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0422\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f, \u043f\u043e\u043b\u0438\u0442\u0438\u043a, \u0440\u043e\u043b\u0435\u0439 \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432. Blueprint \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a CI\/CD.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 Blueprint \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c (\u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e) \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c (\u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e). \u042d\u0442\u0430 \u0441\u0432\u044f\u0437\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>&nbsp;\u041a\u0430\u0436\u0434\u044b\u0439 Blueprint \u043c\u043e\u0436\u0435\u0442 (\u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d) \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442.<\/p>\n<h2>3. Blueprint as Code <\/h2>\n<p><strong>3.1 \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Blueprints \u0432 Azure DevOps \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/dev.azure.com\/AMonakhovTraining\/AM%20Project1\/_wiki\/wikis\/AM-Project1.wiki\/14\/Blueprints-as-Code\"><u>\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Azure Blueprints \u043e\u0442 Neil Peterson<\/u><\/a>.&nbsp; <\/p>\n<p><strong>\u0420\u0430\u0431\u043e\u0442\u0430 c Blueprints \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0430\u043f\u043e\u0432:<\/strong>&nbsp;<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Blueprint, \u0435\u0433\u043e \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 (\u0441\u043c. \u043d\u0438\u0436\u0435), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (assign.json).<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 (publish) \u0432\u0435\u0440\u0441\u0438\u0438 Blueprint \u0432 Azure Blueprints service.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (assignment) \u0432\u0435\u0440\u0441\u0438\u0438 Blueprint \u2014 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c Blueprint \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <strong>assign.json<\/strong>, \u0438\u043b\u0438 \u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>3.2 \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 Blueprint<\/strong>&nbsp;<\/p>\n<p>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b Blueprint \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438 JSON \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.&nbsp;<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u043f\u043a\u0430 \u0441 Blueprints \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:&nbsp;<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f7\/4e0\/04b\/2f74e004b61b329219d779bf14d8f957.PNG\" width=\"360\" height=\"292\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<p>\u0424\u0430\u0439\u043b <strong>blueprint.json<\/strong> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439, \u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e Blueprint. \u041f\u0440\u0438 \u0434\u0435\u043f\u043b\u043e\u0435 Blueprint \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c, \u0430 \u0432\u0441\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0435\u0433\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.&nbsp;<\/p>\n<p>\u0424\u0430\u0439\u043b\u202f<strong>assign.json<\/strong> \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u043f\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Blueprint, \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 Blueprint \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 Assignment (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u043c\u0435\u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0438\u0445 SKU, \u0440\u0435\u0433\u0438\u043e\u043d, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0438 \u0442. \u0434.). \u041e\u0431\u044b\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430.&nbsp;<\/p>\n<\/p>\n<p><strong>3.3 \u0422\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/strong> <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u202f<strong>FileTransform<\/strong>\u202f\u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 XML \u0438\u043b\u0438 JSON-\u0444\u0430\u0439\u043b\u043e\u0432.&nbsp;<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong>:&nbsp;<\/p>\n<p><em>\u0424\u0430\u0439\u043b assign.json, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Blueprint. \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f location, blueprintId, gOrganizationName \u0438 g_AzureRegion:<\/em>&nbsp;<\/p>\n<pre><code>{     \"identity\": {       \"type\": \"SystemAssigned\"     },     \"location\": \"testLocation\",     \"properties\": {       \"blueprintId\": \"testBlueprintId\",       \"resourceGroups\": {},       \"parameters\": {         \"g_Organization_Name\": {           \"value\": \"testOrgName\"         },         \"g_AzureRegion\": {           \"value\": \"testLocation\"         }       }     } } <\/code><\/pre>\n<p>\u0412 YAML-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:&nbsp;<\/p>\n<pre><code>variables:   location: 'westeurope'   properties.blueprintId: \"\/subscriptions\/$(SubscriptionId)\/providers\/Microsoft.Blueprint\/blueprints\/AM-BP-feature-init\"   properties.parameters.g_AzureRegion.value: $(location)   properties.parameters.g_Organization_Name.value: \"Integration\"<\/code><\/pre>\n<p>&nbsp;\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0444\u0430\u0439\u043b\u0430: <\/p>\n<pre><code>- task: FileTransform@1   inputs:     folderPath: '$(Agent.BuildDirectory)\\blueprints'     fileType: 'json'     targetFiles: 'assign.json'<\/code><\/pre>\n<p>\u041c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>- script: type \"$(Agent.BuildDirectory)\\blueprints\\assign.json\"<\/code><\/pre>\n<\/p>\n<p><strong>3.4 \u0422\u0438\u043f\u044b \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432<\/strong>&nbsp;<\/p>\n<p>Blueprint \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445:&nbsp;<\/p>\n<ul>\n<li>\n<p>\u0420\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a.&nbsp;<\/p>\n<\/li>\n<li>\n<p>ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u044b \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439 \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 <strong>blueprint.json<\/strong>:&nbsp;<\/p>\n<pre><code>{     \"properties\": {         \"description\": \"This will be displayed in the essentials, so make it good\",         \"targetScope\": \"subscription\",         \"parameters\": {              \"principalIds\": {                 \"type\": \"string\",                 \"metadata\": {                     \"displayName\": \"Display Name for Blueprint parameter\",                     \"description\": \"This is a blueprint parameter that any artifact can reference. We'll display these descriptions for you in the info bubble\",                     \"strongType\": \"PrincipalId\"                 }             },             \"genericBlueprintParameter\": {                 \"type\": \"string\"             }         },         \"resourceGroups\": {             \"SingleRG\": {                 \"description\": \"An optional description for your RG artifact. FYI location and name properties can be left out and we will assume they are assignment-time parameters\",                 \"location\": \"eastus\"             }         }     },     \"type\": \"Microsoft.Blueprint\/blueprints\"  }<\/code><\/pre>\n<p>\u041c\u044b \u0432\u0438\u0434\u0438\u043c \u0434\u0432\u0430 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u202f<strong>parameters<\/strong>: <strong>principalIds<\/strong>\u202f\u0438\u202f<strong>genericBlueprintParameter<\/strong>.&nbsp;<\/p>\n<p>\u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043b\u044e\u0431\u044b\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u0445. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 ResourceGroup \u0432 \u0444\u0430\u0439\u043b\u0435 <strong>blueprint.json<\/strong>, \u0430 \u043d\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.&nbsp;<\/p>\n<\/p>\n<p><strong>3.5 \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/strong>&nbsp;<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0432 Blueprint \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 blueprint.json<strong> <\/strong>\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u043b\u044e\u0431\u044b\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u0445.&nbsp;<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435:&nbsp;<\/p>\n<pre><code>\"parameters\": {      \"genericBlueprintParameter\": {         \"type\": \"string\"     } }<\/code><\/pre>\n<p>\u0422\u0438\u043f\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/devops\/pipelines\/process\/runtime-parameters?view=azure-devops&amp;tabs=script#parameter-data-types\"><u>\u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a>.\u202f<\/p>\n<p>\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 (defaultValue, allowedValue \u0438 \u0442. \u0434.). \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435: <\/p>\n<pre><code>\"properties\": {     \"genericBlueprintParameter\": \"[parameters('principalIds')]\", }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043c\u043e\u0436\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432\u0438\u0434\u0430:<\/p>\n<pre><code>${{ parameters.genericBlueprintParameter }}<\/code><\/pre>\n<\/p>\n<p><strong>3.6 \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Resource Group<\/strong>&nbsp;<\/p>\n<p>\u041c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Resource Group \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 <strong>blueprint.json<\/strong> \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u041c\u0435\u0441\u0442\u043e\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435: &#171;location&#187;: &#171;eastus&#187;.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043c\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u043b\u044f ResourceGroup: SingleRG.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u0441\u0443\u0440\u0441\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0430, \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (assignment).&nbsp;<\/p>\n<p>\u041f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0432 &#171;name&#187;: &#171;myRgName&#187; \u043a\u0430\u043a \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 SingleRG (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/blueprints\/createorupdate#blueprint\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>).<\/p>\n<\/p>\n<p><strong>3.7 \u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/strong>&nbsp;<\/p>\n<p>\u0412\u0441\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ol>\n<li>\n<p><strong>Kind,<\/strong> \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e<strong> <\/strong>\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c:&nbsp;<\/p>\n<p>a. template,&nbsp;<\/p>\n<p>b. roleAssignment,&nbsp;<\/p>\n<p>c. policyAssignment. <\/p>\n<\/li>\n<li>\n<p><strong>Type<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043b\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442:\u202fMicrosoft.Blueprint\/blueprints\/artifacts.&nbsp;<\/p>\n<\/li>\n<li>\n<p><strong>Properties<\/strong> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430.&nbsp;<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:&nbsp;<\/p>\n<p>a. <strong>dependsOn<\/strong> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/concepts\/sequencing-order#customizing-the-sequencing-order\"><u>\u0442\u0443\u0442<\/u><\/a>.\u202f&nbsp;<\/p>\n<p>b. <strong>resourceGroup<\/strong> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d, \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 blueprint.json.&nbsp;&nbsp;<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u043b\u043d\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate%22%20\/l%20%22policyassignmentartifact%22%20\/t%20%22_blank\"><u>Policy Assignment<\/u><\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate#roleassignmentartifact\"><u>Role Assignment<\/u><\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate#templateartifact\"><u>Template<\/u><\/a>.\u202f<\/p>\n<\/p>\n<p><strong>3.8 \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Blueprints \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u0445<\/strong>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Blueprints \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:&nbsp;<\/p>\n<ul>\n<li>\n<p>powershell \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442\u044b (\u043c\u043e\u0434\u0443\u043b\u044c Az.Blueprint, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/az.blueprint\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>);<\/p>\n<\/li>\n<li>\n<p>\u0442\u0430\u0441\u043a\u0438, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 Neil Peterson (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=nepeters.azure-blueprints\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>, \u0438\u0445 \u043c\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435).<\/p>\n<\/li>\n<\/ul>\n<p><strong>3.8.1. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Blueprint<\/strong> <\/p>\n<pre><code>steps: - task: nepeters.azure-blueprints.CreateBlueprint.CreateBlueprint@1   displayName: 'Create Azure Blueprint'   inputs:     azureSubscription: 'nepeters-subscription'     BlueprintName: 'blueprints-demo'     BlueprintPath: .\/create     IncludeSubFolders: true     PublishBlueprint: true     ChangeNote: 'Added new artifacts.'<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/create-blueprint-portal\"><u>Azure \u043f\u043e\u0440\u0442\u0430\u043b\u0435 -&gt; Blueprints -&gt; Blueprint definitions<\/u><\/a>.\u202f <\/p>\n<p><strong>3.8.2. \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Blueprint<\/strong><\/p>\n<pre><code>steps: - task: nepeters.azure-blueprints.AssignBlueprint.AssignBlueprint@1   displayName: 'Assign Azure Blueprint'   inputs:     azureSubscription: 'nepeters-internal'     AssignmentName: 'prod-test-one'     BlueprintName: 'prod-test-one'     ParametersFile: 'assign\/assign-blueprint.json'     AlternateSubscription: true     SubscriptionID: '00000000-0000-0000-0000-000000000000'     Wait: true     StopOnFailure: true<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/create-blueprint-portal#track-deployment-of-a-blueprint\"><u>Azure \u043f\u043e\u0440\u0442\u0430\u043b\u0435 -&gt; Blueprints -&gt; Assigned blueprints<\/u><\/a>. \u042d\u0442\u0430 \u0441\u0435\u043a\u0446\u0438\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Blueprint.&nbsp;<\/p>\n<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 Blueprints \u043d\u0435 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0430\u043c\u0438, \u043d\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 Azure, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c \u0441&nbsp; \u0441 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043c\u043f\u043b\u0430\u0435\u043d\u0441\u0430.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/dataart\/blog\/540956\/\"> https:\/\/habr.com\/ru\/company\/dataart\/blog\/540956\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><em>\u0410\u0432\u0442\u043e\u0440: \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041c\u043e\u043d\u0430\u0445\u043e\u0432, \u041b\u0435\u043e\u043d\u0442\u0438\u0439 \u041e\u043d\u0438\u0449\u0443\u043a, \u0412\u0438\u0442\u0430\u043b\u0438\u0439 \u0413\u043d\u0443\u0441\u0438\u043d <\/em>\u2014 <em>DevOps<\/em> <em>Engineers,<\/em> <em>DataArt, \u0410\u043d\u043d\u0430 \u041c\u0435\u0434\u0432\u0435\u0434\u0435\u043d\u043a\u043e<\/em> \u2014 <em>Project Manager,<\/em> <em>DataArt <\/em><\/p>\n<p>\u041d\u0430\u0448\u0430 DevOps-\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0430\u0441\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044f\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Blueprints. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u043d\u0430\u0448\u0435\u0433\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f: \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 Blueprint, \u0437\u0430\u0442\u0440\u043e\u043d\u0443 \u0442\u0435\u043c\u0443 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u0430. \u0414\u0443\u043c\u0430\u044e, \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u043f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, DevOps-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0441 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 Azure \u0438 \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435\u043c. \u041d\u043e \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c, \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u0445, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e: Blueprints \u2014 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<h2>1. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 Blueprints? <\/h2>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/overview\"><u>Blueprints<\/u><\/a> \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 Azure Cloud, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0432 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 Azure Cloud, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>Blueprints \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 Azure \u0441 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043c\u043f\u043b\u0430\u0435\u043d\u0441\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>Blueprints \u2014 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0443\u0440\u043e\u0432\u043d\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/figcaption><\/figure>\n<p><strong>2. \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Blueprints?<\/strong><\/p>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438\u0437 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b:&nbsp;<\/p>\n<ul>\n<li>\n<p>Role Assignments.<\/p>\n<\/li>\n<li>\n<p>Policy Assignments.<\/p>\n<\/li>\n<li>\n<p>Azure Resource Manager templates (ARM templates).<\/p>\n<\/li>\n<li>\n<p>Resource Groups.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u0441\u0435\u0440\u0432\u0438\u0441 Blueprints \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0422\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f, \u043f\u043e\u043b\u0438\u0442\u0438\u043a, \u0440\u043e\u043b\u0435\u0439 \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432. Blueprint \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a CI\/CD.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u043f\u0440\u0438 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 Blueprint \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c (\u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e) \u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c (\u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e). \u042d\u0442\u0430 \u0441\u0432\u044f\u0437\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432.<\/p>\n<p>&nbsp;\u041a\u0430\u0436\u0434\u044b\u0439 Blueprint \u043c\u043e\u0436\u0435\u0442 (\u043d\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d) \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442.<\/p>\n<h2>3. Blueprint as Code <\/h2>\n<p><strong>3.1 \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Blueprints \u0432 Azure DevOps \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/dev.azure.com\/AMonakhovTraining\/AM%20Project1\/_wiki\/wikis\/AM-Project1.wiki\/14\/Blueprints-as-Code\"><u>\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 Azure Blueprints \u043e\u0442 Neil Peterson<\/u><\/a>.&nbsp; <\/p>\n<p><strong>\u0420\u0430\u0431\u043e\u0442\u0430 c Blueprints \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0430\u043f\u043e\u0432:<\/strong>&nbsp;<\/p>\n<ul>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 Blueprint, \u0435\u0433\u043e \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 (\u0441\u043c. \u043d\u0438\u0436\u0435), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 (assign.json).<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 (publish) \u0432\u0435\u0440\u0441\u0438\u0438 Blueprint \u0432 Azure Blueprints service.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (assignment) \u0432\u0435\u0440\u0441\u0438\u0438 Blueprint \u2014 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c Blueprint \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 <strong>assign.json<\/strong>, \u0438\u043b\u0438 \u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441 \u043d\u0438\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p><strong>3.2 \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 Blueprint<\/strong>&nbsp;<\/p>\n<p>\u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b Blueprint \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0444\u0430\u0439\u043b\u0430\u043c\u0438 JSON \u2014 \u043a\u0430\u0436\u0434\u044b\u0439 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.&nbsp;<\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0430\u043f\u043a\u0430 \u0441 Blueprints \u0438 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:&nbsp;<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<p>\u0424\u0430\u0439\u043b <strong>blueprint.json<\/strong> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439, \u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0430\u043c\u043e\u0433\u043e Blueprint. \u041f\u0440\u0438 \u0434\u0435\u043f\u043b\u043e\u0435 Blueprint \u043e\u043d \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c, \u0430 \u0432\u0441\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0435\u0433\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b.&nbsp;<\/p>\n<p>\u0424\u0430\u0439\u043b\u202f<strong>assign.json<\/strong> \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d \u043f\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Blueprint, \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 Blueprint \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 Assignment (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0438\u043c\u0435\u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u0438\u0445 SKU, \u0440\u0435\u0433\u0438\u043e\u043d, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b, \u0438 \u0442. \u0434.). \u041e\u0431\u044b\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430.&nbsp;<\/p>\n<\/p>\n<p><strong>3.3 \u0422\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430<\/strong> <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f\u202f<strong>FileTransform<\/strong>\u202f\u043c\u043e\u0436\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 XML \u0438\u043b\u0438 JSON-\u0444\u0430\u0439\u043b\u043e\u0432.&nbsp;<\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440<\/strong>:&nbsp;<\/p>\n<p><em>\u0424\u0430\u0439\u043b assign.json, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Blueprint. \u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f location, blueprintId, gOrganizationName \u0438 g_AzureRegion:<\/em>&nbsp;<\/p>\n<pre><code>{     \"identity\": {       \"type\": \"SystemAssigned\"     },     \"location\": \"testLocation\",     \"properties\": {       \"blueprintId\": \"testBlueprintId\",       \"resourceGroups\": {},       \"parameters\": {         \"g_Organization_Name\": {           \"value\": \"testOrgName\"         },         \"g_AzureRegion\": {           \"value\": \"testLocation\"         }       }     } } <\/code><\/pre>\n<p>\u0412 YAML-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:&nbsp;<\/p>\n<pre><code>variables:   location: 'westeurope'   properties.blueprintId: \"\/subscriptions\/$(SubscriptionId)\/providers\/Microsoft.Blueprint\/blueprints\/AM-BP-feature-init\"   properties.parameters.g_AzureRegion.value: $(location)   properties.parameters.g_Organization_Name.value: \"Integration\"<\/code><\/pre>\n<p>&nbsp;\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0444\u0430\u0439\u043b\u0430: <\/p>\n<pre><code>- task: FileTransform@1   inputs:     folderPath: '$(Agent.BuildDirectory)\\blueprints'     fileType: 'json'     targetFiles: 'assign.json'<\/code><\/pre>\n<p>\u041c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0442\u0440\u0430\u043d\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code>- script: type \"$(Agent.BuildDirectory)\\blueprints\\assign.json\"<\/code><\/pre>\n<\/p>\n<p><strong>3.4 \u0422\u0438\u043f\u044b \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432<\/strong>&nbsp;<\/p>\n<p>Blueprint \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445:&nbsp;<\/p>\n<ul>\n<li>\n<p>\u0420\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a.&nbsp;<\/p>\n<\/li>\n<li>\n<p>ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u044b \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u0435\u0439 \u2014 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043e\u043a \u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 <strong>blueprint.json<\/strong>:&nbsp;<\/p>\n<pre><code>{     \"properties\": {         \"description\": \"This will be displayed in the essentials, so make it good\",         \"targetScope\": \"subscription\",         \"parameters\": {              \"principalIds\": {                 \"type\": \"string\",                 \"metadata\": {                     \"displayName\": \"Display Name for Blueprint parameter\",                     \"description\": \"This is a blueprint parameter that any artifact can reference. We'll display these descriptions for you in the info bubble\",                     \"strongType\": \"PrincipalId\"                 }             },             \"genericBlueprintParameter\": {                 \"type\": \"string\"             }         },         \"resourceGroups\": {             \"SingleRG\": {                 \"description\": \"An optional description for your RG artifact. FYI location and name properties can be left out and we will assume they are assignment-time parameters\",                 \"location\": \"eastus\"             }         }     },     \"type\": \"Microsoft.Blueprint\/blueprints\"  }<\/code><\/pre>\n<p>\u041c\u044b \u0432\u0438\u0434\u0438\u043c \u0434\u0432\u0430 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u202f<strong>parameters<\/strong>: <strong>principalIds<\/strong>\u202f\u0438\u202f<strong>genericBlueprintParameter<\/strong>.&nbsp;<\/p>\n<p>\u042d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432 \u043b\u044e\u0431\u044b\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u0445. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 ResourceGroup \u0432 \u0444\u0430\u0439\u043b\u0435 <strong>blueprint.json<\/strong>, \u0430 \u043d\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.&nbsp;<\/p>\n<\/p>\n<p><strong>3.5 \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b<\/strong>&nbsp;<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435 \u0432 Blueprint \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 blueprint.json<strong> <\/strong>\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0432 \u043b\u044e\u0431\u044b\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430\u0445.&nbsp;<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435:&nbsp;<\/p>\n<pre><code>\"parameters\": {      \"genericBlueprintParameter\": {         \"type\": \"string\"     } }<\/code><\/pre>\n<p>\u0422\u0438\u043f\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/docs.microsoft.com\/ru-ru\/azure\/devops\/pipelines\/process\/runtime-parameters?view=azure-devops&amp;tabs=script#parameter-data-types\"><u>\u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/u><\/a>.\u202f<\/p>\n<p>\u041e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432 (defaultValue, allowedValue \u0438 \u0442. \u0434.). \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435: <\/p>\n<pre><code>\"properties\": {     \"genericBlueprintParameter\": \"[parameters('principalIds')]\", }<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043c\u043e\u0436\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432\u0438\u0434\u0430:<\/p>\n<pre><code>${{ parameters.genericBlueprintParameter }}<\/code><\/pre>\n<\/p>\n<p><strong>3.6 \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Resource Group<\/strong>&nbsp;<\/p>\n<p>\u041c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 Resource Group \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 <strong>blueprint.json<\/strong> \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>\u041c\u0435\u0441\u0442\u043e\u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435: &#171;location&#187;: &#171;eastus&#187;.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043c\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0434\u043b\u044f ResourceGroup: SingleRG.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u0441\u0443\u0440\u0441\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0430, \u044d\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (assignment).&nbsp;<\/p>\n<p>\u041f\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u044e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u043c\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0432 &#171;name&#187;: &#171;myRgName&#187; \u043a\u0430\u043a \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 SingleRG (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/blueprints\/createorupdate#blueprint\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>).<\/p>\n<\/p>\n<p><strong>3.7 \u0410\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b<\/strong>&nbsp;<\/p>\n<p>\u0412\u0441\u0435 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ol>\n<li>\n<p><strong>Kind,<\/strong> \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e<strong> <\/strong>\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443, \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c:&nbsp;<\/p>\n<p>a. template,&nbsp;<\/p>\n<p>b. roleAssignment,&nbsp;<\/p>\n<p>c. policyAssignment. <\/p>\n<\/li>\n<li>\n<p><strong>Type<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043b\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442:\u202fMicrosoft.Blueprint\/blueprints\/artifacts.&nbsp;<\/p>\n<\/li>\n<li>\n<p><strong>Properties<\/strong> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u0434\u0435\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u0430.&nbsp;<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:&nbsp;<\/p>\n<p>a. <strong>dependsOn<\/strong> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432. \u0411\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438\u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/concepts\/sequencing-order#customizing-the-sequencing-order\"><u>\u0442\u0443\u0442<\/u><\/a>.\u202f&nbsp;<\/p>\n<p>b. <strong>resourceGroup<\/strong> \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u044b. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d, \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0441\u0443\u0440\u0441\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 blueprint.json.&nbsp;&nbsp;<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u043b\u043d\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0437\u0434\u0435\u0441\u044c: <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate%22%20\/l%20%22policyassignmentartifact%22%20\/t%20%22_blank\"><u>Policy Assignment<\/u><\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate#roleassignmentartifact\"><u>Role Assignment<\/u><\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/rest\/api\/blueprints\/artifacts\/createorupdate#templateartifact\"><u>Template<\/u><\/a>.\u202f<\/p>\n<\/p>\n<p><strong>3.8 \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 Blueprints \u0432 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430\u0445<\/strong>&nbsp;<\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Blueprints \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:&nbsp;<\/p>\n<ul>\n<li>\n<p>powershell \u043a\u043e\u043c\u0430\u043d\u0434\u043b\u0435\u0442\u044b (\u043c\u043e\u0434\u0443\u043b\u044c Az.Blueprint, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. <a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/az.blueprint\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>);<\/p>\n<\/li>\n<li>\n<p>\u0442\u0430\u0441\u043a\u0438, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0435 Neil Peterson (\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441\u043c. <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=nepeters.azure-blueprints\"><u>\u0437\u0434\u0435\u0441\u044c<\/u><\/a>, \u0438\u0445 \u043c\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435).<\/p>\n<\/li>\n<\/ul>\n<p><strong>3.8.1. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 Blueprint<\/strong> <\/p>\n<pre><code>steps: - task: nepeters.azure-blueprints.CreateBlueprint.CreateBlueprint@1   displayName: 'Create Azure Blueprint'   inputs:     azureSubscription: 'nepeters-subscription'     BlueprintName: 'blueprints-demo'     BlueprintPath: .\/create     IncludeSubFolders: true     PublishBlueprint: true     ChangeNote: 'Added new artifacts.'<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/create-blueprint-portal\"><u>Azure \u043f\u043e\u0440\u0442\u0430\u043b\u0435 -&gt; Blueprints -&gt; Blueprint definitions<\/u><\/a>.\u202f <\/p>\n<p><strong>3.8.2. \u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Blueprint<\/strong><\/p>\n<pre><code>steps: - task: nepeters.azure-blueprints.AssignBlueprint.AssignBlueprint@1   displayName: 'Assign Azure Blueprint'   inputs:     azureSubscription: 'nepeters-internal'     AssignmentName: 'prod-test-one'     BlueprintName: 'prod-test-one'     ParametersFile: 'assign\/assign-blueprint.json'     AlternateSubscription: true     SubscriptionID: '00000000-0000-0000-0000-000000000000'     Wait: true     StopOnFailure: true<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u202f<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/create-blueprint-portal#track-deployment-of-a-blueprint\"><u>Azure \u043f\u043e\u0440\u0442\u0430\u043b\u0435 -&gt; Blueprints -&gt; Assigned blueprints<\/u><\/a>. \u042d\u0442\u0430 \u0441\u0435\u043a\u0446\u0438\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f Blueprint.&nbsp;<\/p>\n<\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 Blueprints \u043d\u0435 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 ARM-\u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0430\u043c\u0438, \u043d\u043e \u0434\u0430\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f. \u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u043b\u044e\u043f\u0440\u0438\u043d\u0442\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 Azure, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c \u0441&nbsp; \u0441 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c \u0432\u0441\u0435\u0445 <\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-317502","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317502"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317502\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}