Skip to content

Commit

Permalink
added prameter for recomendation name
Browse files Browse the repository at this point in the history
  • Loading branch information
noendscripting committed Jun 10, 2022
1 parent 4e2d162 commit f9b1740
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
"apiversion": {
"defaultValue": "[parameters('azureRestAPiVersion')]",
"type": "String"
},
"recomendationName": {
"defaultValue": "TLS should be updated to the latest version for function apps",
"type": "String"
}
},
"triggers": {
Expand All @@ -131,17 +135,19 @@
"Condition_match_recommendation_name": {
"actions": {

"HTTP_Add_System_Managed_Identity": {
"HTTP_Set_Minimum_TLS_version_1.2": {
"runAfter": {},
"type": "Http",
"inputs": {
"authentication": {
"audience": "https://management.azure.com",
"type": "ManagedServiceIdentity"
},
"body": {
"identity": {
"type": "SystemAssigned"
"body":{
"properties": {
"siteConfig": {
"minTlsVersion": "1.2"
}
}
},
"method": "PATCH",
Expand All @@ -166,10 +172,10 @@
},
"expression": {
"and": [
{
{
"equals": [
"@triggerBody()?['properties']?['displayName']",
"Managed identity should be used in function apps"
"@parameters('recomendationName')"
]
}
]
Expand Down

0 comments on commit f9b1740

Please sign in to comment.