Skip to content

Commit 0e48f88

Browse files
authored
[keyvault] update test-resources.json (Azure#23078)
* azcertificates * azsecrets
1 parent 72dd8fa commit 0e48f88

File tree

2 files changed

+0
-352
lines changed

2 files changed

+0
-352
lines changed

sdk/security/keyvault/azcertificates/test-resources.json

-176
Original file line numberDiff line numberDiff line change
@@ -35,62 +35,18 @@
3535
"description": "The location of the resource. By default, this is the same as the resource group."
3636
}
3737
},
38-
"hsmLocation": {
39-
"type": "string",
40-
"defaultValue": "southcentralus",
41-
"allowedValues": [
42-
"australiacentral",
43-
"canadacentral",
44-
"centralus",
45-
"eastasia",
46-
"eastus2",
47-
"koreacentral",
48-
"northeurope",
49-
"southafricanorth",
50-
"southcentralus",
51-
"southeastasia",
52-
"switzerlandnorth",
53-
"uksouth",
54-
"westeurope",
55-
"westus"
56-
],
57-
"metadata": {
58-
"description": "The location of the Managed HSM. By default, this is 'southcentralus'."
59-
}
60-
},
61-
"enableHsm": {
62-
"type": "bool",
63-
"defaultValue": false,
64-
"metadata": {
65-
"description": "Whether to enable deployment of Managed HSM. The default is false."
66-
}
67-
},
6838
"keyVaultSku": {
6939
"type": "string",
7040
"defaultValue": "premium",
7141
"metadata": {
7242
"description": "Key Vault SKU to deploy. The default is 'premium'"
7343
}
74-
},
75-
"attestationImage": {
76-
"type": "string",
77-
"defaultValue": "keyvault-mock-attestation:latest",
78-
"metadata": {
79-
"description": "The container image name and tag to use for the attestation mock service."
80-
}
8144
}
8245
},
8346
"variables": {
84-
"attestationFarm": "[concat(parameters('baseName'), 'farm')]",
85-
"attestationSite": "[concat(parameters('baseName'), 'site')]",
86-
"attestationUri": "[concat('DOCKER|azsdkengsys.azurecr.io/', parameters('attestationImage'))]",
8747
"kvApiVersion": "2019-09-01",
8848
"kvName": "[parameters('baseName')]",
89-
"hsmApiVersion": "2021-04-01-preview",
90-
"hsmName": "[concat(parameters('baseName'), 'hsm')]",
9149
"mgmtApiVersion": "2019-04-01",
92-
"blobContainerName": "backup",
93-
"primaryAccountName": "[concat(parameters('baseName'), 'prim')]",
9450
"encryption": {
9551
"services": {
9652
"blob": {
@@ -180,152 +136,20 @@
180136
"enableSoftDelete": true,
181137
"softDeleteRetentionInDays": 7
182138
}
183-
},
184-
{
185-
"type": "Microsoft.KeyVault/managedHSMs",
186-
"apiVersion": "[variables('hsmApiVersion')]",
187-
"name": "[variables('hsmName')]",
188-
"condition": "[parameters('enableHsm')]",
189-
"location": "[parameters('hsmLocation')]",
190-
"sku": {
191-
"family": "B",
192-
"name": "Standard_B1"
193-
},
194-
"properties": {
195-
"tenantId": "[parameters('tenantId')]",
196-
"initialAdminObjectIds": "[union(array(parameters('testApplicationOid')), array(parameters('provisionerApplicationOid')))]",
197-
"enablePurgeProtection": false,
198-
"enableSoftDelete": true,
199-
"softDeleteRetentionInDays": 7,
200-
"publicNetworkAccess": "Enabled",
201-
"networkAcls": "[variables('networkAcls')]"
202-
}
203-
},
204-
{
205-
"type": "Microsoft.Storage/storageAccounts",
206-
"apiVersion": "[variables('mgmtApiVersion')]",
207-
"name": "[variables('primaryAccountName')]",
208-
"location": "[parameters('location')]",
209-
"sku": {
210-
"name": "Standard_RAGRS",
211-
"tier": "Standard"
212-
},
213-
"kind": "StorageV2",
214-
"properties": {
215-
"networkAcls": "[variables('networkAcls')]",
216-
"supportsHttpsTrafficOnly": true,
217-
"encryption": "[variables('encryption')]",
218-
"accessTier": "Hot"
219-
}
220-
},
221-
{
222-
"type": "Microsoft.Storage/storageAccounts/blobServices",
223-
"apiVersion": "2019-06-01",
224-
"name": "[concat(variables('primaryAccountName'), '/default')]",
225-
"dependsOn": [
226-
"[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]"
227-
],
228-
"sku": {
229-
"name": "Standard_RAGRS",
230-
"tier": "Standard"
231-
},
232-
"properties": {
233-
"cors": {
234-
"corsRules": []
235-
},
236-
"deleteRetentionPolicy": {
237-
"enabled": false
238-
}
239-
}
240-
},
241-
{
242-
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
243-
"apiVersion": "2019-06-01",
244-
"name": "[concat(variables('primaryAccountName'), '/default/', variables('blobContainerName'))]",
245-
"dependsOn": [
246-
"[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('primaryAccountName'), 'default')]",
247-
"[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]"
248-
],
249-
"properties": {
250-
"publicAccess": "None"
251-
}
252-
},
253-
{
254-
255-
"type": "Microsoft.Web/serverfarms",
256-
"apiVersion": "2020-12-01",
257-
"name": "[variables('attestationFarm')]",
258-
"condition": "[parameters('enableHsm')]",
259-
"location": "[parameters('location')]",
260-
"kind": "linux",
261-
"sku": {
262-
"name": "B1"
263-
},
264-
"properties": {
265-
"reserved": true
266-
}
267-
},
268-
{
269-
270-
"type": "Microsoft.Web/sites",
271-
"apiVersion": "2020-12-01",
272-
"name": "[variables('attestationSite')]",
273-
"condition": "[parameters('enableHsm')]",
274-
"dependsOn": [
275-
"[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]"
276-
],
277-
"location": "[parameters('location')]",
278-
"properties": {
279-
"httpsOnly": true,
280-
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]",
281-
"siteConfig": {
282-
"name": "[variables('attestationSite')]",
283-
"alwaysOn": true,
284-
"linuxFxVersion": "[variables('attestationUri')]",
285-
"appSettings": [
286-
{
287-
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
288-
"value": "false"
289-
}
290-
]
291-
}
292-
}
293139
}
294140
],
295141
"outputs": {
296142
"AZURE_KEYVAULT_URL": {
297143
"type": "string",
298144
"value": "[reference(variables('kvName')).vaultUri]"
299145
},
300-
"AZURE_MANAGEDHSM_URL": {
301-
"type": "string",
302-
"condition": "[parameters('enableHsm')]",
303-
"value": "[reference(variables('hsmName')).hsmUri]"
304-
},
305146
"KEYVAULT_SKU": {
306147
"type": "string",
307148
"value": "[reference(parameters('baseName')).sku.name]"
308149
},
309150
"CLIENT_OBJECTID": {
310151
"type": "string",
311152
"value": "[parameters('testApplicationOid')]"
312-
},
313-
"BLOB_STORAGE_ACCOUNT_NAME": {
314-
"type": "string",
315-
"value": "[variables('primaryAccountName')]"
316-
},
317-
"BLOB_PRIMARY_STORAGE_ACCOUNT_KEY": {
318-
"type": "string",
319-
"value": "[listKeys(variables('primaryAccountName'), variables('mgmtApiVersion')).keys[0].value]"
320-
},
321-
"BLOB_CONTAINER_NAME" : {
322-
"type": "string",
323-
"value": "[variables('blobContainerName')]"
324-
},
325-
"AZURE_KEYVAULT_ATTESTATION_URL": {
326-
"type": "string",
327-
"condition": "[parameters('enableHsm')]",
328-
"value": "[format('https://{0}/', reference(variables('attestationSite')).defaultHostName)]"
329153
}
330154
}
331155
}

0 commit comments

Comments
 (0)