Description
stringclasses
8 values
IaC
stringclasses
15 values
Enable Azure Sentinel
{"name": "[variables('omssolutions').customsolution.solutionname]", "type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "location": "[parameters('workspaceregionid')]", "dependson": ["[resourceid('microsoft.operationalinsights/workspaces/", parameters('workspacename'))]", "[resourceid('microsoft.operationalinsights/workspaces/views/", parameters('workspacename'), variables('omssolutions').customsolution.name)]"], "plan": {"name": "[variables('omssolutions').customsolution.solutionname]", "product": "[variables('omssolutions').customsolution.name]", "publisher": "[variables('omssolutions').customsolution.publisher]", "promotioncode": ""}, "properties": {"workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces/", parameters('workspacename'))]", "containedresources": ["[resourceid('microsoft.operationalinsights/workspaces/views/", parameters('workspacename'), variables('omssolutions').customsolution.name)]"]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachinescalesets", "apiversion": "2019-03-01", "name": "[parameters('vmssname')]", "location": "[parameters('location')]", "tags": {"vmsstag": "automaticrepairs"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('lbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]"], "sku": {"name": "[parameters('vmsku')]", "tier": "standard", "capacity": "[parameters('instancecount')]"}, "properties": {"upgradepolicy": {"mode": "manual"}, "automaticrepairspolicy": {"enabled": true, "graceperiod": "pt30m"}, "virtualmachineprofile": {"storageprofile": {"imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "vmss", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "extensionprofile": {"extensions": [{"name": "customscripttoinstallapache", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('install_apache.sh", parameters('_artifactslocationsastoken')))]"], "commandtoexecute": "sh install_apache.sh"}}}]}, "networkprofile": {"healthprobe": {"id": "[resourceid('microsoft.network/loadbalancers/probes/", variables('lbname'), variables('probename'))]"}, "networkinterfaceconfigurations": [{"name": "nic1", "properties": {"primary": true, "ipconfigurations": [{"name": "ip1", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('subnetname'))]"}, "loadbalancerbackendaddresspools": [{"id": "[variables('bepoolid')]"}], "publicipaddressconfiguration": {"name": "pub1", "properties": {"idletimeoutinminutes": 15}}}}]}}]}}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "[parameters('windowsosversion')]", "version": "latest"}, "osdisk": {"createoption": "fromimage"}, "datadisks": [{"disksizegb": 1023, "lun": 0, "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))).primaryendpoints.blob]"}}}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]"]}
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "[variables('chefbeavailname')]", "type": "microsoft.compute/availabilitysets", "location": "[resourcegroup().location]", "apiversion": "2017-12-01", "dependson": [], "tags": {"displayname": "beavailset", "provider": "[variables('tagvalues').provider]"}, "sku": {"name": "aligned"}, "properties": {"platformupdatedomaincount": 3, "platformfaultdomaincount": 3}}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs", "tier": "standard"}, "kind": "storagev2", "properties": {"accesstier": "hot"}}{"type": "microsoft.storage/storageaccounts/fileservices/shares", "apiversion": "2019-06-01", "name": "[concat(parameters('storageaccountname'), "/default/", parameters('filesharename'))]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"]}
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth
{"type": "microsoft.authorization/roleassignments", "apiversion": "2020-04-01-preview", "scope": "[format('microsoft.network/networkprofiles/{0}", variables('networkprofilename'))]", "name": "[guid(variables('networkroledefinitionid'), parameters('azurecontainerinstanceoid'), variables('networkprofilename'))]", "properties": {"roledefinitionid": "[variables('networkroledefinitionid')]", "principalid": "[parameters('azurecontainerinstanceoid')]"}, "dependson": ["[resourceid('microsoft.network/networkprofiles", variables('networkprofilename'))]"]}{"type": "microsoft.authorization/roleassignments", "apiversion": "2020-04-01-preview", "scope": "[format('microsoft.relay/namespaces/{0}", parameters('relaynamespacename'))]", "name": "[guid(variables('contributorroledefinitionid'), parameters('azurecontainerinstanceoid'), parameters('relaynamespacename'))]", "properties": {"roledefinitionid": "[variables('contributorroledefinitionid')]", "principalid": "[parameters('azurecontainerinstanceoid')]"}, "dependson": ["[resourceid('microsoft.relay/namespaces", parameters('relaynamespacename'))]"]}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "location": "[parameters('location')]", "name": "[parameters('gw-availabilityset')]", "properties": {"platformupdatedomaincount": 20, "platformfaultdomaincount": 2}, "sku": {"name": "aligned"}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}{"apiversion": "2020-07-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('frontendnsgname')]", "location": "[parameters('location')]", "tags": {"displayname": "custom network security group"}, "properties": {"securityrules": [{"name": "default-allow-ssh", "properties": {"description": "allow ssh", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}, {"name": "default-allow-tomcat", "properties": {"description": "allow web/tomcat", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "80", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 1010, "direction": "inbound"}}, {"name": "default-allow-ftp", "properties": {"description": "allow ftp", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "21", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 1020, "direction": "inbound"}}, {"name": "default-allow-ftps", "properties": {"description": "allow ftps", "protocol": "*", "sourceportrange": "*", "destinationportrange": "13450-13454", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 1030, "direction": "inbound"}}]}}{"apiversion": "2020-07-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups/", variables('frontendnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnet1name')]", "properties": {"addressprefix": "[variables('subnet1prefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('frontendnsgname'))]"}}}]}}{"apiversion": "2020-07-01", "type": "microsoft.network/networkinterfaces", "name": "[variables('nicname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('publicipaddressname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/networksecuritygroups/", variables('frontendnsgname'))]"], "properties": {"networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('frontendnsgname'))]"}, "ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('publicipaddressname'))]"}, "subnet": {"id": "[variables('subnet1ref')]"}}}]}}
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "dependson": ["[variables('applicationgatewayuserdefinedmanagedidentityid')]", "[variables('aadpodidentityuserdefinedmanagedidentityid')]"], "properties": {"accesspolicies": [{"tenantid": "[reference(variables('applicationgatewayuserdefinedmanagedidentityid')).tenantid]", "objectid": "[reference(variables('applicationgatewayuserdefinedmanagedidentityid')).principalid]", "permissions": {"secrets": ["get", "list"], "certificates": ["get"]}}, {"tenantid": "[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).tenantid]", "objectid": "[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).principalid]", "permissions": {"secrets": ["get", "list"], "certificates": ["get"]}}], "sku": {"family": "a", "name": "standard"}, "tenantid": "[subscription().tenantid]", "networkacls": {"bypass": "azureservices", "defaultaction": "[parameters('keyvaultnetworkrulesetdefaultaction')]"}, "enabledfordeployment": false, "enabledfordiskencryption": false, "enabledfortemplatedeployment": false, "enablesoftdelete": false}, "resources": [{"type": "providers/diagnosticsettings", "apiversion": "2017-05-01-preview", "name": "microsoft.insights/default", "dependson": ["[variables('keyvaultid')]", "[variables('workspaceid')]"], "properties": {"workspaceid": "[variables('workspaceid')]", "logs": [{"category": "auditevent", "enabled": true}], "metrics": [{"category": "allmetrics", "enabled": true}]}}]}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2020-12-01", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('nicname')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "2016-datacenter", "version": "latest"}, "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",variables('nicname'))]"}]}}, "resources": [{"type": "extensions", "name": "customscriptextension", "apiversion": "2020-12-01", "location": "[parameters('location')]", "dependson": ["[variables('vmname')]"], "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.8", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat(variables('scriptfolder'),"/",variables('scriptfilename'), parameters('_artifactslocationsastoken')))]"], "commandtoexecute": "[concat('powershell -executionpolicy unrestricted -file ", variables('scriptfolder'), "/", variables('scriptfilename'), " ", variables('scriptparameters'))]"}}}]}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2016-04-30-preview", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('storageaccountname')]", "[variables('nicname')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('osversion')]", "version": "latest"}, "osdisk": {"caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"disksizegb": "[parameters('disksizegb')]", "lun": 0, "caching": "[parameters('datadiskhostcaching')]", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccountname'), "2021-01-01').primaryendpoints.blob]"}}}, "resources": [{"type": "extensions", "name": "customscriptextension", "apiversion": "2015-06-15", "dependson": ["[variables('vmname')]"], "location": "[parameters('location')]", "properties": {"publisher": "microsoft.ostcextensions", "type": "customscriptforlinux", "typehandlerversion": "1.5", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat(variables('scriptfolder'), "/", variables('testscriptfilename'), parameters('_artifactslocationsastoken')))]"], "commandtoexecute": "[concat('sudo bash ", variables('testscriptfilename'), " ", parameters('testsize'), " ", parameters('testtype'), " ", parameters('secondstoruntest'), " ", parameters('threadstoruntest'), " ", parameters('testblocksize'))]"}}}]}
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"apiversion": "2021-01-01", "type": "microsoft.storage/storageaccounts", "name": "[variables('newstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "[variables('subnetprefix')]"}}]}}{"apiversion": "2017-06-01", "name": "[variables('applicationgatewayname')]", "type": "microsoft.network/applicationgateways", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/publicipaddresses/", variables('publicipaddressname'))]", "webserver1", "webserver2"], "properties": {"sku": {"name": "[parameters('size')]", "tier": "standard", "capacity": "[parameters('capacity')]"}, "gatewayipconfigurations": [{"name": "appgatewayipconfig", "properties": {"subnet": {"id": "[variables('subnetref')]"}}}], "frontendipconfigurations": [{"name": "appgatewayfrontendip", "properties": {"publicipaddress": {"id": "[variables('publicipref')]"}}}], "frontendports": [{"name": "appgatewayfrontendport", "properties": {"port": 80}}], "backendaddresspools": [{"name": "appgatewaybackendpool", "properties": {"backendaddresses": [{"ipaddress": "[reference('webserver1').outputs.fqdn.value]"}, {"ipaddress": "[reference('webserver2').outputs.fqdn.value]"}]}}], "backendhttpsettingscollection": [{"name": "appgatewaybackendhttpsettings", "properties": {"port": 80, "protocol": "http", "cookiebasedaffinity": "[parameters('cookiebasedaffinity')]", "requesttimeout": 30, "requestroutingrules": [{"id": "[resourceid('microsoft.network/applicationgateways/requestroutingrules/",variables('applicationgatewayname'), "rule1')]"}]}}], "httplisteners": [{"name": "appgatewayhttplistener", "properties": {"frontendipconfiguration": {"id": "[resourceid('microsoft.network/applicationgateways/frontendipconfigurations/",variables('applicationgatewayname'), "appgatewayfrontendip')]"}, "frontendport": {"id": "[resourceid('microsoft.network/applicationgateways/frontendports/",variables('applicationgatewayname'), "appgatewayfrontendport')]"}, "protocol": "http"}}], "requestroutingrules": [{"name": "rule1", "properties": {"ruletype": "basic", "httplistener": {"id": "[resourceid('microsoft.network/applicationgateways/httplisteners/",variables('applicationgatewayname'), "appgatewayhttplistener')]"}, "backendaddresspool": {"id": "[resourceid('microsoft.network/applicationgateways/backendaddresspools/",variables('applicationgatewayname'), "appgatewaybackendpool')]"}, "backendhttpsettings": {"id": "[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection/",variables('applicationgatewayname'), "appgatewaybackendhttpsettings')]"}}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"comments": "default network security group for template", "type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "default-allow-3389", "properties": {"priority": 1000, "access": "allow", "direction": "inbound", "destinationportrange": "3389", "protocol": "tcp", "sourceaddressprefix": "*", "sourceportrange": "*", "destinationaddressprefix": "*"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-05-01", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('domainnamelabel')]"}}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "[variables('subnetprefix')]"}}]}}
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
33
Edit dataset card