Skip to content

Commit

Permalink
enable basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
xingyang-li committed Mar 25, 2024
1 parent 5179306 commit 036cf76
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 5 deletions.
48 changes: 48 additions & 0 deletions templates/stf-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,30 @@
}
]
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('windowsAppName'), '/scm')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('windowsAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('windowsAppName'), '/ftp')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('windowsAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2021-03-01",
Expand Down Expand Up @@ -1267,6 +1291,30 @@
}
]
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('linuxAppName'), '/scm')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('linuxAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('linuxAppName'), '/ftp')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('linuxAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2021-03-01",
Expand Down
58 changes: 53 additions & 5 deletions templates/stf-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"linuxAppSubnetPrefix": "10.0.2.0/24",
"vmName": "[concat(parameters('projectName'), '-vm')]",
"adminUsername": "stfadmin",
"adminPassword": "iis6!dfu",
"adminPassword": "iis6!dfu",
"peeredVmName": "peered-vm",
"functionAppName": "[concat(parameters('projectName'), '-functionapp')]",
"privateAppName": "[concat(parameters('projectName'), '-privateapp')]",
Expand Down Expand Up @@ -489,7 +489,7 @@
"osProfile": {
"computerName": "[variables('vmName')]",
"adminUsername": "[variables('adminUsername')]",
"adminPassword": "[variables('adminPassword')]"
"adminPassword": "[variables('adminPassword')]"
},
"storageProfile": {
"imageReference": {
Expand Down Expand Up @@ -551,7 +551,7 @@
"osProfile": {
"computerName": "[variables('peeredVmName')]",
"adminUsername": "[variables('adminUsername')]",
"adminPassword": "[variables('adminPassword')]"
"adminPassword": "[variables('adminPassword')]"
},
"storageProfile": {
"imageReference": {
Expand Down Expand Up @@ -1130,10 +1130,10 @@
"properties": {
"secret1": "[concat('@Microsoft.KeyVault(SecretUri=', reference(variables('secret1ResourceId')).secretUriWithVersion, ')')]",
"storageKeySecret": "[concat('@Microsoft.KeyVault(SecretUri=', reference(variables('storageKeySecretResourceId')).secretUriWithVersion, ')')]",
"WEBSITE_DNS_SERVER": "168.63.129.16",
"WEBSITE_DNS_SERVER": "168.63.129.16",
"WEBSITE_VNET_ROUTE_ALL": "1",
"WEBSITE_CONTENTOVERVNET": "1",
"WEBSITE_CONTENTSHARE": "windows",
"WEBSITE_CONTENTSHARE": "windows",
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING": "[concat('DefaultEndpointsProtocol=https;AccountName=', variables('storageAccountName'), ';AccountKey=', listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1)]",
"ResourceGroup": "[parameters('projectName')]"
},
Expand Down Expand Up @@ -1165,6 +1165,30 @@
}
]
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('windowsAppName'), '/scm')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('windowsAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('windowsAppName'), '/ftp')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('windowsAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2021-03-01",
Expand Down Expand Up @@ -1267,6 +1291,30 @@
}
]
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('linuxAppName'), '/scm')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('linuxAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2023-01-01",
"name": "[concat(variables('linuxAppName'), '/ftp')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('linuxAppName'))]"
],
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2021-03-01",
Expand Down

0 comments on commit 036cf76

Please sign in to comment.