Skip to content

Commit

Permalink
Update snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Weatherford authored and Stephen Weatherford committed Aug 24, 2023
1 parent 09bea85 commit dd3f792
Show file tree
Hide file tree
Showing 61 changed files with 73 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:appServicePlan1}",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2020-12-01",
"apiVersion": "2022-09-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "F1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"resources": [
{
"type": "Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"name": "${1:applicationGatewayFirewallName}",
"location": "[resourceGroup().location]",
"dependsOn": [
Expand All @@ -33,7 +33,7 @@
},
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"name": "${9:applicationGatewayName}",
"location": "[resourceGroup().location]",
"dependsOn": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Application Gateway.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"resources": [
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"name": "${1:applicationGatewayName}",
"location": "[resourceGroup().location]",
"dependsOn": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:appInsights1}-${2:appServicePlan1}-AutoScaleSettings",
"type": "Microsoft.Insights/autoscalesettings",
"apiVersion": "2014-04-01",
"apiVersion": "2022-10-01",
"location": "East US",
"tags": {
"[concat('hidden-link:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/${2:appServicePlan1}')]": "Resource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:applicationSecurityGroup1}",
"type": "Microsoft.Network/applicationSecurityGroups",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Account.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:automationAccount1}",
"type": "Microsoft.Automation/automationAccounts",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"name": "${1:parent/automationCertificate}",
"type": "Microsoft.Automation/automationAccounts/certificates",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
],
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Credential.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:parent/automationCredential}",
"type": "Microsoft.Automation/automationAccounts/credentials",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:parent/automationJobSchedule1}",
"type": "Microsoft.Automation/automationAccounts/jobSchedules",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Module.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "[concat('${2:automationAccount1}', '/${1:automationVariable1}')]",
"type": "Microsoft.Automation/automationAccounts/modules",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
],
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Runbook.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:parent/automationRunbook1}",
"type": "Microsoft.Automation/automationAccounts/runbooks",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Schedule.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:parent/automationSchedule1}",
"type": "Microsoft.Automation/automationAccounts/schedules",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"tags": {
},
"dependsOn": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Automation Variable.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:parent/automationVariable1}",
"type": "Microsoft.Automation/automationAccounts/variables",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
],
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Availability Set.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:availabilitySet1}",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2021-03-01",
"apiVersion": "2023-03-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${1:availabilitySet1}"
Expand Down
4 changes: 2 additions & 2 deletions assets/resourceSnippets/Azure Firewall.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:firewall1}",
"type": "Microsoft.Network/azureFirewalls",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down Expand Up @@ -126,7 +126,7 @@
{
"name": "${34:publicIPAddress1}",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "standard"
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Container Group.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:containerGroup1}",
"type": "Microsoft.ContainerInstance/containerGroups",
"apiVersion": "2021-03-01",
"apiVersion": "2023-05-01",
"location": "[resourceGroup().location]",
"properties": {
"containers": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Container Registry.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:containerRegistry1}",
"type": "Microsoft.ContainerRegistry/registries",
"apiVersion": "2019-05-01",
"apiVersion": "2023-07-01",
"location": "[resourceGroup().location]",
"sku": {
"name": /*${2|Classic,Basic,Standard,Premium|}*/ "Classic"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:cosmosDbAccount1}",
"type": "Microsoft.DocumentDB/databaseAccounts",
"apiVersion": "2021-05-15",
"apiVersion": "2023-04-15",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Function.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:functionName}",
"type": "Microsoft.Web/sites",
"apiVersion": "2020-12-01",
"apiVersion": "2022-09-01",
"location": "[resourceGroup().location]",
"kind": "functionapp",
"dependsOn": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/KeyVault Secret.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:keyVault1}/${2:keyVaultSecret1}",
"type": "Microsoft.KeyVault/vaults/secrets",
"apiVersion": "2019-09-01",
"apiVersion": "2023-02-01",
"properties": {
"value": "${3:secretValue}"
}
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/KeyVault.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:keyVault1}",
"type": "Microsoft.KeyVault/vaults",
"apiVersion": "2019-09-01",
"apiVersion": "2023-02-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${1:keyVault1}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:aksCluster1}",
"type": "Microsoft.ContainerService/managedClusters",
"apiVersion": "2021-05-01",
"apiVersion": "2023-01-01",
"location": "[resourceGroup().location]",
"properties": {
"kubernetesVersion": "${2|1.15.7,1.15.5,1.14.8|}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:linkedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"apiVersion": "2022-09-01",
"properties": {
"mode": "Incremental",
"templateLink": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:linkedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"apiVersion": "2022-09-01",
"properties": {
"mode": "Incremental",
"templateLink": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:ubuntuVM1}/${2:customScript1}",
"type": "Microsoft.Compute/virtualMachines/extensions",
"apiVersion": "2021-03-01",
"apiVersion": "2023-03-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${2:customScript1} for Linux VM"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:loadBalancerExternal1}",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', '${2:publicIP1}')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:loadBalancerInternal1}",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', '${2:virtualNetwork1}')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:logAnalyticsWorkspace1}",
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2020-10-01",
"apiVersion": "2021-06-01",
"location": "[resourceGroup().location]",
"properties": {
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:managedIdentity1}",
"type": "Microsoft.ManagedIdentity/userAssignedIdentities",
"apiVersion": "2018-11-30",
"apiVersion": "2023-01-31",
"location": "[resourceGroup().location]"
}
]
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Media Services.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:mediaServices1}",
"type": "Microsoft.Media/mediaServices",
"apiVersion": "2018-07-01",
"apiVersion": "2023-01-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', '${2:mediaServiceStorageAccount1}')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:nestedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"apiVersion": "2022-09-01",
"properties": {
"expressionEvaluationOptions": {
"scope": "inner"
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Nested Deployment.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:nestedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"apiVersion": "2022-09-01",
"properties": {
"mode": "Incremental",
"template": {
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Network Interface.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:networkInterface1}",
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${1:networkInterface1}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:networkSecurityGroupRuleName}",
"type": "Microsoft.Network/networkSecurityGroups/securityRules",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"properties": {
"description": "${2:nsgRuleDescription}",
"protocol": /*${3|*,Ah,Esp,Icmp,Tcp,Udb|}*/ "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:networkSecurityGroup1}",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"properties": {
"securityRules": [
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Public IP Address.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:publicIPAddress1}",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${1:publicIPAddress1}"
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Public IP Prefix.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:publicIPPrefix1}",
"type": "Microsoft.Network/publicIPPrefixes",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:recoveryServiceVault1}",
"type": "Microsoft.RecoveryServices/vaults",
"apiVersion": "2021-03-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"sku": {
"name": /*${2|RS0,Standard|}*/ "RS0",
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Redis Cache.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:redisCache1}",
"type": "Microsoft.Cache/Redis",
"apiVersion": "2020-12-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "${1:redisCache1}"
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Resource Group.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:resourceGroup}",
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2021-05-01",
"apiVersion": "2022-09-01",
"location": "${2:eastus}",
"dependsOn": [
],
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Route Table Route.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:route-name}",
"type": "Microsoft.Network/routeTables/routes",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"properties": {
"addressPrefix": "${2:address-prefix}",
"nextHopType": /*${3|VirtualNetworkGateway,VnetLocal,Internet,VirtualAppliance,None|}*/ "VirtualNetworkGateway",
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Route Table.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:routeTable1}",
"type": "Microsoft.Network/routeTables",
"apiVersion": "2020-11-01",
"apiVersion": "2023-04-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
Loading

0 comments on commit dd3f792

Please sign in to comment.