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 api versions #1626

Merged
merged 6 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from 5 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": "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
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
21 changes: 10 additions & 11 deletions assets/resourceSnippets/Automation Runbook.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,23 @@
},
"resources": [
{
"name": "${1:parent/automationRunbook1}",
"name": "[concat('${1:parent}', '/', '${2:automationRunbook1}')]",
"type": "Microsoft.Automation/automationAccounts/runbooks",
"apiVersion": "2019-06-01",
"apiVersion": "2022-08-08",
"location": "[resourceGroup().location]",
"tags": {
},
"tags": {},
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', '${2:automationAccount1}')]"
"[resourceId('Microsoft.Automation/automationAccounts', '${3:automationAccount1}')]"
],
"properties": {
"logVerbose": /*${3|true,false|}*/ true,
"logProgress": /*${4|true,false|}*/ true,
"runbookType": /*${5|Script,Graph,PowerShellWorkflow,PowerShell,GraphPowerShellWorkflow,GraphPowerShell|}*/ "Script",
"logVerbose": /*${4|true,false|}*/ true,
"logProgress": /*${5|true,false|}*/ true,
"runbookType": /*${6|Script,Graph,PowerShellWorkflow,PowerShell,GraphPowerShellWorkflow,GraphPowerShell|}*/ "Script",
"publishContentLink": {
"uri": "${6:uri}",
"version": "${7:1.0.0.0}"
"uri": "${7:uri}",
"version": "${8:1.0.0.0}"
},
"description": "${8:description}"
"description": "${9:description}"
}
}
]
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
Loading