{"id":3945,"date":"2017-02-02T10:07:54","date_gmt":"2017-02-02T01:07:54","guid":{"rendered":"http:\/\/www.syuheiuda.com\/?p=3945"},"modified":"2017-02-02T10:07:54","modified_gmt":"2017-02-02T01:07:54","slug":"%e5%a4%a7%e9%87%8f%e3%81%ae-azure-vm-%e3%82%92%e5%b1%95%e9%96%8b%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.syuheiuda.com\/?p=3945","title":{"rendered":"\u5927\u91cf\u306e Azure VM \u3092\u5c55\u958b\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>Azure \u304c\u3064\u3044\u306b 7 \u5468\u5e74\u3089\u3057\u3044\u3067\u3059\u306d\u3002\u304a\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002(\u79c1\u306f 20 \u6b73\u3067\u89e6\u308a\u59cb\u3081\u305f\u306e\u3067\u3001\u6c17\u3065\u3051\u3070 6 \u5e74\u4ee5\u4e0a\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u2026\u3002)<\/p>\n<p>\u3055\u3066\u3001\u6628\u65e5\u540c\u50da\u304b\u3089\u3001\u300c\u660e\u65e5\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3067\u4f7f\u3046 VM \u3092 40 \u53f0\u4f5c\u308a\u305f\u3044\u300d\u3068\u76f8\u8ac7\u3092\u53d7\u3051\u3066\u3001\u7247\u624b\u9593\u3067\u30c7\u30d7\u30ed\u30a4\u3057\u305f\u306e\u3067\u3001\u843d\u66f8\u304d\u7a0b\u5ea6\u306b\u30e1\u30e2\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h3>1. \u5c55\u958b\u65b9\u6cd5<\/h3>\n<p>\u8a73\u3057\u304f\u8a71\u3092\u805e\u304f\u3068\u3001RDS \u74b0\u5883\u306e\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u7528\u306b VM 5 \u53f0 (CB, SH1, SH2, Web, Client) x8 \u30bb\u30c3\u30c8\u304c\u660e\u65e5\u307e\u3067\u306b\u6b32\u3057\u3044\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u30d1\u30c3\u3068\u601d\u3044\u3064\u304f\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e 4 \u901a\u308a\u304f\u3089\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ul>\n<li>\u30dd\u30fc\u30bf\u30eb\u304b\u3089\u30dd\u30c1\u30dd\u30c1\u3059\u308b (\u8ad6\u5916)<\/li>\n<li>Azure PowerShell \u3067\u5358\u7d14\u306b\u30eb\u30fc\u30d7\u3055\u305b\u3066\u30b7\u30ea\u30a2\u30eb\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308b (\u9045\u3044)<\/li>\n<li>Azure PowerShell \u3067\u30d1\u30e9\u30ec\u30eb\u3067\u30c7\u30d7\u30ed\u30a4\u3059\u308b (\u9762\u5012)<\/li>\n<li>JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046<\/li>\n<\/ul>\n<p>\u3069\u306e\u65b9\u6cd5\u3067\u3082\u4f5c\u308c\u307e\u3059\u304c\u3001\u4eca\u65e5\u306f\u30c7\u30d7\u30ed\u30a4\u306b\u6642\u9593\u3092\u304b\u3051\u3089\u308c\u306a\u3044\u306e\u3067 JSON \u306b\u3057\u307e\u3057\u305f\u3002\uff08\u5915\u65b9\u76f8\u8ac7\u3092\u53d7\u3051\u3066\u3001\u660e\u65e5\u4f7f\u3046\u3068\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3002\uff09<\/p>\n<p>\u306a\u304a\u3001\u4f59\u8ac7\u3067\u3059\u304c PowerShell \u3067\u8907\u6570\u30ea\u30bd\u30fc\u30b9\u3092\u30d1\u30e9\u30ec\u30eb\u5c55\u958b\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306b\u30e1\u30e2\u3063\u3066\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3001\u3053\u308c\u3082\u4f5c\u6210\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u6570\u304c\u5897\u3048\u308b\u3068\u3001\u30a8\u30e9\u30fc\u3092\u5410\u304d\u3084\u3059\u304f\u306a\u3063\u3066\u30c7\u30d0\u30c3\u30b0\u304c\u9762\u5012\u306a\u306e\u3067\u3001\u4eca\u56de\u306f\u5019\u88dc\u304b\u3089\u9664\u5916\u3002<\/p>\n<ul>\n<li>Azure PowerShell \u3067\u591a\u6570\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4e26\u5217\u4f5c\u6210\u3059\u308b<br \/>\n<a href=\"https:\/\/www.syuheiuda.com\/?p=3641\">https:\/\/www.syuheiuda.com\/?p=3641<\/a><\/li>\n<\/ul>\n<h3>2. JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u308a\u65b9<\/h3>\n<p>\u4f7f\u3044\u6163\u308c\u3066\u3044\u306a\u3044\u4eba\u306b PowerShell \u3068\u304b JSON \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3063\u3066\u8a00\u3046\u3068\u3042\u304b\u3089\u3055\u307e\u306b\u5acc\u306a\u9854\u3055\u308c\u308b\u3093\u3067\u3059\u304c\u3001\u4e00\u56de\u4f5c\u3063\u3066\u6163\u308c\u3066\u3057\u307e\u3048\u3070\u5927\u3057\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>JSON \u304c\u521d\u3081\u3066\u306e\u4eba\u306f\u3001\u6a2a\u7740\u305b\u305a\u306b\u4ee5\u4e0b\u5168\u90e8\u304d\u3063\u3061\u308a\u76ee\u3092\u901a\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3060\u3051\u77e5\u3063\u3066\u3044\u308c\u3070\u5341\u5206\u306a\u306e\u3067\u3002<\/p>\n<ul>\n<li>\u9a5a\u6115! Azure \u30ea\u30bd\u30fc\u30b9 \u30de\u30cd\u30fc\u30b8\u30e3\u3092\u5229\u7528\u3057\u305f Infrastructure as Code\u00a0\u5b9f\u8df5<br \/>\n<a href=\"https:\/\/channel9.msdn.com\/Events\/de-code\/2016\/INF-011\">https:\/\/channel9.msdn.com\/Events\/de-code\/2016\/INF-011<br \/>\nhttps:\/\/doc.co\/8HhQuq<\/a><\/li>\n<\/ul>\n<p>\u3067\u3001\u5177\u4f53\u7684\u306b\u3069\u3046\u4f5c\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u65e2\u5b58\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30d1\u30af\u3063\u3066\u304d\u3066\u5207\u308a\u8cbc\u308a\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Azure Quickstart Templates<br \/>\n<a href=\"https:\/\/github.com\/Azure\/azure-quickstart-templates\">https:\/\/github.com\/Azure\/azure-quickstart-templates<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306f VM \u3092\u5927\u91cf\u306b\u8907\u88fd\u3057\u305f\u3044\u306e\u3067\u3001\u540d\u524d\u306b loop \u3068\u5165\u3063\u305f\u4ee5\u4e0b\u3092\u30d9\u30fc\u30b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>201-vm-copy-index-loops<br \/>\n<a href=\"https:\/\/github.com\/Azure\/azure-quickstart-templates\/tree\/master\/201-vm-copy-index-loops\">https:\/\/github.com\/Azure\/azure-quickstart-templates\/tree\/master\/201-vm-copy-index-loops<\/a><\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3956\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/jsontemplate2.png\" alt=\"\" width=\"1010\" height=\"839\" srcset=\"\/wp-content\/uploads\/2017\/02\/jsontemplate2.png 1010w, \/wp-content\/uploads\/2017\/02\/jsontemplate2-300x249.png 300w, \/wp-content\/uploads\/2017\/02\/jsontemplate2-768x638.png 768w, \/wp-content\/uploads\/2017\/02\/jsontemplate2-560x465.png 560w, \/wp-content\/uploads\/2017\/02\/jsontemplate2-260x216.png 260w, \/wp-content\/uploads\/2017\/02\/jsontemplate2-160x133.png 160w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/><\/p>\n<p>\u3053\u306e\u307e\u307e [Deploy to Azure] \u30dc\u30bf\u30f3\u3067\u30b5\u30af\u3063\u3068\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u300140 \u3068\u5165\u308c\u308b\u3068 5 \u53f0\u307e\u3067\u3057\u304b\u4f5c\u308c\u306a\u3044\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u751f\u306e JSON \u3092\u958b\u3044\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u901a\u308a numberOfInstances \u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c maxValue 5 \u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u300140 \u306a\u3069\u306b\u66f8\u304d\u63db\u3048\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u904b\u7528\u74b0\u5883\u306e\u5834\u5408\u306f 1 \u3064\u306e\u30b9\u30c8\u30ec\u30fc\u30b8 (20000 IOPS \u4e0a\u9650) \u306b\u5927\u91cf\u306e VHD (500 IOPS \u4e0a\u9650) \u3092\u914d\u7f6e\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u304c\u3042\u308b\u306e\u3067\u3001\u9069\u5207\u306b\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5206\u5272\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3042\u3068\u3001Premium \u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u3064\u3044\u3066\u306f 35 TB \u306e\u5bb9\u91cf\u5236\u9650\u3082\u3042\u308b\u306e\u3067\u6c17\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/error.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3957\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/error.png\" alt=\"\" width=\"928\" height=\"208\" srcset=\"\/wp-content\/uploads\/2017\/02\/error.png 928w, \/wp-content\/uploads\/2017\/02\/error-300x67.png 300w, \/wp-content\/uploads\/2017\/02\/error-768x172.png 768w, \/wp-content\/uploads\/2017\/02\/error-560x126.png 560w, \/wp-content\/uploads\/2017\/02\/error-260x58.png 260w, \/wp-content\/uploads\/2017\/02\/error-160x36.png 160w\" sizes=\"(max-width: 928px) 100vw, 928px\" \/><\/a><\/p>\n<pre>    \"numberOfInstances\": {\r\n      \"type\": \"int\",\r\n      \"defaultValue\": 2,\r\n      \"minValue\": 2,\r\n      <span style=\"color: #ff0000;\">\"maxValue\": 5,<\/span>\r\n      \"metadata\": {\r\n        \"description\": \"Number of VMs to deploy, limit 5 since this sample is using a single storage account\"\r\n      }\r\n    },<\/pre>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b Visualize \u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u542b\u307e\u308c\u308b\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u4ee5\u4e0b\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u30ea\u30bd\u30fc\u30b9\u540d\u306b copyindex() \u3068\u3064\u3044\u3066\u3044\u308b VM \u3068 NIC \u306f\u30011 \u3064\u3057\u304b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30eb\u30fc\u30d7\u3055\u305b\u3066\u5fc5\u8981\u6570\u3060\u3051\u4f5c\u6210\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/json.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-3946\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/json-1024x82.png\" alt=\"\" width=\"860\" height=\"69\" srcset=\"\/wp-content\/uploads\/2017\/02\/json-1024x82.png 1024w, \/wp-content\/uploads\/2017\/02\/json-300x24.png 300w, \/wp-content\/uploads\/2017\/02\/json-768x62.png 768w, \/wp-content\/uploads\/2017\/02\/json-560x45.png 560w, \/wp-content\/uploads\/2017\/02\/json-260x21.png 260w, \/wp-content\/uploads\/2017\/02\/json-160x13.png 160w, \/wp-content\/uploads\/2017\/02\/json.png 1769w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>\u751f\u306e JSON \u3092\u3055\u3089\u306b\u6df1\u5800\u3057\u3066\u307f\u308b\u3068\u3001\u4f8b\u3048\u3070 NIC \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002name \u306f nic0, nic1, nic2&#8230; \u306a\u3069\u3068\u306a\u308b\u3088\u3046\u306b\u3001copyindex() \u3067\u30eb\u30fc\u30d7\u306e\u30ab\u30a6\u30f3\u30bf (0, 1, 2&#8230;) \u3092\u30bb\u30c3\u30c8\u3057\u3066\u3001concat \u3067\u6587\u5b57\u5217\u3092\u7d50\u5408\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001copy \u30bb\u30af\u30b7\u30e7\u30f3\u3067 count \u3068\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u6570\u3060\u3051\u30eb\u30fc\u30d7\u3059\u308b\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u3066\u3042\u308a\u307e\u3059\u3002(\u3053\u3053\u3067\u306f\u3001\u3042\u3068\u3067\u4efb\u610f\u306e\u5024\u304c\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u3001numberOfInstances \u3068\u3044\u3046\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002)<\/p>\n<pre>    {\r\n      \"type\": \"Microsoft.Network\/networkInterfaces\",\r\n      \"name\": \"[<span style=\"color: #ff0000;\">concat('nic', copyindex())<\/span>]\",\r\n      \"apiVersion\": \"2016-03-30\",\r\n      \"location\": \"[resourceGroup().location]\",\r\n<span style=\"color: #ff0000;\">      \"copy\": {\r\n        \"name\": \"nicLoop\",\r\n        \"count\": \"[parameters('numberOfInstances')]\"\r\n      },<\/span>\r\n      \"dependsOn\": [\r\n        \"[variables('virtualNetworkName')]\"\r\n      ],\r\n      \"properties\": {\r\n        \"ipConfigurations\": [\r\n          {\r\n            \"name\": \"ipconfig1\",\r\n            \"properties\": {\r\n              \"privateIPAllocationMethod\": \"Dynamic\",\r\n              \"subnet\": {\r\n                \"id\": \"[variables('subnet1Ref')]\"\r\n              }\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    },<\/pre>\n<p>&nbsp;<\/p>\n<p>\u540c\u3058\u304f VM \u306b\u3064\u3044\u3066\u3082 1 \u53f0\u5206\u3057\u304b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30eb\u30fc\u30d7\u3055\u305b\u3066 numberOfInstances \u53f0\u3060\u3051\u5c55\u958b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4ed6\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u540d\u3084VHD \u306e\u30d1\u30b9\u3001NIC \u306e ID \u306a\u3069\u3082\u00a0copyIndex() \u3092\u4f7f\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>    {\r\n      \"type\": \"Microsoft.Compute\/virtualMachines\",\r\n      \"name\": \"[concat('myvm', copyIndex())]\",\r\n      \"apiVersion\": \"2016-03-30\",\r\n      \"location\": \"[resourceGroup().location]\",\r\n<span style=\"color: #ff0000;\">      \"copy\": {\r\n        \"name\": \"virtualMachineLoop\",\r\n        \"count\": \"[parameters('numberOfInstances')]\"\r\n      },<\/span>\r\n      \"dependsOn\": [\r\n        \"nicLoop\",\r\n        \"[variables('storageAccountName')]\"\r\n      ],\r\n      \"properties\": {\r\n        \"availabilitySet\": {\r\n          \"id\": \"[resourceId('Microsoft.Compute\/availabilitySets', variables('availabilitySetName'))]\"\r\n        },\r\n        \"hardwareProfile\": {\r\n          \"vmSize\": \"Standard_D1_v2\"\r\n        },\r\n        \"osProfile\": {\r\n          \"computerName\": \"[<span style=\"color: #ff0000;\">concat('vm', copyIndex())<\/span>]\",\r\n          \"adminUsername\": \"[parameters('adminUsername')]\",\r\n          \"adminPassword\": \"[parameters('adminPassword')]\"\r\n        },\r\n        \"storageProfile\": {\r\n          \"imageReference\": \"[variables('imageReference')]\",\r\n          \"osDisk\": {\r\n            \"name\": \"osdisk\",\r\n            \"vhd\": {\r\n              \"uri\": \"[concat(reference(variables('StorageAccountName'), '2016-01-01').primaryEndpoints.blob, 'vhds\/osdisk', <span style=\"color: #ff0000;\">copyIndex()<\/span>, '.vhd')]\"\r\n            },\r\n            \"caching\": \"ReadWrite\",\r\n            \"createOption\": \"FromImage\"\r\n          }\r\n        },\r\n        \"networkProfile\": {\r\n          \"networkInterfaces\": [\r\n            {\r\n              \"id\": \"[resourceId('Microsoft.Network\/networkInterfaces',<span style=\"color: #ff0000;\">concat('nic', copyindex())<\/span>)]\"\r\n            }\r\n          ]\r\n        }\r\n      }\r\n    }<\/pre>\n<p>\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4e00\u901a\u308a\u898b\u3066\u307f\u308b\u3068\u3001\u5b9f\u306f Public IP \u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u5224\u660e\u3057\u307e\u3059\u3002\u3053\u306e\u307e\u307e\u3067\u306f\u76f4\u63a5 RDP \u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4ed6\u306e Public IP \u4ed8\u304d\u306e VM \u3092\u5c55\u958b\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304b\u3089 Public IP \u306e\u5b9a\u7fa9\u3068\u3001NIC \u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u90e8\u5206\u3092\u30d1\u30af\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u969b\u306b\u30ea\u30bd\u30fc\u30b9\u540d\u7b49\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u5909\u6570 (variables) \u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001concat(&#8216;pip&#8217;, copyIndex()) \u306a\u3069\u3078\u5909\u66f4\u3057\u3001Public IP \u3068 NIC \u3092\u7d10\u3065\u3051\u308b\u306a\u3069\u3001\u30d9\u30fc\u30b9\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u6574\u5408\u6027\u304c\u53d6\u308c\u308b\u3088\u3046\u306b\u5fae\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>101-vm-simple-windows<br \/>\n<a href=\"https:\/\/github.com\/Azure\/azure-quickstart-templates\/tree\/master\/101-vm-simple-windows\">https:\/\/github.com\/Azure\/azure-quickstart-templates\/tree\/master\/101-vm-simple-windows<\/a><\/li>\n<\/ul>\n<pre>    {\r\n      \"apiVersion\": \"2016-03-30\",\r\n      \"type\": \"Microsoft.Network\/publicIPAddresses\",\r\n      \"name\": \"[<span style=\"color: #ff0000;\">variables('publicIPAddressName')<\/span>]\",\r\n      \"location\": \"[resourceGroup().location]\",\r\n      \"properties\": {\r\n        \"publicIPAllocationMethod\": \"Dynamic\",\r\n        \"dnsSettings\": {\r\n          \"domainNameLabel\": \"[<span style=\"color: #ff0000;\">parameters('dnsLabelPrefix')<\/span>]\"\r\n        }\r\n      }\r\n    },<\/pre>\n<pre>    {\r\n      \"apiVersion\": \"2016-03-30\",\r\n      \"type\": \"Microsoft.Network\/networkInterfaces\",\r\n      \"name\": \"[variables('nicName')]\",\r\n      \"location\": \"[resourceGroup().location]\",\r\n      \"dependsOn\": [\r\n<span style=\"color: #ff0000;\">        \"[resourceId('Microsoft.Network\/publicIPAddresses\/', variables('publicIPAddressName'))]\",<\/span>\r\n        \"[resourceId('Microsoft.Network\/virtualNetworks\/', variables('virtualNetworkName'))]\"\r\n      ],\r\n      \"properties\": {\r\n        \"ipConfigurations\": [\r\n          {\r\n            \"name\": \"ipconfig1\",\r\n            \"properties\": {\r\n              \"privateIPAllocationMethod\": \"Dynamic\",\r\n<span style=\"color: #ff0000;\">              \"publicIPAddress\": {\r\n                \"id\": \"[resourceId('Microsoft.Network\/publicIPAddresses',variables('publicIPAddressName'))]\"\r\n              },<\/span>\r\n              \"subnet\": {\r\n                \"id\": \"[variables('subnetRef')]\"\r\n              }\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    },<\/pre>\n<p>\u3068\u307e\u3042\u3001\u3053\u3093\u306a\u5177\u5408\u3067\u305d\u308c\u3063\u307d\u3044\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u51fa\u6765\u4e0a\u304c\u3063\u305f\u3089\u3001\u30dd\u30fc\u30bf\u30eb\u306e [\u65b0\u898f] &#8211; [\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30c7\u30d7\u30ed\u30a4] \u306b\u5f35\u308a\u4ed8\u3051\u3066\u3001\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002(\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u540d\u3092\u5f79\u5272\u3054\u3068\u306b\u5225\u3067\u5b9a\u7fa9\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u3067\u306f VM \u3084\u3089 NIC\u3001Public IP \u3092 5 \u53f0\u5206\u30b3\u30d4\u30fc\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059)<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/jsondeploy.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-3954\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/jsondeploy-1024x495.png\" alt=\"\" width=\"860\" height=\"416\" srcset=\"\/wp-content\/uploads\/2017\/02\/jsondeploy-1024x495.png 1024w, \/wp-content\/uploads\/2017\/02\/jsondeploy-300x145.png 300w, \/wp-content\/uploads\/2017\/02\/jsondeploy-768x371.png 768w, \/wp-content\/uploads\/2017\/02\/jsondeploy-560x271.png 560w, \/wp-content\/uploads\/2017\/02\/jsondeploy-260x126.png 260w, \/wp-content\/uploads\/2017\/02\/jsondeploy-160x77.png 160w, \/wp-content\/uploads\/2017\/02\/jsondeploy.png 1920w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u5927\u4f53\u3069\u3063\u304b\u3057\u3089\u9593\u9055\u3063\u3066\u3044\u3066\u3001\u5c55\u958b\u524d\u306e\u691c\u8a3c\u30d5\u30a7\u30fc\u30ba\u3067\u5931\u6557\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u30a8\u30e9\u30fc\u306b\u8868\u793a\u3055\u308c\u305f\u5185\u5bb9\u3084\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u983c\u308a\u306b\u3001\u30ab\u30c3\u30b3\u304c\u305d\u308d\u3063\u3066\u3044\u308b\u304b\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c\u524d\u5f8c\u3068\u6574\u5408\u6027\u304c\u3068\u308c\u3066\u3044\u308b\u304b\u306a\u3069\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u3042\u3068\u306f\u4fee\u6b63\u3068\u30c7\u30d7\u30ed\u30a4\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3001\u671f\u5f85\u3057\u305f\u3082\u306e\u304c\u51fa\u6765\u4e0a\u304c\u308b\u307e\u3067\u5fae\u8abf\u6574\u3059\u308c\u3070\u7d42\u308f\u308a\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/jsonerror.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3953\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/jsonerror.png\" alt=\"\" width=\"431\" height=\"149\" srcset=\"\/wp-content\/uploads\/2017\/02\/jsonerror.png 431w, \/wp-content\/uploads\/2017\/02\/jsonerror-300x104.png 300w, \/wp-content\/uploads\/2017\/02\/jsonerror-260x90.png 260w, \/wp-content\/uploads\/2017\/02\/jsonerror-160x55.png 160w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>3. \u4f59\u8ac7<\/p>\n<p>\u5927\u91cf\u306e VM \u3092\u5c55\u958b\u3059\u308b\u969b\u306f\u3001\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u30af\u30a9\u30fc\u30bf\u306b\u6c17\u3092\u4ed8\u3051\u307e\u3057\u3087\u3046\u3002\u8db3\u308a\u306a\u3044\u5834\u5408\u306f\u5f15\u304d\u4e0a\u3052\u7533\u8acb\u3092\u3059\u308c\u3070\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u6570\u65e5\uff5e1 \u9031\u9593\u7a0b\u5ea6\u304b\u304b\u308b\u306e\u3067\u3001\u6025\u304e\u306e\u5834\u5408\u306f\u30ea\u30fc\u30b8\u30e7\u30f3\u3092\u5909\u3048\u308c\u3070\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002(ARM \u306f\u30ea\u30fc\u30b8\u30e7\u30f3\u6bce\u306b\u30af\u30a9\u30fc\u30bf\u30fc\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3002)<\/p>\n<ul>\n<li>Microsoft Azure \u306e\u30af\u30a9\u30fc\u30bf\u5897\u52a0\u306b\u3064\u3044\u3066<br \/>\n<a href=\"https:\/\/blogs.msdn.microsoft.com\/dsazurejp\/2013\/10\/22\/microsoft-azure\/\">https:\/\/blogs.msdn.microsoft.com\/dsazurejp\/2013\/10\/22\/microsoft-azure\/<\/a><\/li>\n<li>Azure \u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u5236\u9650\u3001\u30af\u30a9\u30fc\u30bf\u3001\u5236\u7d04<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-subscription-service-limits\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-subscription-service-limits<\/a><\/li>\n<\/ul>\n<p>\u3061\u306a\u307f\u306b\u3001\u30af\u30a9\u30fc\u30bf\u30fc\u306f\u30d7\u30ec\u30d3\u30e5\u30fc \u30dd\u30fc\u30bf\u30eb (<a href=\"https:\/\/preview.portal.azure.com\">https:\/\/preview.portal.azure.com<\/a>) \u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3 \u30d6\u30ec\u30fc\u30c9\u304b\u3089\u7d30\u304b\u304f\u898b\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002(\u305d\u306e\u3046\u3061\u4e00\u822c\u306e\u30dd\u30fc\u30bf\u30eb\u306b\u3082\u6765\u308b\u306f\u305a\uff1f)<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-3959\" src=\"https:\/\/blob.syuheiuda.com\/wp-content\/2017\/02\/quota-1024x495.png\" alt=\"\" width=\"860\" height=\"416\" srcset=\"\/wp-content\/uploads\/2017\/02\/quota-1024x495.png 1024w, \/wp-content\/uploads\/2017\/02\/quota-300x145.png 300w, \/wp-content\/uploads\/2017\/02\/quota-768x371.png 768w, \/wp-content\/uploads\/2017\/02\/quota-560x271.png 560w, \/wp-content\/uploads\/2017\/02\/quota-260x126.png 260w, \/wp-content\/uploads\/2017\/02\/quota-160x77.png 160w, \/wp-content\/uploads\/2017\/02\/quota.png 1920w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u3042\u3068\u3001JSON \u306e\u7de8\u96c6\u306f Visual Studio \u3082\u3057\u304f\u306f Visual Studio Code\u00a0\u3092\u4f7f\u3046\u3068\u304b\u306a\u308a\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<ul>\n<li>Visual Studio \u3067\u306e Azure \u30ea\u30bd\u30fc\u30b9 \u30b0\u30eb\u30fc\u30d7\u306e\u4f5c\u6210\u3068\u30c7\u30d7\u30ed\u30a4<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/vs-azure-tools-resource-groups-deployment-projects-create-deploy\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/vs-azure-tools-resource-groups-deployment-projects-create-deploy<\/a><\/li>\n<li>Visual Studio Code \u3067 Azure Resource Manager \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u64cd\u4f5c\u3059\u308b<br \/>\n<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/resource-manager-vs-code\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/azure-resource-manager\/resource-manager-vs-code<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u305d\u3093\u306a\u3053\u3093\u306a\u3067\u3001\u5b9f\u8cea 2 \u6642\u9593\u304f\u3089\u3044\u3067\u7121\u4e8b\u30c7\u30d7\u30ed\u30a4\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u30af\u30e9\u30a6\u30c9\u306e\u6642\u4ee3\u306a\u306e\u3067\u3001\u3053\u306e\u304f\u3089\u3044\u7247\u624b\u9593\u3067\u30b5\u30af\u3063\u3068\u51fa\u6765\u308b\u3068\u4fbf\u5229\u3067\u3059\u306d\u3002\u696d\u52d9\u52b9\u7387\u5316\u306f\u6b63\u7fa9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure \u304c\u3064\u3044\u306b 7 \u5468\u5e74\u3089\u3057\u3044\u3067\u3059\u306d\u3002\u304a\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002(\u79c1\u306f 20 &hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.syuheiuda.com\/?p=3945\">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":[31,9],"tags":[],"views":15381,"_links":{"self":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3945"}],"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=3945"}],"version-history":[{"count":8,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3945\/revisions"}],"predecessor-version":[{"id":3960,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=\/wp\/v2\/posts\/3945\/revisions\/3960"}],"wp:attachment":[{"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.syuheiuda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}