{"id":405,"date":"2017-09-12T13:04:29","date_gmt":"2017-09-12T13:04:29","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=405"},"modified":"2017-09-12T13:04:29","modified_gmt":"2017-09-12T13:04:29","slug":"revoke-ip-address-vmm-2012-r2","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/revoke-ip-address-vmm-2012-r2\/","title":{"rendered":"Revoke IP Address VMM 2012 R2"},"content":{"rendered":"<p>When I&#8217;m deploying virtual machines in VMM I use a script for it, which before starting the deployment it checks if the IP is available. Sometime ago received the error that IP is not available and virtual machine deployment failed.<\/p>\n<p>You can check if the IP is reserved by going to the IP Pool to which it belongs and see if it appears under the <strong>IP Addresses to be reserved for other uses:<\/strong><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/09\/ip.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-407\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/09\/ip.png\" alt=\"\" width=\"744\" height=\"431\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/09\/ip.png 744w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2017\/09\/ip-300x174.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n<p>The IP was not reserved on the IP Pool\u00a0so the other option to check was by running the\u00a0<em>Get-SCIPAddress\u00a0<\/em><em>-IPAddresss <\/em>command from VMM Shell which will show which\u00a0machine is using that IP. In my case, the IP was used by a VM Template, so there was no problem to remove it.<\/p>\n<p>You can remove it by running the following commands from VMM Shell:<\/p>\n<p><em>$ip=Get-SCIPAddress -IPAddress &#8220;yourIP&#8221;<\/em><\/p>\n<p><em>$ip | Revoke-SCIPAddress<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I&#8217;m deploying virtual machines in VMM I use a script for it, which before starting the deployment it checks if the IP is available.&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/revoke-ip-address-vmm-2012-r2\/\">Continue reading<span class=\"screen-reader-text\">Revoke IP Address VMM 2012 R2<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[15,10,8,16],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-general","tag-hyper-v","tag-powershell","tag-virtualization","tag-vmm","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-6x","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":3,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/405\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}