mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 14:06:57 -06:00
ARM templates changes to met MS requirements
This commit is contained in:
@@ -4,41 +4,71 @@
|
||||
"parameters": {
|
||||
"vmSku": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_A4",
|
||||
"defaultValue": "Standard_D4s_v3",
|
||||
"metadata": {
|
||||
"description": "Size of VMs in the VM Scale Set."
|
||||
}
|
||||
},
|
||||
"clusterName": {
|
||||
"type": "string",
|
||||
"maxLength": 61,
|
||||
"metadata": {
|
||||
"description": "String used as a base for naming resources. Must be 3-61 characters in length and globally unique across Azure. A hash is prepended to this string for some resources, and resource-specific information is appended."
|
||||
},
|
||||
"maxLength": 61
|
||||
}
|
||||
},
|
||||
"location": {
|
||||
"type": "string",
|
||||
"defaultValue": "[resourceGroup().location]",
|
||||
"metadata": {
|
||||
"description": "Location for the resources."
|
||||
}
|
||||
},
|
||||
"nodeCount": {
|
||||
"type": "int",
|
||||
"defaultValue": 2,
|
||||
"minValue": 1,
|
||||
"maxValue": 100,
|
||||
"metadata": {
|
||||
"description": "Number of VM instances (100 or less) for member artifactory nodes. Minimum 1 node."
|
||||
},
|
||||
"maxValue": 100
|
||||
}
|
||||
},
|
||||
"artifactoryVersion": {
|
||||
"type": "string",
|
||||
"defaultValue": "6.2.0",
|
||||
"defaultValue": "7.4.30",
|
||||
"allowedValues": [
|
||||
"6.6.0",
|
||||
"6.6.1",
|
||||
"6.7.0",
|
||||
"6.8.0",
|
||||
"6.11.3",
|
||||
"6.15.0",
|
||||
"0.16.0",
|
||||
"0.17.0",
|
||||
"6.18.0",
|
||||
"7.0.0717",
|
||||
"7.0.4001",
|
||||
"7.2.1",
|
||||
"7.4.3",
|
||||
"7.4.30",
|
||||
"7.4.31"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "Artifactory version to deploy. Supported from 5.8.0 and above."
|
||||
"description": "Artifactory-vm image version to deploy."
|
||||
}
|
||||
},
|
||||
"masterKey": {
|
||||
"type": "string",
|
||||
"defaultValue": "1ce2be4490ca2c662cb79636cf9b7b8e",
|
||||
"maxLength": 64,
|
||||
"metadata": {
|
||||
"description": "Master key for Artifactory cluster. Generate master.key using command '$openssl rand -hex 16'"
|
||||
},
|
||||
"maxLength": 64
|
||||
}
|
||||
},
|
||||
"joinKey": {
|
||||
"type": "string",
|
||||
"maxLength": 64,
|
||||
"metadata": {
|
||||
"description": "Join key for Artifactory cluster. Generate join.key using command '$openssl rand -hex 16'"
|
||||
}
|
||||
},
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
@@ -52,18 +82,6 @@
|
||||
"description": "Admin password on all VMs. Follow conventions for azure VM admin password rules."
|
||||
}
|
||||
},
|
||||
"ubuntuOSVersion": {
|
||||
"type": "string",
|
||||
"defaultValue": "16.04.0-LTS",
|
||||
"allowedValues": [
|
||||
"12.04.5-LTS",
|
||||
"14.04.2-LTS",
|
||||
"16.04.0-LTS"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "The Ubuntu version for the VM."
|
||||
}
|
||||
},
|
||||
"artifactoryLicense1": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
@@ -131,7 +149,7 @@
|
||||
"extraJavaOptions": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"defaultValue": "-server -Xms2g -Xmx12g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=\\\"kill -9 %p\\\"",
|
||||
"defaultValue": "-server -Xms2g -Xmx8g -Xss256k -XX:+UseG1GC -XX:OnOutOfMemoryError=\\\"kill -9 %p\\\"",
|
||||
"metadata": {
|
||||
"description": "Setting Java Memory Parameters for Artifactory. Learn about system requirements for Artifactory https://www.jfrog.com/confluence/display/RTF/System+Requirements#SystemRequirements-RecommendedHardware."
|
||||
}
|
||||
@@ -139,7 +157,6 @@
|
||||
"DB_Admin_User": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"defaultValue": "artifactory",
|
||||
"metadata": {
|
||||
"description": "Database Admin user name"
|
||||
}
|
||||
@@ -147,7 +164,6 @@
|
||||
"DB_Admin_Password": {
|
||||
"type": "securestring",
|
||||
"minLength": 1,
|
||||
"defaultValue": "jFrog123",
|
||||
"metadata": {
|
||||
"description": "Database Admin password"
|
||||
}
|
||||
@@ -155,7 +171,6 @@
|
||||
"DB_Name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"defaultValue": "artdb",
|
||||
"metadata": {
|
||||
"description": "Database name"
|
||||
}
|
||||
@@ -173,11 +188,16 @@
|
||||
"description": "Database Edition"
|
||||
}
|
||||
},
|
||||
"DB_Location": {
|
||||
"storageAccountType": {
|
||||
"type": "string",
|
||||
"defaultValue": "",
|
||||
"defaultValue": "Standard_LRS",
|
||||
"allowedValues": [
|
||||
"Standard_LRS",
|
||||
"Standard_GRS",
|
||||
"Standard_ZRS"
|
||||
],
|
||||
"metadata": {
|
||||
"description": "Database location. Default to resource group location if blank."
|
||||
"description": "Storage Account type"
|
||||
}
|
||||
},
|
||||
"_artifactsLocation": {
|
||||
@@ -185,7 +205,7 @@
|
||||
"metadata": {
|
||||
"description": "The base URI where artifacts required by this template are located. When the template is deployed using the accompanying scripts, a private location in the subscription will be used and this value will be automatically generated."
|
||||
},
|
||||
"defaultValue": "https://raw.githubusercontent.com/JFrogDev/JFrog-Cloud-Installers/master/AzureResourceManager/"
|
||||
"defaultValue": "https://raw.githubusercontent.com/jfrog/JFrog-Cloud-Installers/refactoring-rt6-rt7/AzureResourceManager/"
|
||||
},
|
||||
"_artifactsLocationSasToken": {
|
||||
"type": "securestring",
|
||||
@@ -198,34 +218,45 @@
|
||||
"variables": {
|
||||
"namingInfix": "[toLower(substring(concat(parameters('clusterName'), uniqueString(resourceGroup().id)), 0, 9))]",
|
||||
"addressPrefix": "10.0.0.0/16",
|
||||
"subnetPrefix": "10.0.1.0/24",
|
||||
"subnetPrimaryPrefix": "10.0.1.0/24",
|
||||
"subnetMemberPrefix": "10.0.2.0/24",
|
||||
"virtualNetworkName": "[concat(variables('namingInfix'), 'vnet')]",
|
||||
"subnetName": "[concat(variables('namingInfix'), 'subnet')]",
|
||||
"scaleSetName": "[concat(variables('namingInfix'), 'scaleset')]",
|
||||
"subnetPrimaryName": "[concat(variables('namingInfix'), 'primarySubnet')]",
|
||||
"subnetMemberName": "[concat(variables('namingInfix'), 'memberSubnet')]",
|
||||
"scaleSetPrimaryName": "[concat(variables('namingInfix'), 'primaryScaleset')]",
|
||||
"scaleSetMemberName": "[concat(variables('namingInfix'), 'memberScaleset')]",
|
||||
"lbName": "[concat(variables('namingInfix'), 'lb')]",
|
||||
"bepoolName": "[concat(variables('lbName'), 'bepool')]",
|
||||
"fepoolName": "[concat(variables('lbName'), 'fepool')]",
|
||||
"lbID": "[resourceId('Microsoft.Network/loadBalancers',variables('lbName'))]",
|
||||
"bepoolID": "[concat(variables('lbID'),'/backendAddressPools/', variables('bepoolName'))]",
|
||||
"feIpConfigName": "[concat(variables('fepoolName'), 'IpConfig')]",
|
||||
"feIpConfigId": "[concat(variables('lbID'),'/frontendIPConfigurations/', variables('feIpConfigName'))]",
|
||||
"pipName": "[concat(variables('namingInfix'), 'pip')]",
|
||||
"nicName": "[concat(variables('namingInfix'), 'nic')]",
|
||||
"natPoolName": "[concat(variables('lbName'), 'natpool')]",
|
||||
"bepoolPrimaryName": "[concat(variables('lbName'), 'primaryBepool')]",
|
||||
"bepoolMemberName": "[concat(variables('lbName'), 'memberBepool')]",
|
||||
"fepoolPrimaryName": "[concat(variables('lbName'), 'primaryFepool')]",
|
||||
"fepoolMemberName": "[concat(variables('lbName'), 'memberFepool')]",
|
||||
"bepoolPrimaryID": "[resourceId('Microsoft.Network/loadBalancers/backendAddressPools', variables('lbName'), variables('bepoolPrimaryName'))]",
|
||||
"bepoolMemberID": "[resourceId('Microsoft.Network/loadBalancers/backendAddressPools', variables('lbName'), variables('bepoolMemberName'))]",
|
||||
"feIpConfigPrimaryName": "[concat(variables('fepoolPrimaryName'), 'primaryIpConfig')]",
|
||||
"feIpConfigMemberName": "[concat(variables('fepoolMemberName'), 'memberIpConfig')]",
|
||||
"feIpConfigPrimaryId": "[resourceId('Microsoft.Network/loadBalancers/frontendIpConfigurations', variables('lbName'), variables('feIpConfigPrimaryName'))]",
|
||||
"feIpConfigMemberId": "[resourceId('Microsoft.Network/loadBalancers/frontendIpConfigurations', variables('lbName'), variables('feIpConfigMemberName'))]",
|
||||
"pipPrimaryName": "[concat(variables('namingInfix'), 'primaryPip')]",
|
||||
"pipMemberName": "[concat(variables('namingInfix'), 'memberPip')]",
|
||||
"nicPrimaryName": "[concat(variables('namingInfix'), 'primaryNic')]",
|
||||
"nicMemberName": "[concat(variables('namingInfix'), 'memberNic')]",
|
||||
"natPoolPrimaryName": "[concat(variables('lbName'), 'primaryNatpool')]",
|
||||
"natPoolMemberName": "[concat(variables('lbName'), 'memberNatpool')]",
|
||||
"ipConfigName": "[concat(variables('namingInfix'), 'ipconfig')]",
|
||||
"httpProbeName": "httpProbe",
|
||||
"httpsProbeName": "httpsProbe",
|
||||
"httpProbePrimaryName": "primaryHttpProbe",
|
||||
"httpsProbePrimaryName": "primaryHttpsProbe",
|
||||
"httpProbeMemberName": "memberHttpProbe",
|
||||
"httpsProbeMemberName": "memberHttpsProbe",
|
||||
"storageAccountName": "[concat(variables('namingInfix'), 'storage')]",
|
||||
"storageAccountType": "Standard_LRS",
|
||||
"vmStorageAccountContainerName": "filestore",
|
||||
"azureSqlServerName": "[concat(variables('namingInfix'), 'sqlsrv')]",
|
||||
"DB_Name": "[parameters('DB_Name')]",
|
||||
"DB_Admin_User": "[parameters('DB_Admin_User')]",
|
||||
"DB_Admin_Password": "[parameters('DB_Admin_Password')]",
|
||||
"DB_Edition": "[parameters('DB_Edition')]",
|
||||
"DB_Location": "[parameters('DB_Location')]",
|
||||
"artifactoryVersion": "[parameters('artifactoryVersion')]",
|
||||
"DB_Location": "[parameters('location')]",
|
||||
"masterKey": "[parameters('masterKey')]",
|
||||
"joinKey": "[parameters('joinKey')]",
|
||||
"certificate": "[parameters('certificate')]",
|
||||
"certificateKey": "[parameters('certificateKey')]",
|
||||
"certificateDomain": "[parameters('certificateDomain')]",
|
||||
@@ -237,21 +268,35 @@
|
||||
"artifactoryLicense4": "[parameters('artifactoryLicense4')]",
|
||||
"artifactoryLicense5": "[parameters('artifactoryLicense5')]",
|
||||
"osType": {
|
||||
"publisher": "Canonical",
|
||||
"offer": "UbuntuServer",
|
||||
"sku": "[parameters('ubuntuOSVersion')]",
|
||||
"version": "latest"
|
||||
"publisher": "jfrog",
|
||||
"offer": "artifactory-vm",
|
||||
"sku": "artifactory-vm-private",
|
||||
"version": "[parameters('artifactoryVersion')]"
|
||||
},
|
||||
"apiVersion": "2015-06-15",
|
||||
"imageReference": "[variables('osType')]",
|
||||
"dbTemplate": "azureDBDeploy.json",
|
||||
"dbTemplateLocation": "[concat(parameters('_artifactsLocation'), 'nested', '/', variables('dbTemplate'))]",
|
||||
"dbTemplateLocation": "[uri(parameters('_artifactsLocation'), concat('nested/', variables('dbTemplate'), parameters('_artifactsLocationSasToken')))]",
|
||||
"nsgName": "[concat(variables('namingInfix'), 'nsg')]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2019-05-01",
|
||||
"name": "pid-04c1c376-5d4b-4771-9a7f-054f5910dcef",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"template": {
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"resources": []
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"location": "[resourceGroup().location]",
|
||||
"location": "[parameters('location')]",
|
||||
"name": "[variables('nsgName')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
@@ -269,7 +314,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "http-rule",
|
||||
"name": "http-artifactory-rule",
|
||||
"properties": {
|
||||
"description": "Allow HTTP",
|
||||
"protocol": "Tcp",
|
||||
@@ -283,7 +328,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "http-rule-1",
|
||||
"name": "http-nginx-rule",
|
||||
"properties": {
|
||||
"description": "Allow HTTP",
|
||||
"protocol": "Tcp",
|
||||
@@ -297,7 +342,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "https-rule",
|
||||
"name": "https-nginx-rule",
|
||||
"properties": {
|
||||
"description": "Allow HTTP",
|
||||
"protocol": "Tcp",
|
||||
@@ -325,15 +370,13 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"name": "[variables('nsgName')]",
|
||||
"apiVersion": "2016-03-30"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2016-03-30",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]"
|
||||
],
|
||||
@@ -345,9 +388,18 @@
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('subnetName')]",
|
||||
"name": "[variables('subnetPrimaryName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('subnetPrefix')]",
|
||||
"addressPrefix": "[variables('subnetPrimaryPrefix')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('subnetMemberName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('subnetMemberPrefix')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]"
|
||||
}
|
||||
@@ -357,12 +409,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('apiVersion')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "[variables('nicName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"name": "[variables('nicPrimaryName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipName'))]",
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipPrimaryName'))]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]",
|
||||
"[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]"
|
||||
],
|
||||
@@ -373,7 +425,7 @@
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName')), '/subnets/', variables('subnetName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetPrimaryName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -384,12 +436,12 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('apiVersion')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "[concat(variables('nicName'),'2')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"name": "[variables('nicMemberName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipName'),'2')]",
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipMemberName'))]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]",
|
||||
"[resourceId('Microsoft.Network/networkSecurityGroups', variables('nsgName'))]"
|
||||
],
|
||||
@@ -400,7 +452,7 @@
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"subnet": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName')), '/subnets/', variables('subnetName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetMemberName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -412,12 +464,12 @@
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[variables('pipName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"name": "[variables('pipPrimaryName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"sku": {
|
||||
"name": "Standard"
|
||||
},
|
||||
"apiVersion": "2017-08-01",
|
||||
"apiVersion": "2018-07-01",
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Static",
|
||||
"dnsSettings": {
|
||||
@@ -427,12 +479,12 @@
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[concat(variables('pipName'),'2')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"name": "[variables('pipMemberName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"sku": {
|
||||
"name": "Standard"
|
||||
},
|
||||
"apiVersion": "2017-08-01",
|
||||
"apiVersion": "2018-07-01",
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "Static",
|
||||
"dnsSettings": {
|
||||
@@ -443,51 +495,51 @@
|
||||
{
|
||||
"type": "Microsoft.Network/loadBalancers",
|
||||
"name": "[variables('lbName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2017-08-01",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"sku": {
|
||||
"name": "Standard"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipName'))]",
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipName'), '2')]"
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipPrimaryName'))]",
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', variables('pipMemberName'))]"
|
||||
],
|
||||
"tags": {
|
||||
"tags":{
|
||||
"displayName": "Load Balancer"
|
||||
},
|
||||
"properties": {
|
||||
"frontendIPConfigurations": [
|
||||
{
|
||||
"name": "[variables('feIpConfigName')]",
|
||||
"name": "[variables('feIpConfigPrimaryName')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('pipName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('pipPrimaryName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('feIpConfigName'),'2')]",
|
||||
"name": "[variables('feIpConfigMemberName')]",
|
||||
"properties": {
|
||||
"publicIPAddress": {
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses', concat(variables('pipName'),'2'))]"
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses', variables('pipMemberName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"backendAddressPools": [
|
||||
{
|
||||
"name": "[variables('bepoolName')]"
|
||||
"name": "[variables('bepoolPrimaryName')]"
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('bepoolName'),'2')]"
|
||||
"name": "[variables('bepoolMemberName')]"
|
||||
}
|
||||
],
|
||||
"inboundNatPools": [
|
||||
{
|
||||
"name": "[variables('natPoolName')]",
|
||||
"name": "[variables('natPoolPrimaryName')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('feIpConfigId')]"
|
||||
"id": "[variables('feIpConfigPrimaryId')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPortRangeStart": 10022,
|
||||
@@ -496,10 +548,10 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('natPoolName'),'2')]",
|
||||
"name": "[variables('natPoolMemberName')]",
|
||||
"properties": {
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(variables('feIpConfigId'),'2')]"
|
||||
"id": "[variables('feIpConfigMemberId')]"
|
||||
},
|
||||
"protocol": "tcp",
|
||||
"frontendPortRangeStart": 20022,
|
||||
@@ -510,14 +562,14 @@
|
||||
],
|
||||
"loadBalancingRules": [
|
||||
{
|
||||
"name": "HTTPRule",
|
||||
"name": "HTTPRulePrimary",
|
||||
"properties": {
|
||||
"loadDistribution": "Default",
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('feIpConfigId')]"
|
||||
"id": "[variables('feIpConfigPrimaryId')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('bepoolID')]"
|
||||
"id": "[variables('bepoolPrimaryID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 80,
|
||||
@@ -525,19 +577,19 @@
|
||||
"enableFloatingIP": false,
|
||||
"idleTimeoutInMinutes": 5,
|
||||
"probe": {
|
||||
"id": "[concat(variables('lbId'), '/probes/', variables('httpProbeName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/probes', variables('lbName'), variables('httpProbePrimaryName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTTPSRule",
|
||||
"name": "HTTPSRulePrimary",
|
||||
"properties": {
|
||||
"loadDistribution": "Default",
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[variables('feIpConfigId')]"
|
||||
"id": "[variables('feIpConfigPrimaryId')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[variables('bepoolID')]"
|
||||
"id": "[variables('bepoolPrimaryID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 443,
|
||||
@@ -545,19 +597,19 @@
|
||||
"enableFloatingIP": false,
|
||||
"idleTimeoutInMinutes": 5,
|
||||
"probe": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('lbName')), '/probes/', variables('httpsProbeName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/probes', variables('lbName'), variables('httpsProbePrimaryName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTTPRule2",
|
||||
"name": "HTTPRuleMember",
|
||||
"properties": {
|
||||
"loadDistribution": "Default",
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(variables('feIpConfigId'),'2')]"
|
||||
"id": "[variables('feIpConfigMemberId')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[concat(variables('bepoolID'),'2')]"
|
||||
"id": "[variables('bepoolMemberID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 80,
|
||||
@@ -565,19 +617,19 @@
|
||||
"enableFloatingIP": false,
|
||||
"idleTimeoutInMinutes": 5,
|
||||
"probe": {
|
||||
"id": "[concat(variables('lbId'), '/probes/', variables('httpProbeName'),'2')]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/probes', variables('lbName'), variables('httpProbeMemberName'))]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTTPSRule2",
|
||||
"name": "HTTPSRuleMember",
|
||||
"properties": {
|
||||
"loadDistribution": "Default",
|
||||
"frontendIPConfiguration": {
|
||||
"id": "[concat(variables('feIpConfigId'),'2')]"
|
||||
"id": "[variables('feIpConfigMemberId')]"
|
||||
},
|
||||
"backendAddressPool": {
|
||||
"id": "[concat(variables('bepoolID'),'2')]"
|
||||
"id": "[variables('bepoolMemberID')]"
|
||||
},
|
||||
"protocol": "Tcp",
|
||||
"frontendPort": 443,
|
||||
@@ -585,14 +637,14 @@
|
||||
"enableFloatingIP": false,
|
||||
"idleTimeoutInMinutes": 5,
|
||||
"probe": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/loadBalancers', variables('lbName')), '/probes/', variables('httpsProbeName'),'2')]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/probes', variables('lbName'), variables('httpsProbeMemberName'))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"probes": [
|
||||
{
|
||||
"name": "[variables('httpProbeName')]",
|
||||
"name": "[variables('httpProbePrimaryName')]",
|
||||
"properties": {
|
||||
"protocol": "Http",
|
||||
"requestPath": "/artifactory/api/system/ping",
|
||||
@@ -602,7 +654,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[variables('httpsProbeName')]",
|
||||
"name": "[variables('httpsProbePrimaryName')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 443,
|
||||
@@ -611,7 +663,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('httpProbeName'),'2')]",
|
||||
"name": "[variables('httpProbeMemberName')]",
|
||||
"properties": {
|
||||
"protocol": "Http",
|
||||
"requestPath": "/artifactory/api/system/ping",
|
||||
@@ -621,7 +673,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "[concat(variables('httpsProbeName'),'2')]",
|
||||
"name": "[variables('httpsProbeMemberName')]",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"port": 443,
|
||||
@@ -633,18 +685,23 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('apiVersion')]",
|
||||
"apiVersion": "2018-07-01",
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"name": "[variables('storageAccountName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"accountType": "[variables('storageAccountType')]"
|
||||
}
|
||||
"location": "[parameters('location')]",
|
||||
"sku": {
|
||||
"name": "[parameters('storageAccountType')]"
|
||||
},
|
||||
"tags":{
|
||||
"displayName": "Artifactory Storage Account"
|
||||
},
|
||||
"kind": "Storage",
|
||||
"properties": {}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"name": "deploySQLDB",
|
||||
"apiVersion": "2014-04-01",
|
||||
"apiVersion": "2018-07-01",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
@@ -668,29 +725,35 @@
|
||||
"value": "[parameters('DB_Edition')]"
|
||||
},
|
||||
"db_location": {
|
||||
"value": "[parameters('DB_Location')]"
|
||||
"value": "[variables('DB_Location')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachineScaleSets",
|
||||
"name": "[variables('scaleSetName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2017-03-30",
|
||||
"name": "[variables('scaleSetPrimaryName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2018-10-01",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/loadBalancers/', variables('lbName'))]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]",
|
||||
"[concat('Microsoft.Resources/deployments/', 'deploySQLDB')]",
|
||||
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]"
|
||||
],
|
||||
"plan": {
|
||||
"name": "artifactory-vm-private",
|
||||
"publisher": "jfrog",
|
||||
"product": "artifactory-vm"
|
||||
},
|
||||
"sku": {
|
||||
"name": "[parameters('vmSku')]",
|
||||
"tier": "Standard",
|
||||
"capacity": "[1]"
|
||||
"capacity": "1"
|
||||
},
|
||||
"properties": {
|
||||
"singlePlacementGroup": true,
|
||||
"overprovision": "false",
|
||||
"upgradePolicy": {
|
||||
"mode": "Manual"
|
||||
},
|
||||
@@ -707,12 +770,12 @@
|
||||
"computerNamePrefix": "[variables('namingInfix')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]",
|
||||
"customData": "[base64(concat('#INSTALL SCRIPT INPUTS\nCERTIFICATE_KEY=',parameters('certificateKey'),'\nCERTIFICATE=', parameters('certificate'),'\nCERTIFICATE_DOMAIN=',parameters('certificateDomain'),'\nARTIFACTORY_SERVER_NAME=',parameters('artifactoryServerName'),'\nEXTRA_JAVA_OPTS=',parameters('extraJavaOptions'),'\nJDBC_STR=',reference('Microsoft.Resources/deployments/deploySQLDB').outputs.jdbcConnString.value,'\nDB_NAME=',variables('DB_Name'),'\nDB_ADMIN_USER=',variables('DB_Admin_User'),'\nDB_ADMIN_PASSWD=',variables('DB_Admin_Password'),'\nSTO_ACT_NAME=',variables('storageAccountName'),'\nSTO_CTR_NAME=',variables('vmStorageAccountContainerName'),'\nSTO_ACT_KEY=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), variables('apiVersion')).key1,'\nARTIFACTORY_VERSION=',variables('artifactoryVersion'),'\nMASTER_KEY=',variables('masterKey'),'\nIS_PRIMARY=','true','\nLICENSE1=',variables('artifactoryLicense1'),'\nLICENSE2=',variables('artifactoryLicense2'),'\nLICENSE3=',variables('artifactoryLicense3'),'\nLICENSE4=',variables('artifactoryLicense4'),'\nLICENSE5=',variables('artifactoryLicense5'),'\n'))]"
|
||||
"customData": "[base64(concat('#INSTALL SCRIPT INPUTS\nARTIFACTORY_VERSION=', parameters('artifactoryVersion'),'\nCERTIFICATE_KEY=',parameters('certificateKey'),'\nCERTIFICATE=', parameters('certificate'),'\nCERTIFICATE_DOMAIN=',parameters('certificateDomain'),'\nARTIFACTORY_SERVER_NAME=',parameters('artifactoryServerName'),'\nEXTRA_JAVA_OPTS=',parameters('extraJavaOptions'),'\nJDBC_STR=',reference('Microsoft.Resources/deployments/deploySQLDB').outputs.jdbcConnString.value,'\nDB_NAME=',variables('DB_Name'),'\nDB_ADMIN_USER=',variables('DB_Admin_User'),'\nDB_ADMIN_PASSWD=',variables('DB_Admin_Password'),'\nSTO_ACT_NAME=',variables('storageAccountName'),'\nSTO_ACT_ENDPOINT=',reference(resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))).primaryEndpoints.blob,'\nSTO_CTR_NAME=',variables('vmStorageAccountContainerName'),'\nSTO_ACT_KEY=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2018-07-01').keys[0].value,'\nMASTER_KEY=',variables('masterKey'),'\nJOIN_KEY=',variables('joinKey'),'\nIS_PRIMARY=','true','\nLICENSE1=',variables('artifactoryLicense1'),'\nLICENSE2=',variables('artifactoryLicense2'),'\nLICENSE3=',variables('artifactoryLicense3'),'\nLICENSE4=',variables('artifactoryLicense4'),'\nLICENSE5=',variables('artifactoryLicense5'),'\n'))]"
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaceConfigurations": [
|
||||
{
|
||||
"name": "[variables('nicName')]",
|
||||
"name": "[variables('nicPrimaryName')]",
|
||||
"properties": {
|
||||
"primary": true,
|
||||
"ipConfigurations": [
|
||||
@@ -720,16 +783,16 @@
|
||||
"name": "[concat(variables('ipConfigName'),'1')]",
|
||||
"properties": {
|
||||
"subnet": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName')), '/subnets/', variables('subnetName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetPrimaryName'))]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/backendAddressPools/', variables('bePoolName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/backendAddressPools', variables('lbName'), variables('bePoolPrimaryName'))]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatPools": [
|
||||
{
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/inboundNatPools/', variables('natPoolName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/inboundNatPools', variables('lbName'), variables('natPoolPrimaryName'))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -750,11 +813,13 @@
|
||||
"autoUpgradeMinorVersion": false,
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[concat(parameters('_artifactsLocation'), 'scripts/','install_artifactory.sh')]"
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/install_artifactory.sh', parameters('_artifactsLocationSasToken')))]",
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/install_artifactory7.sh', parameters('_artifactsLocationSasToken')))]",
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/version_selector.sh', parameters('_artifactsLocationSasToken')))]"
|
||||
]
|
||||
},
|
||||
"protectedSettings": {
|
||||
"commandToExecute": "sh install_artifactory.sh"
|
||||
"commandToExecute": "bash version_selector.sh && ls -al && pwd >> /var/lib/cloud/instance/user-data.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -765,16 +830,21 @@
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Compute/virtualMachineScaleSets",
|
||||
"name": "[concat(variables('scaleSetName'),'2')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"apiVersion": "2017-03-30",
|
||||
"name": "[variables('scaleSetMemberName')]",
|
||||
"location": "[parameters('location')]",
|
||||
"apiVersion": "2018-10-01",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/loadBalancers/', variables('lbName'))]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]",
|
||||
"[concat('Microsoft.Compute/virtualMachineScaleSets/', variables('scaleSetName'))]",
|
||||
"[concat('Microsoft.Compute/virtualMachineScaleSets/', variables('scaleSetPrimaryName'))]",
|
||||
"[concat('Microsoft.Resources/deployments/', 'deploySQLDB')]",
|
||||
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]"
|
||||
],
|
||||
"plan": {
|
||||
"name": "artifactory-vm-private",
|
||||
"publisher": "jfrog",
|
||||
"product": "artifactory-vm"
|
||||
},
|
||||
"sku": {
|
||||
"name": "[parameters('vmSku')]",
|
||||
"tier": "Standard",
|
||||
@@ -782,6 +852,7 @@
|
||||
},
|
||||
"properties": {
|
||||
"singlePlacementGroup": true,
|
||||
"overprovision": "false",
|
||||
"upgradePolicy": {
|
||||
"mode": "Manual"
|
||||
},
|
||||
@@ -798,12 +869,12 @@
|
||||
"computerNamePrefix": "[variables('namingInfix')]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]",
|
||||
"customData": "[base64(concat('#INSTALL SCRIPT INPUTS\nCERTIFICATE_KEY=',parameters('certificateKey'),'\nCERTIFICATE=', parameters('certificate'),'\nCERTIFICATE_DOMAIN=',parameters('certificateDomain'),'\nARTIFACTORY_SERVER_NAME=',parameters('artifactoryServerName'),'\nEXTRA_JAVA_OPTS=',parameters('extraJavaOptions'),'\nJDBC_STR=',reference('Microsoft.Resources/deployments/deploySQLDB').outputs.jdbcConnString.value,'\nDB_NAME=',variables('DB_Name'),'\nDB_ADMIN_USER=',variables('DB_Admin_User'),'\nDB_ADMIN_PASSWD=',variables('DB_Admin_Password'),'\nSTO_ACT_NAME=',variables('storageAccountName'),'\nSTO_CTR_NAME=',variables('vmStorageAccountContainerName'),'\nSTO_ACT_KEY=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), variables('apiVersion')).key1,'\nARTIFACTORY_VERSION=',variables('artifactoryVersion'),'\nMASTER_KEY=',variables('masterKey'),'\nIS_PRIMARY=','false','\nLICENSE1=',variables('artifactoryLicense1'),'\nLICENSE2=',variables('artifactoryLicense2'),'\nLICENSE3=',variables('artifactoryLicense3'),'\nLICENSE4=',variables('artifactoryLicense4'),'\nLICENSE5=',variables('artifactoryLicense5'),'\n'))]"
|
||||
"customData": "[base64(concat('#INSTALL SCRIPT INPUTS\nARTIFACTORY_VERSION=', parameters('artifactoryVersion'),'\nCERTIFICATE_KEY=',parameters('certificateKey'),'\nCERTIFICATE=', parameters('certificate'),'\nCERTIFICATE_DOMAIN=',parameters('certificateDomain'),'\nARTIFACTORY_SERVER_NAME=',parameters('artifactoryServerName'),'\nEXTRA_JAVA_OPTS=',parameters('extraJavaOptions'),'\nJDBC_STR=',reference('Microsoft.Resources/deployments/deploySQLDB').outputs.jdbcConnString.value,'\nDB_NAME=',variables('DB_Name'),'\nDB_ADMIN_USER=',variables('DB_Admin_User'),'\nDB_ADMIN_PASSWD=',variables('DB_Admin_Password'),'\nSTO_ACT_NAME=',variables('storageAccountName'),'\nSTO_ACT_ENDPOINT=',reference(resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))).primaryEndpoints.blob,'\nSTO_CTR_NAME=',variables('vmStorageAccountContainerName'),'\nSTO_ACT_KEY=',listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2018-07-01').keys[0].value,'\nMASTER_KEY=',variables('masterKey'),'\nJOIN_KEY=',variables('joinKey'),'\nIS_PRIMARY=','false','\nLICENSE1=',variables('artifactoryLicense1'),'\nLICENSE2=',variables('artifactoryLicense2'),'\nLICENSE3=',variables('artifactoryLicense3'),'\nLICENSE4=',variables('artifactoryLicense4'),'\nLICENSE5=',variables('artifactoryLicense5'),'\n'))]"
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaceConfigurations": [
|
||||
{
|
||||
"name": "[concat(variables('nicName'),'2')]",
|
||||
"name": "[variables('nicMemberName')]",
|
||||
"properties": {
|
||||
"primary": true,
|
||||
"ipConfigurations": [
|
||||
@@ -811,16 +882,16 @@
|
||||
"name": "[concat(variables('ipConfigName'),'1')]",
|
||||
"properties": {
|
||||
"subnet": {
|
||||
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName')), '/subnets/', variables('subnetName'))]"
|
||||
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetMemberName'))]"
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/backendAddressPools/', variables('bePoolName'),'2')]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/backendAddressPools', variables('lbName'), variables('bePoolMemberName'))]"
|
||||
}
|
||||
],
|
||||
"loadBalancerInboundNatPools": [
|
||||
{
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/inboundNatPools/', variables('natPoolName'),'2')]"
|
||||
"id": "[resourceId('Microsoft.Network/loadBalancers/inboundNatPools', variables('lbName'), variables('natPoolMemberName'))]"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -841,11 +912,13 @@
|
||||
"autoUpgradeMinorVersion": false,
|
||||
"settings": {
|
||||
"fileUris": [
|
||||
"[concat(parameters('_artifactsLocation'), 'scripts/','install_artifactory.sh')]"
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/install_artifactory.sh', parameters('_artifactsLocationSasToken')))]",
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/install_artifactory7.sh', parameters('_artifactsLocationSasToken')))]",
|
||||
"[uri(parameters('_artifactsLocation'), concat('scripts/version_selector.sh', parameters('_artifactsLocationSasToken')))]"
|
||||
]
|
||||
},
|
||||
"protectedSettings": {
|
||||
"commandToExecute": "sh install_artifactory.sh"
|
||||
"commandToExecute": "bash version_selector.sh && ls -al && pwd >> /var/lib/cloud/instance/user-data.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -857,8 +930,8 @@
|
||||
],
|
||||
"outputs": {
|
||||
"fqdn": {
|
||||
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',concat(variables('pipName'),'2')),'2016-03-30').dnsSettings.fqdn]",
|
||||
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',variables('pipMemberName')),'2018-07-01').dnsSettings.fqdn]",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user