github.com/openshift/installer@v1.4.17/upi/azure/02_storage.json (about)

     1  {
     2    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
     3    "contentVersion": "1.0.0.0",
     4    "parameters": {
     5      "architecture": {
     6        "type": "string",
     7        "metadata": {
     8          "description": "The architecture of the Virtual Machines"
     9        },
    10        "defaultValue": "x64",
    11        "allowedValues": [
    12          "Arm64",
    13          "x64"
    14        ]
    15      },
    16      "baseName": {
    17        "type": "string",
    18        "minLength": 1,
    19        "metadata": {
    20          "description": "Base name to be used in resource names (usually the cluster's Infra ID)"
    21        }
    22      },
    23      "storageAccount": {
    24        "type": "string",
    25        "metadata": {
    26          "description": "The Storage Account name"
    27        }
    28      },
    29      "vhdBlobURL": {
    30        "type": "string",
    31        "metadata": {
    32          "description": "URL pointing to the blob where the VHD to be used to create master and worker machines is located"
    33        }
    34      }
    35    },
    36    "variables": {
    37      "location": "[resourceGroup().location]",
    38      "galleryName": "[concat('gallery_', replace(parameters('baseName'), '-', '_'))]",
    39      "imageName": "[parameters('baseName')]",
    40      "imageNameGen2": "[concat(parameters('baseName'), '-gen2')]",
    41      "imageRelease": "1.0.0"
    42    },
    43    "resources": [
    44      {
    45        "apiVersion": "2021-10-01",
    46        "type": "Microsoft.Compute/galleries",
    47        "name": "[variables('galleryName')]",
    48        "location": "[variables('location')]",
    49        "resources": [
    50          {
    51            "apiVersion": "2021-10-01",
    52            "type": "images",
    53            "name": "[variables('imageName')]",
    54            "location": "[variables('location')]",
    55            "dependsOn": [
    56              "[variables('galleryName')]"
    57            ],
    58            "properties": {
    59              "architecture": "[parameters('architecture')]",
    60              "hyperVGeneration": "V1",
    61              "identifier": {
    62                "offer": "rhcos",
    63                "publisher": "RedHat",
    64                "sku": "basic"
    65              },
    66              "osState": "Generalized",
    67              "osType": "Linux"
    68            },
    69            "resources": [
    70              {
    71                "apiVersion": "2021-10-01",
    72                "type": "versions",
    73                "name": "[variables('imageRelease')]",
    74                "location": "[variables('location')]",
    75                "dependsOn": [
    76                  "[variables('imageName')]"
    77                ],
    78                "properties": {
    79                  "publishingProfile": {
    80                    "storageAccountType": "Standard_LRS",
    81                    "targetRegions": [
    82                      {
    83                        "name": "[variables('location')]",
    84                        "regionalReplicaCount": "1"
    85                      }
    86                    ]
    87                  },
    88                  "storageProfile": {
    89                    "osDiskImage": {
    90                      "source": {
    91                        "id": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccount'))]",
    92                        "uri": "[parameters('vhdBlobURL')]"
    93                      }
    94                    }
    95                  }
    96                }
    97              }
    98            ]
    99          },
   100          {
   101            "apiVersion": "2021-10-01",
   102            "type": "images",
   103            "name": "[variables('imageNameGen2')]",
   104            "location": "[variables('location')]",
   105            "dependsOn": [
   106              "[variables('galleryName')]"
   107            ],
   108            "properties": {
   109              "architecture": "[parameters('architecture')]",
   110              "hyperVGeneration": "V2",
   111              "identifier": {
   112                "offer": "rhcos-gen2",
   113                "publisher": "RedHat-gen2",
   114                "sku": "gen2"
   115              },
   116              "osState": "Generalized",
   117              "osType": "Linux"
   118            },
   119            "resources": [
   120              {
   121                "apiVersion": "2021-10-01",
   122                "type": "versions",
   123                "name": "[variables('imageRelease')]",
   124                "location": "[variables('location')]",
   125                "dependsOn": [
   126                  "[variables('imageNameGen2')]"
   127                ],
   128                "properties": {
   129                  "publishingProfile": {
   130                    "storageAccountType": "Standard_LRS",
   131                    "targetRegions": [
   132                      {
   133                        "name": "[variables('location')]",
   134                        "regionalReplicaCount": "1"
   135                      }
   136                    ]
   137                  },
   138                  "storageProfile": {
   139                    "osDiskImage": {
   140                      "source": {
   141                        "id": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccount'))]",
   142                        "uri": "[parameters('vhdBlobURL')]"
   143                      }
   144                    }
   145                  }
   146                }
   147              }
   148            ]
   149          }
   150        ]
   151      }
   152    ]
   153  }