"encryption": {
"keyVaultProperties": {
"keyName": "string",
"keyVersion": "string",
"keyVaultUri": "string"
},
Can we achieve this with in the ARM template.
"encryption": {
"keyVaultProperties": {
"keyName": "string",
"keyVersion": "string",
"keyVaultUri": "string"
},
Can we achieve this with in the ARM template.
Yes you do this with ARM template. The following template allow you to add CMK and Vnet setting on an existing Speech resource. Before run this template, you need to create the KeyVault & Key, configure the access policy to allow system assigned identity of the Speech resource to have "read,wrap,unwrap" permissions for keys. For any resource, you can always use "Export template" from the resource menu in Azure Portal to export ARM template and make slight changes for the ARM template deployment.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"accounts_speech_name": {
"type": "String"
},
"keyvaultUri": {
"type": "String"
},
"keyName": {
"type": "String"
},
"keyVersion": {
"type": "String"
},
"virtualNetworks_cmk_test_externalid": {
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.CognitiveServices/accounts",
"apiVersion": "2017-04-18",
"name": "[parameters('accounts_speech_name')]",
"location": "eastus",
"sku": {
"name": "S0"
},
"kind": "SpeechServices",
"identity": {
"type": "SystemAssigned",
"userAssignedIdentities": {}
},
"properties": {
"customSubDomainName": "[parameters('accounts_speech_name')]",
"networkAcls": {
"defaultAction": "Deny",
"virtualNetworkRules": [
{
"id": "[concat(parameters('virtualNetworks_cmk_test_externalid'), '/subnets/default')]",
"ignoreMissingVnetServiceEndpoint": false
}
],
"ipRules": []
},
"encryption": {
"keySource": "Microsoft.Keyvault",
"keyVaultProperties": {
"keyName": "[parameters('keyName')]",
"keyVersion": "[parameters('keyVersion')]",
"keyVaultUri": "[parameters('keyVaultUri')]"
}
},
"privateEndpointConnections": [],
"publicNetworkAccess": "Enabled"
}
}
]
}
this is Darren from Microsoft Speech Services team. Thank you for your question. Please include more detailed information on what you are trying to build, as it is unclear to me. Is this about deploying a speech service as a Docker container to your environment? What is the CMK and Vnet integration used for? Once you provide more details, I will find the right folks to answer.