{ "$schema":"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion":"1.0.0.0", "parameters":{ "artifactsBaseUrl": { "type": "string", "metadata": { "artifactsBaseUrl": "/", "description": "The base URL for dependent assets" }, "defaultValue": "https://raw.githubusercontent.com/infobloxopen/infoblox-azure-templates/master/main/" }, "location": { "type": "string", "defaultValue": "[ResourceGroup().Location]", "metadata": { "description": "Location of resources." } }, "zone": { "type": "string", "defaultValue": "", "metadata": { "description": "Availability Zone for Virtual Machine" } }, "vmName":{ "type":"string", "defaultValue":"CSR", "metadata":{ "description":"Name for the Virtual Machine." } }, "vmSize":{ "type":"string", "metadata":{ "description":"Size of the Virtual Machine." }, "allowedValues":[ "Standard_DS11_v2", "Standard_DS12_v2", "Standard_DS13_v2", "Standard_DS14_v2", "Standard_DS15_v2", "Standard_E4s_v3", "Standard_E8s_v3", "Standard_E16s_v3", "Standard_E20s_v3", "Standard_E32s_v3" ] }, "niosModel":{ "type":"string", "defaultValue":"cp-v1405", "metadata":{ "description":"niosModel." }, "allowedValues":[ "IB-V825", "IB-V926", "IB-V1425", "IB-V1516", "IB-V1526", "IB-V2225", "IB-V2326", "IB-V4015", "IB-V4025", "IB-V4126", "IB-V5005", "cp-v805", "cp-v1405", "cp-v2205", "ND-V805", "ND-V906", "ND-V1405", "ND-V1606", "ND-V2205", "ND-V2306", "ND-V4005", "ND-V4106" ] }, "niosVersion":{ "type":"string", "defaultValue":"latest", "metadata":{ "description":"niosVersion" }, "allowedValues":[ "latest", "901.49999.0" ] }, "adminPassword":{ "type":"securestring", "metadata":{ "description":"Password for the Virtual Machine." } }, "virtualNetworkName":{ "type":"string", "defaultValue":"NIOS_Network", "metadata":{ "description":"VNet name" } }, "virtualNetworkExistingRGName":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Resource Group containing existing network" } }, "virtualNetworkAddressPrefix":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Virtual Network Address prefix" } }, "vnetNewOrExisting":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Identifies whether to use new or existing Virtual Network" } }, "subnet1Name":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Subnet 1 Name" } }, "subnet1Prefix":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Subnet 1 Prefix" } }, "subnet1StartAddress":{ "type":"string", "metadata":{ "description":"Subnet 1 Starting IP Address" } }, "subnet2Name":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Subnet 2 Name" } }, "subnet2Prefix":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Subnet 2 Prefix" } }, "subnet2StartAddress":{ "type":"string", "metadata":{ "description":"Subnet 2 Starting IP Address" } }, "newStorageAccountForLogsName":{ "type":"string", "metadata":{ "description":"Unique Name for Storage Account where the Virtual Machine's boot diagnostics will be placed." } }, "storageAccountForLogsType":{ "type":"string", "defaultValue":"Standard_LRS", "allowedValues":[ "Standard_LRS" ], "metadata":{ "description":"The type of storage account created for boot diagnostics." } }, "storageAccountForLogsNewOrExisting":{ "type":"string", "defaultValue":"new", "allowedValues":[ "new", "existing" ], "metadata":{ "description":"Identifies whether to use new or existing Storage Account for boot diagnostics" } }, "storageAccountForLogsNeedFix":{ "type":"bool", "defaultValue":false, "allowedValues":[ false, true ], "metadata":{ "description":"Whether storage account for logs name should be appended by 'logs' or not" } }, "storageAccountForLogsExistingRG":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Resource Group containing existing storage account for boot diagnostics" } }, "vmDataDiskType": { "type": "string", "defaultValue": "Premium_LRS", "allowedValues": [ "Premium_LRS" ], "metadata": { "description": "Data Disk Type for IB-V5005" } }, "vmDataDiskSize": { "type":"int", "defaultValue": 250, "metadata": { "description":"Data Disk Size for IB-V5005" } }, "publicIPAddressName":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Name of the Public IP Address" } }, "publicIPDnsName":{ "type":"string", "defaultValue":"niosdns", "metadata":{ "description":"Unique DNS Prefix for the Public IP used to access the Virtual Machine." } }, "publicIPNewOrExistingOrNone":{ "type":"string", "defaultValue":"new", "allowedValues":[ "new", "existing", "none" ], "metadata":{ "description":"Indicates whether the Public IP is new or existing" } }, "publicIPExistingRGName":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Resource Group containing existing public IP" } }, "availabilitySetNewOrExistingOrNone":{ "type":"string", "defaultValue":"none", "allowedValues":[ "new", "existing", "none" ], "metadata":{ "description":"Indicates whether the availability Set IP is new, none or existing" } }, "availabilitySetName":{ "type":"string", "defaultValue":"", "metadata":{ "description":"availability set name" } }, "customData":{ "type":"string", "defaultValue":"", "metadata":{ "description":"Use space and '\n' symbols for indentation. Some custom data parameter are not available for Azure, please refer to Azure NIOS Guide for allowed parameters." } }, "tempLicenseOption":{ "type":"string", "defaultValue":"none", "allowedValues":[ "none", "TE-SoT", "CP-SoT", "ND-SoT", "TE-GSoT", "ND-GSoT" ], "metadata":{ "description":"Temporary license option." } } }, "variables":{ "imagePublisher":"infoblox", "imageOffer":"infoblox-vm-appliances-901", "imageSKU": "[if(and(startsWith(parameters('niosModel'), 'IB-V'),endsWith(parameters('niosModel'), '6')), 'vgsot', if(and(startsWith(parameters('niosModel'), 'IB-V'),endsWith(parameters('niosModel'), '5')), 'vsot', if(and(startsWith(parameters('niosModel'), 'ND-V'), endsWith(parameters('niosModel'), '6')), 'vgsot-ni', if(and(startsWith(parameters('niosModel'), 'ND-V'),endsWith(parameters('niosModel'), '5')), 'vsot-ni', if(startsWith(parameters('niosModel'), 'cp-v'), 'vsot', '')))))]", "tempLicense": "[if(equals(parameters('tempLicenseOption'), 'none'), '', if(equals(parameters('tempLicenseOption'), 'TE-SoT'), variables('tempLicense-TE-SoT'), if(equals(parameters('tempLicenseOption'), 'ND-SoT'), variables('tempLicense-ND-SoT'), if(equals(parameters('tempLicenseOption'), 'TE-GSoT'), variables('tempLicense-TE-GSoT'), if(equals(parameters('tempLicenseOption'), 'ND-GSoT'), variables('tempLicense-ND-GSoT'), variables('tempLicense-CP-SoT'))))))]", "tempLicense-TE-SoT": "[concat('nios ', parameters('niosModel'), if(equals(parameters('niosModel'), 'IB-V5005'), ' enterprise', ' enterprise dns cloud rpz'))]", "tempLicense-CP-SoT": "[concat('nios ', parameters('niosModel'), ' enterprise dns cloud_api rpz')]", "tempLicense-ND-SoT": "[concat('nios ', parameters('niosModel'), ' enterprise')]", "tempLicense-TE-GSoT": "[concat('nios ', parameters('niosModel'), ' enterprise dns cloud rpz')]", "tempLicense-ND-GSoT": "[concat('nios ', parameters('niosModel'), ' enterprise')]", "version": "[parameters('niosVersion')]", "OSDiskName":"[concat(parameters('vmName'), uniqueString(resourceGroup().id))]", "osDiskType":"Premium_LRS", "subnet1-existing": "[resourceId(parameters('virtualNetworkExistingRGName'), 'Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet1Name'))]", "subnet2-existing": "[resourceId(parameters('virtualNetworkExistingRGName'), 'Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet2Name'))]", "subnet1-new": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet1Name'))]", "subnet2-new": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworkName'), parameters('subnet2Name'))]", "subnet1ResourceId":"[if(equals(parameters('vnetNewOrExisting'), 'new'), variables('subnet1-new'), variables('subnet1-existing'))]", "subnet2ResourceId":"[if(equals(parameters('vnetNewOrExisting'), 'new'), variables('subnet2-new'), variables('subnet2-existing'))]", "nsgName": "[concat(parameters('vmName'),'-securityGroup')]", "vnetNewParams":{ "location": { "value": "[parameters('location')]" }, "virtualNetworkName":{ "value":"[parameters('virtualNetworkName')]" }, "virtualNetworkAddressPrefix":{ "value":"[parameters('virtualNetworkAddressPrefix')]" }, "subnet1Name":{ "value":"[parameters('subnet1Name')]" }, "subnet1Prefix":{ "value":"[parameters('subnet1Prefix')]" }, "subnet2Name":{ "value":"[parameters('subnet2Name')]" }, "subnet2Prefix":{ "value":"[parameters('subnet2Prefix')]" } }, "publicIPExistingOrNone": "[replace(parameters('publicIPNewOrExistingOrNone'), 'new', 'existing')]", "publicIpResourceId": "[if(equals(parameters('publicIPNewOrExistingOrNone'), 'none'), '', if(equals(parameters('publicIPNewOrExistingOrNone'), 'new'), variables('publicIp-new'), variables('publicIp-existing')))]", "publicIp-new": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('publicIPAddressName'))]", "publicIp-existing": "[resourceId(parameters('publicIPExistingRGName'),concat('Microsoft.Network','/','publicIPAddresses'),parameters('publicIPAddressName'))]", "publicIPAddressType": "[if(empty(parameters('zone')), 'Dynamic', 'Static')]", "publicIp-sku": "[if(empty(parameters('zone')), 'Basic', 'Standard')]", "publicIPSetupURL":"[concat(parameters('artifactsBaseUrl'),'/publicip-',parameters('publicIPNewOrExistingOrNone'),'.json')]", "publicIPNewParams":{ "location": { "value": "[parameters('location')]" }, "publicIPAddressName":{ "value":"[parameters('publicIPAddressName')]" }, "publicIPAddressType":{ "value":"[variables('publicIPAddressType')]" }, "dnsPrefix":{ "value":"[parameters('publicIPDnsName')]" }, "publicIp-sku": { "value": "[variables('publicIp-sku')]" } }, "virtualNetworkSetupURL":"[concat(parameters('artifactsBaseUrl'),'/vnet-',parameters('vnetNewOrExisting'),'.json')]", "nicPrimaryName": "[concat(parameters('vmName'),'-lan1')]", "nicSecondaryName": "[concat(parameters('vmName'),'-mgmt')]", "nicPrimarySetupURL":"[concat(parameters('artifactsBaseUrl'),'/nic-pip',variables('publicIPExistingOrNone'),'.json')]", "nicSecondarySetupURL":"[concat(parameters('artifactsBaseUrl'),'/nic-pipnone.json')]", "nicprimaryNoneParams":{ "location": { "value": "[parameters('location')]" }, "nicName":{ "value":"[variables('nicPrimaryName')]" }, "IPAddress":{ "value":"[parameters('subnet1StartAddress')]" }, "subnetId":{ "value":"[variables('subnet1ResourceId')]" }, "networkSecurityGroupId":{ "value":"[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]" } }, "nicprimaryExistingParams":{ "location": { "value": "[parameters('location')]" }, "nicName":{ "value":"[variables('nicPrimaryName')]" }, "IPAddress":{ "value":"[parameters('subnet1StartAddress')]" }, "subnetId":{ "value":"[variables('subnet1ResourceId')]" }, "publicIPAddressId":{ "value":"[variables('publicIpResourceId')]" }, "networkSecurityGroupId":{ "value":"[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]" } }, "dataDiskName": "[concat(parameters('vmName'),'-datadisk1')]", "dataDiskNewOrNone": "[if(equals(parameters('niosModel'), 'IB-V5005'), 'new', 'none')]", "dataDiskSetupURL": "[concat(parameters('artifactsBaseUrl'),'/data-disk-',variables('dataDiskNewOrNone'),'.json')]", "dataDiskArray": [ { "lun": 0, "createOption": "attach", "managedDisk": { "id": "[resourceId('Microsoft.Compute/disks', variables('dataDiskName'))]" } } ], "dataDiskParams": { "location": { "value": "[parameters('location')]" }, "zone": { "value": "[parameters('zone')]" }, "dataDiskName": { "value": "[variables('dataDiskName')]" }, "vmDataDiskType": { "value": "[parameters('vmDataDiskType')]" }, "vmDataDiskSize": { "value": "[int(parameters('vmDataDiskSize'))]" } }, "storageAccountForLogsName": "[if(parameters('storageAccountForLogsNeedFix'), variables('storageAccountForLogsNameNeedFix-true'), variables('storageAccountForLogsNameNeedFix-false'))]", "storageAccountForLogsNameNeedFix-true":"[concat(parameters('newStorageAccountForLogsName'), 'logs')]", "storageAccountForLogsNameNeedFix-false":"[parameters('newStorageAccountForLogsName')]", "storageAccountForLogsSetupURL":"[concat(parameters('artifactsBaseUrl'),'/storageAccount-',parameters('storageAccountForLogsNewOrExisting'),'.json')]", "storageAccountForLogsNewParams":{ "location": { "value": "[parameters('location')]" }, "storageAccountType":{ "value":"[parameters('storageAccountForLogsType')]" }, "storageAccountName":{ "value":"[variables('storageAccountForLogsName')]" } }, "storageAccountForLogsExistingParams":{ "storageAccountName":{ "value":"[variables('storageAccountForLogsName')]" }, "storageAccountExistingRG":{ "value":"[parameters('storageAccountForLogsExistingRG')]" } }, "customData": "[base64(concat('temp_license: ', variables('tempLicense'), '\n', 'default_admin_password: ', variables('sq'), replace(parameters('adminPassword'), variables('sq'), concat(variables('sq'), variables('sq'))), variables('sq'), '\n', parameters('customData')))]", "availabilitySetNewOrNone": "[replace(parameters('availabilitySetNewOrExistingOrNone'), 'existing', 'none')]", "availabilitySetExistingOrNone": "[replace(parameters('availabilitySetNewOrExistingOrNone'), 'new', 'existing')]", "availabilitySetNewParams":{ "location": { "value": "[parameters('location')]" }, "availabilitySetName":{ "value":"[parameters('availabilitySetName')]" } }, "availabilitySetSetupURL":"[concat(parameters('artifactsBaseUrl'),'/availabilityset-',variables('availabilitySetNewOrNone'),'.json')]", "sq":"'", "osProfile":{ "computerName":"[parameters('vmName')]", "adminUsername":"[uniqueString(ResourceGroup().Id)]", "adminPassword":"[parameters('adminPassword')]", "customData": "[variables('customData')]" }, "virtualMachineSetURL":"[concat(parameters('artifactsBaseUrl'),'/vm-availabilityset-', variables('availabilitySetExistingOrNone'),'.json')]" }, "resources":[ { "name": "pid-d889d454-b77b-45d7-97be-196690ecb0f1-partnercenter", "type": "Microsoft.Resources/deployments", "apiVersion": "2021-04-01", "properties": { "mode": "Incremental", "template": { "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [] } } }, { "name":"SettingUpStorageAccountForLogs", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('storageAccountForLogsSetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":"[if(equals(parameters('storageAccountForLogsNewOrExisting'), 'new'), variables('storageAccountForLogsNewParams'), variables('storageAccountForLogsExistingParams'))]" } }, { "apiVersion": "2022-07-01", "type": "Microsoft.Network/networkSecurityGroups", "name": "[variables('nsgName')]", "location": "[parameters('location')]", "properties": { "securityRules": [ { "name": "SSH", "properties": { "description": "Allow SSH", "protocol": "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 100, "direction": "Inbound" } }, { "name": "DNS", "properties": { "description": "Allow DNS", "protocol": "Udp", "sourcePortRange": "*", "destinationPortRange": "53", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 101, "direction": "Inbound" } }, { "name": "HTTPS", "properties": { "description": "Allow HTTPS", "protocol": "Tcp", "sourcePortRange": "*", "destinationPortRange": "443", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 102, "direction": "Inbound" } }, { "name": "Grid_traffic_UDP_1194_in", "properties": { "description": "Allow vNIOS Grid traffic 1194 Inbound", "protocol": "Udp", "sourcePortRange": "*", "destinationPortRange": "1194", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 103, "direction": "Inbound" } }, { "name": "Grid_traffic_UDP_2114_in", "properties": { "description": "Allow vNIOS Grid traffic 2114 Inbound", "protocol": "Udp", "sourcePortRange": "*", "destinationPortRange": "2114", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 104, "direction": "Inbound" } }, { "name": "Grid_traffic_UDP_1194_out", "properties": { "description": "Allow vNIOS Grid traffic 1194 Outbound", "protocol": "Udp", "sourcePortRange": "*", "destinationPortRange": "1194", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 105, "direction": "Outbound" } }, { "name": "Grid_traffic_UDP_2114_out", "properties": { "description": "Allow vNIOS Grid traffic 2114 Outbound", "protocol": "Udp", "sourcePortRange": "*", "destinationPortRange": "2114", "sourceAddressPrefix": "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 106, "direction": "Outbound" } } ] } }, { "name":"SettingUpVirtualNetwork", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('virtualNetworkSetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":"[if(equals(parameters('vnetNewOrExisting'), 'new'), variables('vnetNewParams'), json('null'))]" } }, { "name":"SettingUpPrimaryNic", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "dependsOn":[ "[resourceId('Microsoft.Resources/deployments/', 'SettingUpVirtualNetwork')]", "[resourceId('Microsoft.Resources/deployments/', 'SettingUpPublicIP')]", "[resourceId('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]" ], "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('nicPrimarySetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":"[if(equals(variables('publicIPExistingOrNone'), 'none'), variables('nicprimaryNoneParams'), variables('nicprimaryExistingParams'))]" } }, { "name":"SettingUpSecondaryNic", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "dependsOn":[ "[resourceId('Microsoft.Resources/deployments/', 'SettingUpVirtualNetwork')]", "[resourceId('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]" ], "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('nicSecondarySetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":{ "location": { "value": "[parameters('location')]" }, "nicName":{ "value":"[variables('nicSecondaryName')]" }, "IPAddress":{ "value":"[parameters('subnet2StartAddress')]" }, "subnetId":{ "value":"[variables('subnet2ResourceId')]" }, "networkSecurityGroupId":{ "value":"[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]" } } } }, { "name":"SettingUpPublicIP", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('publicIPSetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":"[if(equals(parameters('publicIPNewOrExistingOrNone'), 'new'), variables('publicIPNewParams'), json('null'))]" } }, { "name": "SettingUpDataDisk", "type": "Microsoft.Resources/deployments", "apiVersion": "2021-04-01", "properties": { "mode": "Incremental", "templateLink": { "contentVersion":"1.0.0.0", "uri": "[variables('dataDiskSetupURL')]" }, "parameters": "[if(contains(variables('dataDiskNewOrNone'), 'new'), variables('dataDiskParams'), json('null') )]" } }, { "name":"SettingUpAvailabilitySet", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "properties":{ "mode":"Incremental", "templateLink":{ "uri":"[variables('availabilitySetSetupURL')]", "contentVersion":"1.0.0.0" }, "parameters":"[if(equals(parameters('availabilitySetNewOrExistingOrNone'), 'new'), variables('availabilitySetNewParams'), json('null'))]" } }, { "name":"SettingUpVirtualMachine", "type":"Microsoft.Resources/deployments", "apiVersion":"2021-04-01", "dependsOn":[ "[resourceId('Microsoft.Resources/deployments/', 'SettingUpStorageAccountForLogs')]", "[resourceId('Microsoft.Resources/deployments/', 'SettingUpPrimaryNic')]", "[resourceId('Microsoft.Resources/deployments/', 'SettingUpSecondaryNic')]", "[resourceId('Microsoft.Resources/deployments/', 'SettingUpAvailabilitySet')]", "[resourceId('Microsoft.Resources/deployments', 'SettingUpDataDisk')]" ], "properties":{ "mode":"Incremental", "templateLink": { "uri":"[variables('virtualMachineSetURL')]", "contentVersion":"1.0.0.0" }, "parameters":{ "vmName": { "value" : "[parameters('vmName')]" }, "location": { "value": "[parameters('location')]" }, "zone": { "value": "[parameters('zone')]" }, "plan": { "value" : { "publisher": "[variables('imagePublisher')]", "product": "[variables('imageOffer')]", "name": "[variables('imageSKU')]" } }, "hardwareProfile": { "value" : { "vmSize":"[parameters('vmSize')]" } }, "osProfile": { "value" : "[variables('osProfile')]" }, "storageProfile": { "value" : { "imageReference":{ "publisher":"[variables('imagePublisher')]", "offer":"[variables('imageOffer')]", "sku":"[variables('imageSKU')]", "version":"[variables('version')]" }, "osDisk":{ "name":"[variables('OSDiskName')]", "caching":"ReadOnly", "createOption":"FromImage", "managedDisk": { "storageAccountType": "[variables('osDiskType')]" } }, "dataDisks": "[if(contains(variables('dataDiskNewOrNone'), 'new'), variables('dataDiskArray'), json('[]') )]" } }, "networkProfile": { "value" : { "networkInterfaces":[ { "id":"[resourceId('Microsoft.Network/networkInterfaces/', variables('nicPrimaryName'))]", "properties":{ "primary":true } }, { "id":"[resourceId('Microsoft.Network/networkInterfaces/', variables('nicSecondaryName'))]", "properties":{ "primary":false } } ] } }, "diagnosticsProfile": { "value" : { "bootDiagnostics": { "enabled": "true", "storageUri": "[reference('SettingUpStorageAccountForLogs').outputs.endpointURL.value]" } } }, "is_avset": { "value": "[if(equals(parameters('availabilitySetNewOrExistingOrNone'), 'none'), 'false', 'true')]" }, "availabilitySet": { "value": { "id": "[resourceId('Microsoft.Compute/availabilitySets', parameters('availabilitySetName'))]" } } } } } ] }