{"id":4436,"date":"2018-11-20T12:05:58","date_gmt":"2018-11-20T03:05:58","guid":{"rendered":"https:\/\/www.syuheiuda.com\/?p=4436"},"modified":"2019-10-24T13:23:58","modified_gmt":"2019-10-24T04:23:58","slug":"%e5%89%8a%e9%99%a4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f-azure-%e3%83%aa%e3%82%bd%e3%83%bc%e3%82%b9%e3%82%92%e9%a0%91%e5%bc%b5%e3%81%a3%e3%81%a6%e6%b6%88%e3%81%99%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.syuheiuda.com\/?p=4436","title":{"rendered":"\u524a\u9664\u3067\u304d\u306a\u304f\u306a\u3063\u305f Azure \u30ea\u30bd\u30fc\u30b9\u3092\u9811\u5f35\u3063\u3066\u6d88\u3059\u65b9\u6cd5"},"content":{"rendered":"<p>Azure \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u305f\u307e\u306b\u8a2d\u5b9a\u30df\u30b9\u7b49\u3067\u30ea\u30bd\u30fc\u30b9\u304c\u524a\u9664\u3067\u304d\u306a\u3044\u72b6\u614b\u306b\u9665\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u306f\u3001\u3072\u3068\u307e\u305a\u4ee5\u4e0b\u3092\u8a66\u3057\u3066\u307f\u308b\u3068\u6d88\u305b\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3054\u53c2\u8003\u307e\u3067\u306b\u3069\u3046\u305e\u3002(\u5fc5\u305a\u6d88\u305b\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093)<\/p>\n<h3>1. Azure PowerShell \u3067\u6b63\u3057\u3044\u5024\u306b\u8a2d\u5b9a\u3057\u306a\u304a\u3059<\/h3>\n<p>\u8aa4\u3063\u305f\u8a2d\u5b9a\u3092\u6d41\u3057\u8fbc\u3093\u3067\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u72b6\u614b\u304c\u300c\u5931\u6557\u300d\u3084\u300cProvisioning State: Failed\u300d \u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u3001Azure PowerShell \u7b49\u3067\u6b63\u3057\u3044\u69cb\u6210\u60c5\u5831\u3067\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u3067\u89e3\u6d88\u3067\u304d\u308b\u3053\u3068\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u5ea6 Azure PowerShell \u3067\u65e2\u5b58\u306e\u8a2d\u5b9a\u3092 Get \u3057\u3066\u3001\u8aa4\u3063\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4fee\u6b63\u3057\u305f\u306e\u3061\u3001\u518d\u5ea6 Set \u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p># \u8aa4\u3063\u305f\u8a2d\u5b9a\u3092\u3057\u3066\u3001\u300c\u5931\u6557\u300d\u72b6\u614b\u306b\u306a\u3063\u305f\u4f8b<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2018\/11\/Portal.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-4438\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2018\/11\/Portal-1024x576.png\" alt=\"\" width=\"860\" height=\"484\" srcset=\"\/wp-content\/uploads\/2018\/11\/Portal-1024x576.png 1024w, \/wp-content\/uploads\/2018\/11\/Portal-300x169.png 300w, \/wp-content\/uploads\/2018\/11\/Portal-768x432.png 768w, \/wp-content\/uploads\/2018\/11\/Portal-560x315.png 560w, \/wp-content\/uploads\/2018\/11\/Portal-260x146.png 260w, \/wp-content\/uploads\/2018\/11\/Portal-160x90.png 160w, \/wp-content\/uploads\/2018\/11\/Portal.png 1920w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p># Azure PowerShell \u3067\u8a2d\u5b9a\u3092\u4fee\u6b63\u3059\u308b\u4f8b (ExpressRoute \u306e\u63a5\u7d9a\u30ea\u30bd\u30fc\u30b9\u306e\u4f8b)<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\"># \u65e2\u5b58\u306e\u8a2d\u5b9a\u3092\u53d6\u5f97\n$Connection = Get-AzureRmVirtualNetworkGatewayConnection -Name shuda1120 -ResourceGroupName shudaExR\n\n# \u8aa4\u3063\u305f\u8a2d\u5b9a\u7b87\u6240\u3092\u4fee\u6b63\n$Connection.Peer.Id = \"\/subscriptions\/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\/resourceGroups\/ExR\/providers\/Microsoft.Network\/expressRouteCircuits\/MyCircuit\"\n\n# \u4fee\u6b63\u5f8c\u306e\u8a2d\u5b9a\u3067\u4e0a\u66f8\u304d\nSet-AzureRmVirtualNetworkGatewayConnection -VirtualNetworkGatewayConnection $Connection<\/pre>\n<h3>2. Resource Explorer \u3067\u6b63\u3057\u3044\u5024\u306b\u8a2d\u5b9a\u3057\u306a\u304a\u3059<\/h3>\n<p>Azure PowerShell \u3068\u540c\u3058\u3088\u3046\u306a\u8a71\u3067\u3059\u304c\u3001Resource Explorer (<a href=\"https:\/\/resources.azure.com\">https:\/\/resources.azure.com<\/a>) \u3067\u3082 JSON \u306e\u66f8\u304d\u63db\u3048\u304c\u51fa\u6765\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5de6\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u5bfe\u8c61\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u5185\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u8fbf\u3063\u3066\u3044\u3063\u3066\u3001\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9\u306e [Edit] \u304b\u3089\u66f8\u304d\u63db\u3048\u3066 [PUT] \u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p># Resource Explorer \u304b\u3089\u4fee\u6b63\u3059\u308b\u4f8b<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2018\/11\/ResourceExplorer.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-4437\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2018\/11\/ResourceExplorer-1024x576.png\" alt=\"\" width=\"860\" height=\"484\" srcset=\"\/wp-content\/uploads\/2018\/11\/ResourceExplorer-1024x576.png 1024w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer-300x169.png 300w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer-768x432.png 768w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer-560x315.png 560w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer-260x146.png 260w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer-160x90.png 160w, \/wp-content\/uploads\/2018\/11\/ResourceExplorer.png 1920w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<h3>3. JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5b8c\u5168\u30c7\u30d7\u30ed\u30a4\u3092\u8a66\u3059<\/h3>\n<p>Azure \u306f\u3001JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089\u30ea\u30bd\u30fc\u30b9\u3092\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u307e\u3059\u304c\u3001\u5897\u5206 (\u5dee\u5206) \u30e2\u30fc\u30c9\u3068\u5b8c\u5168\u30e2\u30fc\u30c9\u304c\u3042\u308b\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ul>\n<li>Azure Resource Manager \u306e\u30c7\u30d7\u30ed\u30a4 \u30e2\u30fc\u30c9<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/deployment-modes\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/deployment-modes<\/a><\/li>\n<\/ul>\n<p>\u5b8c\u5168\u30c7\u30d7\u30ed\u30a4\u3092\u3059\u308b\u3068\u3001\u5bfe\u8c61\u306e\u30ea\u30bd\u30fc\u30b9 \u30b0\u30eb\u30fc\u30d7\u5185\u3092 JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5185\u5bb9\u3067\u5b8c\u5168\u306b\u4e0a\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u65e2\u5b58\u306e\u30ea\u30bd\u30fc\u30b9\u306f\u524a\u9664\u3055\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u3066\u7121\u7406\u3084\u308a\u6d88\u3059\u3068\u3044\u3046\u5c0f\u6280\u304c\u4f7f\u3048\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>(\u4e0d\u7528\u610f\u306b\u4f7f\u3046\u3068\u3001\u4ed6\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u6d88\u3048\u308b\u306e\u3067\u5341\u5206\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046)<\/p>\n<p>\u306a\u304a\u3001\u5b8c\u5168\u30c7\u30d7\u30ed\u30a4\u3067\u6d88\u305b\u308b\u30ea\u30bd\u30fc\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u3067\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5b8c\u5168\u30e2\u30fc\u30c9 \u30c7\u30d7\u30ed\u30a4\u3067\u306e Azure \u30ea\u30bd\u30fc\u30b9\u306e\u524a\u9664<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/complete-mode-deletion\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/complete-mode-deletion<\/a><\/li>\n<\/ul>\n<h3>4. \u30b5\u30dd\u30fc\u30c8\u306b\u4f9d\u983c\u3059\u308b<\/h3>\n<p>\u30d1\u30c3\u3068\u601d\u3044\u3064\u304f\u306e\u306f\u4ee5\u4e0a 3 \u70b9\u306a\u306e\u3067\u3001\u30c0\u30e1\u305d\u3046\u3067\u3042\u308c\u3070\u30b5\u30dd\u30fc\u30c8\u306b\u4f9d\u983c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u30b5\u30dd\u30fc\u30c8\u306e\u4e2d\u306e\u4eba\u3082\u304a\u5ba2\u69d8\u74b0\u5883\u3092\u76f4\u63a5\u64cd\u4f5c\u3057\u305f\u308a\u3067\u304d\u308b\u6a29\u9650\u306f\u57fa\u672c\u7684\u306b\u6301\u3063\u3066\u3044\u306a\u3044\u306e\u3067 (\u3068\u3044\u3046\u304b\u3001\u6301\u3063\u3066\u3044\u305f\u3089\u8272\u3005\u30de\u30ba\u3044)<\/p>\n<p>\u4fee\u6b63\u304c\u5b8c\u4e86\u3059\u308b\u306b\u306f\u30a8\u30b9\u30ab\u30ec\u30fc\u30b7\u30e7\u30f3\u7b49\u3067\u5c11\u306a\u304f\u3068\u3082\u6570\u65e5\u306f\u304b\u304b\u308a\u307e\u3059\u3002\u6c17\u9577\u306b\u5f85\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure \u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001\u305f\u307e\u306b\u8a2d\u5b9a\u30df\u30b9\u7b49\u3067\u30ea\u30bd\u30fc\u30b9\u304c\u524a\u9664\u3067\u304d\u306a\u3044\u72b6\u614b\u306b\u9665\u308b\u3053&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.syuheiuda.com\/?p=4436\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_locale":"","_original_post":""},"categories":[39,31],"tags":[],"views":12140,"_links":{"self":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4436"}],"collection":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4436"}],"version-history":[{"count":10,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4436\/revisions"}],"predecessor-version":[{"id":5139,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/4436\/revisions\/5139"}],"wp:attachment":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}