{"id":2107,"date":"2022-12-07T14:42:30","date_gmt":"2022-12-07T22:42:30","guid":{"rendered":"https:\/\/jetstreamsoft.com\/portal\/?post_type=ht_kb&#038;p=2107"},"modified":"2024-10-03T14:18:23","modified_gmt":"2024-10-03T22:18:23","slug":"cmdlet-run-command-failure","status":"publish","type":"ht_kb","link":"https:\/\/jetstreamsoft.com\/portal\/jetstream-knowledge-base\/cmdlet-run-command-failure\/","title":{"rendered":"AVS Run Command Failure"},"content":{"rendered":"\n<p class=\"is-style-info wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">This article applies to all JSDR software versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Issue<\/h2>\n\n\n\n<p class=\"\">While running a Cmdlet on the AVS Private Cloud, the error \u201c<em>User does not have authorization to perform action<\/em>\u201d may be encountered and execution immediately terminates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"357\" height=\"266\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-15.png\" alt=\"\" class=\"wp-image-2108\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-15.png 357w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-15-300x224.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-15-50x37.png 50w\" sizes=\"(max-width: 357px) 100vw, 357px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p class=\"\">Cmdlet run command failure can happen if the user does not have the correct privileges to perform the task.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">Log in to the AVS private cloud with the affected user account and validate correct privileges have been assigned.<br>&nbsp;<\/li>\n\n\n\n<li class=\"\">Verify if the <em><strong>contributor <\/strong><\/em>privilege exists for the user.\n<ul class=\"wp-block-list\">\n<li class=\"\">If not, temporarily assign contributor privilege to the user account which will grant complete access on the private cloud.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"is-style-alert wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">To apply contributor privileges, navigate to the following:<br><em><strong>Home \u2192 Privileged Identity Management \u2192 My roles \u2192 Azure resources<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"\">After applying contributor privileges, re-run the Cmdlet to verify if the run command operates properly.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"521\" src=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16-1024x521.png\" alt=\"\" class=\"wp-image-2109\" srcset=\"https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16-1024x521.png 1024w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16-300x153.png 300w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16-768x391.png 768w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16-50x25.png 50w, https:\/\/jetstreamsoft.com\/portal\/wp-content\/uploads\/2022\/12\/image-16.png 1105w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:59px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"is-style-danger wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">If problems are still encountered after assigning contributor privileges, engage Microsoft for additional guidance.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue While running a Cmdlet on the AVS Private Cloud, the error \u201cUser does not have authorization to perform action\u201d may be encountered and execution immediately terminates. Solution Cmdlet run command failure can happen if the user does not have the correct privileges to perform the task.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"ht-kb-category":[92],"ht-kb-tag":[44],"class_list":["post-2107","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting","ht_kb_tag-avs"],"_links":{"self":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/2107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/comments?post=2107"}],"version-history":[{"count":1,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/2107\/revisions"}],"predecessor-version":[{"id":5700,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb\/2107\/revisions\/5700"}],"wp:attachment":[{"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/media?parent=2107"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-category?post=2107"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/jetstreamsoft.com\/portal\/wp-json\/wp\/v2\/ht-kb-tag?post=2107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}