{"id":1227,"date":"2021-06-19T17:34:56","date_gmt":"2021-06-19T17:34:56","guid":{"rendered":"https:\/\/thecloudwiki.com\/?p=1227"},"modified":"2021-06-20T14:53:03","modified_gmt":"2021-06-20T14:53:03","slug":"horizon-cloud-daas-rest-apis-powershell-vm-to-user-mapping","status":"publish","type":"post","link":"https:\/\/thecloudwiki.com\/?p=1227","title":{"rendered":"Horizon Cloud \/ Horizon DAAS Rest APIs &#8211; PowerShell &#8211; VM to User mapping"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This script helps With User to VM mapping assignments.<br>Input &#8211;&gt; CSV File<br>Works with Horizon Cloud on Hosted Infrastructure \/ DAAS but not useful for Horizon Cloud on Azure<\/p>\n\n\n\n<div class=\"wp-block-coblocks-gist\"><script src=\"https:\/\/gist.github.com\/sandeep-sr\/136fbaf593592ef6c1b51f332643e867.js\"><\/script><noscript><a href=\"https:\/\/gist.github.com\/sandeep-sr\/136fbaf593592ef6c1b51f332643e867\">View this gist on GitHub<\/a><\/noscript><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> CSV file should be in below format <br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"434\" height=\"310\" src=\"https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/image.png\" alt=\"\" class=\"wp-image-1233\" srcset=\"https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/image.png 434w, https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/image-300x214.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This script helps With User to VM mapping assignments.Input &#8211;&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1346,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[23,21],"tags":[5,13],"class_list":["post-1227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","category-horizon","tag-powershell","tag-horizon"],"uagb_featured_image_src":{"full":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-e1624200768771.png",400,166,false],"thumbnail":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-150x150.png",150,150,true],"medium":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-300x125.png",300,125,true],"medium_large":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-768x319.png",768,319,true],"large":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-e1624200768771.png",400,166,false],"1536x1536":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-e1624200768771.png",400,166,false],"2048x2048":["https:\/\/thecloudwiki.com\/wp-content\/uploads\/2021\/06\/Horizon-api-feature-image-e1624200768771.png",400,166,false]},"uagb_author_info":{"display_name":"Sandeep","author_link":"https:\/\/thecloudwiki.com\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"This script helps With User to VM mapping assignments.Input &#8211;&gt; [&hellip;]","_links":{"self":[{"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/posts\/1227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1227"}],"version-history":[{"count":5,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/posts\/1227\/revisions"}],"predecessor-version":[{"id":1247,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/posts\/1227\/revisions\/1247"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=\/wp\/v2\/media\/1346"}],"wp:attachment":[{"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecloudwiki.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}