Skip to content

Commit

Permalink
Use arm template parameters as sole input for live test environment v…
Browse files Browse the repository at this point in the history
…ariables (#21693)
  • Loading branch information
benbp authored Nov 15, 2021
1 parent 23e8d52 commit 664855a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
13 changes: 12 additions & 1 deletion sdk/attestation/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
"description": "The location of the resource. By default, this is the same as the resource group."
}
},
"storageEndpointSuffix": {
"type": "string",
"defaultValue": "core.windows.net",
"metadata": {
"description": "The url suffix to use when accessing the storage data plane."
}
},
"isolatedSigningCertificate": {
"type": "string",
"defaultValue": ""
Expand Down Expand Up @@ -47,7 +54,7 @@
"type": "Microsoft.Attestation/attestationProviders",
"apiVersion": "2020-10-01",
"name": "[variables('aadTenantName')]",
"location": "[parameters('location')]",
"location": "[parameters('location')]"
},
{
"type": "Microsoft.Attestation/attestationProviders",
Expand All @@ -58,6 +65,10 @@
}
],
"outputs": {
"ATTESTATION_STORAGE_ENDPOINT_SUFFIX": {
"type": "string",
"value": "[parameters('storageEndpointSuffix')]"
},
"ATTESTATION_ISOLATED_URL": {
"type": "string",
"value": "[variables('isolatedUri')]"
Expand Down
11 changes: 11 additions & 0 deletions sdk/keyvault/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@
"metadata": {
"description": "Test attestation service for Secure Key Release."
}
},
"storageEndpointSuffix": {
"type": "string",
"defaultValue": "core.windows.net",
"metadata": {
"description": "The url suffix to use when accessing the storage data plane."
}
}
},
"variables": {
Expand Down Expand Up @@ -273,6 +280,10 @@
"type": "string",
"value": "[parameters('testApplicationOid')]"
},
"KEYVAULT_STORAGE_ENDPOINT_SUFFIX": {
"type": "string",
"value": "[parameters('storageEndpointSuffix')]"
},
"BLOB_STORAGE_ACCOUNT_NAME": {
"type": "string",
"value": "[variables('primaryAccountName')]"
Expand Down
13 changes: 12 additions & 1 deletion sdk/tables/test-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
"metadata": {
"description": "The principal to assign the role to. This is application object id."
}
},
"tablesStorageEndpointSuffix": {
"type": "string",
"defaultValue": "core.windows.net",
"metadata": {
"description": "The url suffix to use when accessing the storage data plane."
}
}
},
"variables": {
Expand Down Expand Up @@ -107,6 +114,10 @@
}
],
"outputs": {
"TABLES_STORAGE_ENDPOINT_SUFFIX": {
"type": "string",
"value": "[parameters('tablesStorageEndpointSuffix')]"
},
"TABLES_STORAGE_ACCOUNT_NAME": {
"type": "string",
"value": "[variables('primaryAccountName')]"
Expand All @@ -124,4 +135,4 @@
"value": "[listKeys(resourceId('Microsoft.DocumentDB/databaseAccounts', variables('primaryAccountName')), '2020-04-01').primaryMasterKey]"
}
}
}
}

0 comments on commit 664855a

Please sign in to comment.