Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snippet apiversions #1727

Merged
merged 2 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:appServicePlan1}",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2022-09-01",
"apiVersion": "2023-01-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": "2023-04-01",
"apiVersion": "2023-11-01",
"name": "${1:applicationGatewayFirewallName}",
"location": "[resourceGroup().location]",
"dependsOn": [
Expand All @@ -33,7 +33,7 @@
},
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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:applicationSecurityGroup1}",
"type": "Microsoft.Network/applicationSecurityGroups",
"apiVersion": "2023-04-01",
"apiVersion": "2023-11-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": "2022-08-08",
"apiVersion": "2023-11-01",
"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": "2022-08-08",
"apiVersion": "2023-11-01",
"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/automationCredential}",
"type": "Microsoft.Automation/automationAccounts/credentials",
"apiVersion": "2022-08-08",
"apiVersion": "2023-11-01",
"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": "2022-08-08",
"apiVersion": "2023-11-01",
"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": "2022-08-08",
"apiVersion": "2023-11-01",
"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": "[concat('${1:parent}', '/', '${2:automationRunbook1}')]",
"type": "Microsoft.Automation/automationAccounts/runbooks",
"apiVersion": "2022-08-08",
"apiVersion": "2023-11-01",
"location": "[resourceGroup().location]",
"tags": {},
"dependsOn": [
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": "2022-08-08",
"apiVersion": "2023-11-01",
"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": "2022-08-08",
"apiVersion": "2023-11-01",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
],
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": "2023-04-01",
"apiVersion": "2023-11-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down Expand Up @@ -126,7 +126,7 @@
{
"name": "${34:publicIPAddress1}",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2023-04-01",
"apiVersion": "2023-11-01",
"location": "[resourceGroup().location]",
"sku": {
"name": "standard"
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": "2023-04-15",
"apiVersion": "2023-11-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": "2022-09-01",
"apiVersion": "2023-01-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": "2023-02-01",
"apiVersion": "2023-07-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": "2023-02-01",
"apiVersion": "2023-07-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": "2023-01-01",
"apiVersion": "2024-02-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": "2022-09-01",
"apiVersion": "2024-03-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": "2022-09-01",
"apiVersion": "2024-03-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:loadBalancerExternal1}",
"type": "Microsoft.Network/loadBalancers",
"apiVersion": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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": "2021-06-01",
"apiVersion": "2023-09-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:nestedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2022-09-01",
"apiVersion": "2024-03-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": "2022-09-01",
"apiVersion": "2024-03-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2024-02-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": "2023-04-01",
"apiVersion": "2023-08-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": "2022-09-01",
"apiVersion": "2024-03-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": "2023-04-01",
"apiVersion": "2023-11-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": "2023-04-01",
"apiVersion": "2023-11-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/Storage Account.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:storageaccount1}",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2023-01-01",
"apiVersion": "2023-04-01",
"tags": {
"displayName": "${1:storageaccount1}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:accountName}/default/${2:blobContainerName}",
"type": "Microsoft.Storage/storageAccounts/blobServices/containers",
"apiVersion": "2023-01-01",
"apiVersion": "2023-04-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', '${1:accountName}')]"
],
Expand Down
Loading