{"id":3655,"date":"2016-07-30T21:33:40","date_gmt":"2016-07-30T12:33:40","guid":{"rendered":"http:\/\/www.syuheiuda.com\/?p=3655"},"modified":"2016-07-30T21:35:09","modified_gmt":"2016-07-30T12:35:09","slug":"azure-p2s-vpn-%e3%81%ae%e6%a7%8b%e7%af%89%e6%99%82%e3%81%ab%e3%83%ab%e3%83%bc%e3%83%88%e8%a8%bc%e6%98%8e%e6%9b%b8%e3%81%8c%e8%bf%bd%e5%8a%a0%e3%83%bb%e5%8f%96%e5%be%97%e3%81%a7%e3%81%8d%e3%81%aa","status":"publish","type":"post","link":"https:\/\/www.syuheiuda.com\/?p=3655","title":{"rendered":"Azure P2S VPN \u306e\u69cb\u7bc9\u6642\u306b\u30eb\u30fc\u30c8\u8a3c\u660e\u66f8\u304c\u8ffd\u52a0\u30fb\u53d6\u5f97\u3067\u304d\u306a\u3044"},"content":{"rendered":"<p>\u691c\u8a3c\u3057\u3066\u3044\u308b\u4e2d\u3067\u4f55\u5ea6\u304b\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>\u65e2\u5b58\u306e VPN GW \u306b\u5bfe\u3057\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30c9\u30ec\u30b9 \u30d7\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u72b6\u6cc1\u4e0b\u3067 Add-AzureRmVpnClientRootCertificate \/\u00a0Get-AzureRmVpnClientRootCertificate \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Add-AzureRmVpnClientRootCertificate : \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\r\n\u767a\u751f\u5834\u6240 \u884c:1 \u6587\u5b57:1\r\n+ Add-AzureRmVpnClientRootCertificate -VirtualNetworkGatewayName $VNet ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : CloseError: (:) &#x5B;Add-AzureRmVpnClientRootCertificate]\u3001NullReferenceException\r\n+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.AddAzureVpnClientRootCertificateCommand<\/pre>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">Get-AzureRmVpnClientRootCertificate : \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\r\n\u767a\u751f\u5834\u6240 \u884c:1 \u6587\u5b57:1\r\n+ Get-AzureRmVpnClientRootCertificate -VirtualNetworkGatewayName $VNet ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : CloseError: (:) &#x5B;Get-AzureRmVpnClientRootCertificate]\u3001NullReferenceException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.GetAzureVpnClientRootCertificates<\/pre>\n<p>P2S VPN \u3067\u4f7f\u7528\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30c9\u30ec\u30b9 \u30d7\u30fc\u30eb\u3092\u304d\u3061\u3093\u3068\u8a2d\u5b9a\u3057\u3066\u304b\u3089\u518d\u5ea6\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">$Gw = Get-AzureRmVirtualNetworkGateway -Name &quot;&lt;Gateway \u540d&gt;&quot; -ResourceGroupName &quot;&lt;RG \u540d&gt;&quot;\r\nSet-AzureRmVirtualNetworkGatewayVpnClientConfig -VirtualNetworkGateway $Gw -VpnClientAddressPool &quot;&lt;\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30a2\u30c9\u30ec\u30b9 \u30d7\u30fc\u30eb\u306e IP \u30ec\u30f3\u30b8&gt;&quot; #192.168.0.0\/24 \u306a\u3069<\/pre>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u691c\u8a3c\u3057\u3066\u3044\u308b\u4e2d\u3067\u4f55\u5ea6\u304b\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 \u65e2\u5b58\u306e VPN GW \u306b\u5bfe\u3057\u3066\u3001\u30af\u30e9\u30a4&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.syuheiuda.com\/?p=3655\">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":3920,"_links":{"self":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3655"}],"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=3655"}],"version-history":[{"count":4,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3655\/revisions"}],"predecessor-version":[{"id":3705,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3655\/revisions\/3705"}],"wp:attachment":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}