{"id":570,"date":"2021-01-29T18:26:11","date_gmt":"2021-01-29T17:26:11","guid":{"rendered":"http:\/\/www.server1.dk\/?p=570"},"modified":"2021-01-29T18:27:57","modified_gmt":"2021-01-29T17:27:57","slug":"azure-role-startstop-and-restart-virtual-machine","status":"publish","type":"post","link":"https:\/\/www.server1.dk\/?p=570","title":{"rendered":"Azure role, start,stop and restart Virtual Machine"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Json file, replace &#8220;\/subscriptions\/11111111-1111-1111-1111-111111111111&#8221;  with your own subscription ID.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save the Json file and run: az role definition create &#8211;role-definition filename.json<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> {\n      \"Name\": \"Virtual Machine Stop\/Start\/Restart\",\n      \"IsCustom\": true,\n      \"Description\": \"Can stop, start  and restart virtual machines.\",\n      \"Actions\": [\n        \"Microsoft.Compute\/*\/read\",\n        \"Microsoft.Compute\/virtualMachines\/start\/action\",\n        \"Microsoft.Compute\/virtualMachines\/restart\/action\",\n        \"Microsoft.Compute\/virtualMachines\/deallocate\/action\"\n      ],\n      \"NotActions\": [\n\n\n      ],\n      \"AssignableScopes\": [\n        \"\/subscriptions\/11111111-1111-1111-1111-111111111111\"\n      ]\n    }<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Json file, replace &#8220;\/subscriptions\/11111111-1111-1111-1111-111111111111&#8221; with your own subscription ID. Save the Json file and run: az role definition create &#8211;role-definition filename.json<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[72,106,107],"class_list":["post-570","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-azure","tag-roles","tag-virtual-machine"],"_links":{"self":[{"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":2,"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}