Skip to content

Commit

Permalink
Azure Templates | Modify MDS and Management template to support IAM
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-bennym committed Dec 24, 2024
1 parent 5705ab4 commit 1e43055
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 deletions.
20 changes: 20 additions & 0 deletions azure/templates/marketplace-management/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,25 @@
]
}
},
{
"name": "identityAccessManagement" ,
"type": "Microsoft.Common.OptionsGroup",
"label": "Create a System Assigned Identity",
"toolTip": "Automatically create a Service Principal for this deployment.",
"defaultValue": "Yes",
"constraints": {
"allowedValues": [
{
"label": "Yes",
"value": true
},
{
"label": "No",
"value": false
}
]
}
},
{
"name": "InfoVMDiskSpace",
"type": "Microsoft.Common.InfoBox",
Expand Down Expand Up @@ -770,6 +789,7 @@
"installationType": "[steps('chkp-advanced').installationType]",
"bootstrapScript": "[steps('chkp-advanced').bootstrapScript]",
"allowDownloadFromUploadToCheckPoint": "[coalesce(steps('chkp-advanced').allowUploadDownload, 'true')]",
"msi" : "[steps('chkp-advanced').identityAccessManagement]",
"additionalDiskSizeGB": "[int(steps('chkp-advanced').additionalDiskSizeGB)]",
"diskType": "[if(contains('R81.10' , steps('chkp-advanced').cloudGuardVersion) , steps('chkp-advanced').VMDiskTypeOldVersions , steps('chkp-advanced').VMDiskType)]",
"sourceImageVhdUri": "[coalesce(steps('chkp-advanced').sourceImageVhdUri, 'noCustomUri')]",
Expand Down
2 changes: 1 addition & 1 deletion azure/templates/marketplace-management/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
},
"msi": {
"type": "bool",
"defaultValue": false,
"defaultValue": true,
"metadata": {
"description": "Configure managed service identity for the VM"
}
Expand Down
11 changes: 6 additions & 5 deletions azure/templates/marketplace-mds/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,18 +416,18 @@
"visible": "[not(equals(steps('chkp-advanced').installationType, 'mds-logserver'))]",
"name": "identityAccessManagement" ,
"type": "Microsoft.Common.OptionsGroup",
"label": "Configure managed service identity for the VM",
"defaultValue": "No",
"toolTip": "IAM authentication can be configured to allow access to other resources who have a managed identity.",
"label": "Create a System Assigned Identity",
"toolTip": "Automatically create a Service Principal for this deployment.",
"defaultValue": "Yes",
"constraints": {
"allowedValues": [
{
"label": "Yes",
"value": "true"
"value": true
},
{
"label": "No",
"value": "false"
"value": false
}
]
}
Expand Down Expand Up @@ -697,6 +697,7 @@
"installationType": "[steps('chkp-advanced').installationType]",
"bootstrapScript": "[steps('chkp-advanced').bootstrapScript]",
"allowDownloadFromUploadToCheckPoint": "[coalesce(steps('chkp-advanced').allowUploadDownload, 'true')]",
"msi" : "[steps('chkp-advanced').identityAccessManagement]",
"additionalDiskSizeGB": "[int(steps('chkp-advanced').additionalDiskSizeGB)]",
"diskType": "[if(contains('R81.10' , steps('chkp').cloudGuardVersion) , steps('chkp-advanced').VMDiskTypeOldVersions , steps('chkp-advanced').VMDiskType)]",
"sourceImageVhdUri": "[coalesce(steps('chkp-advanced').sourceImageVhdUri, 'noCustomUri')]",
Expand Down
2 changes: 1 addition & 1 deletion azure/templates/marketplace-mds/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
},
"msi": {
"type": "bool",
"defaultValue": false,
"defaultValue": true,
"metadata": {
"description": "Configure managed service identity for the VM"
}
Expand Down

0 comments on commit 1e43055

Please sign in to comment.