Dear community,
I have the following bicep code :
resource VmName_MmaAgentName 'Microsoft.Compute/virtualMachines/extensions@2021-11-01' = [for (customerData,i) in customersDatas: {
name: '${customerData.customerName}-winsrv/MMAExtension'
location: location
properties: {
autoUpgradeMinorVersion: true
protectedSettings: {
workspaceKey: log.listkeys().primarySharedKey
}
publisher: 'Microsoft.EnterpriseCloud.Monitoring'
settings: {
workspaceId: log.properties.customerId
azureResourceId: resourceId('${rgEnv}', 'Microsoft.Compute/virtualMachines', '${customerData.customerName}-winsrv')
}
type: 'MicrosoftMonitoringAgent'
typeHandlerVersion: '1.0.217.0' // az vm extension image list --location francecentral -p Microsoft.EnterpriseCloud.Monitoring -o table ==>none of the results working
}
}]
Result is the following:
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "InvalidParameter",
"message": "The value of parameter typeHandlerVersion is invalid."
},
{
"code": "InvalidParameter",
"message": "The value of parameter typeHandlerVersion is invalid."
}
]
}
But this is not working, tried different typeHandler version and syntaxes '1.0','1.*','1.0.217.0' and nothing works :(
I haven't any other idea to make it works...
Any help would be appreciated,
