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 to dotnet 8.0 and start picking up new schemas #1777

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
8 changes: 8 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@
"BREAK_ON_ASSERT": "",
"ALWAYS_ECHO_TEST_LOG": "" // If 1 or true, always immediately echos test log to console; otherwise test log is only echoed after a failed testcase
}
},
{
"type": "PowerShell",
"request": "launch",
"name": "Debug Update-ApiVersions",
"script": "${workspaceFolder}/tools/Update-ApiVersions.ps1",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to the "vscode-azurearmtools" extension will be documented in this file.

## Version 0.15.14

### Fixed

- Can't update to latest online schemas (have errors) [#1733](https://github.com/microsoft/vscode-azurearmtools/issues/1733)

### Changed

- Updated to dotnet 8.0
- Picked up newest schemas
- Update apiVersions in snippets

## Version 0.15.13 (Oct 31, 2024)

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:appServicePlan1}",
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2023-01-01",
"apiVersion": "2024-04-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-11-01",
"apiVersion": "2024-03-01",
"name": "${1:applicationGatewayFirewallName}",
"location": "[resourceGroup().location]",
"dependsOn": [
Expand All @@ -33,7 +33,7 @@
},
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-01",
"location": "[resourceGroup().location]",
"tags": {
},
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": "2023-03-01",
"apiVersion": "2024-07-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": "2023-11-01",
"apiVersion": "2024-03-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down Expand Up @@ -126,7 +126,7 @@
{
"name": "${34:publicIPAddress1}",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-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-11-15",
"apiVersion": "2024-08-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": "2023-01-01",
"apiVersion": "2024-04-01",
"location": "[resourceGroup().location]",
"kind": "functionapp",
"dependsOn": [
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 @@ -44,7 +44,7 @@
{
"type": "secrets",
"name": "${4:keyVaultSecret1}",
"apiVersion": "2016-10-01",
"apiVersion": "2023-07-01",
"dependsOn": [
"[resourceId('Microsoft.KeyVault/vaults', '${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": "2024-02-01",
"apiVersion": "2024-08-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": "2024-03-01",
"apiVersion": "2024-07-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": "2024-03-01",
"apiVersion": "2024-07-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": "2023-03-01",
"apiVersion": "2024-07-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": "2023-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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:nestedDeployment1}",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2024-03-01",
"apiVersion": "2024-07-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": "2024-03-01",
"apiVersion": "2024-07-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-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": "2024-02-01",
"apiVersion": "2024-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": "2023-08-01",
"apiVersion": "2024-03-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": "2024-03-01",
"apiVersion": "2024-08-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-11-01",
"apiVersion": "2024-03-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-11-01",
"apiVersion": "2024-03-01",
"location": "[resourceGroup().location]",
"tags": {
},
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/SQL Server.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"resources": [
{
"type": "firewallRules",
"apiVersion": "2014-04-01",
"apiVersion": "2021-11-01",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', '${1:sqlServer1}')]"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:serviceBusNamespace1}",
"type": "Microsoft.ServiceBus/namespaces",
"apiVersion": "2021-11-01",
"apiVersion": "2024-01-01",
"location": /*${2|[parameters('location')],[resourceGroup().location]|}*/ "location",
"sku": {
"name": "Standard"
Expand Down
2 changes: 1 addition & 1 deletion assets/resourceSnippets/ServiceBus Queue.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"name": "${1:serviceBusNamespace1}/${2:serviceBusQueue1}",
"type": "Microsoft.ServiceBus/namespaces/queues",
"apiVersion": "2021-11-01",
"apiVersion": "2024-01-01",
"dependsOn": [
"[resourceId('Microsoft.ServiceBus/namespaces', '${2:serviceBusQueue1}')]"
],
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-04-01",
"apiVersion": "2023-05-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-04-01",
"apiVersion": "2023-05-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', '${1:accountName}')]"
],
Expand Down
12 changes: 6 additions & 6 deletions assets/resourceSnippets/Ubuntu Virtual Machine.snippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"resources": [
{
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-01",
"name": "[variables('networkSecurityGroupName')]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -32,7 +32,7 @@
},
{
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-01",
"name": "[variables('publicIPAddressName')]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -45,7 +45,7 @@
{
"comments": "Simple Network Security Group for subnet [variables('vNetSubnetName')]",
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-01",
"name": "[variables('networkSecurityGroupName2')]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -68,7 +68,7 @@
},
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-01",
"name": "[variables('vNetName')]",
"location": "[parameters('location')]",
"dependsOn": [
Expand All @@ -95,7 +95,7 @@
},
{
"type": "Microsoft.Network/networkInterfaces",
"apiVersion": "2023-11-01",
"apiVersion": "2024-03-01",
"name": "[variables('networkInterfaceName')]",
"location": "[parameters('location')]",
"dependsOn": [
Expand All @@ -122,7 +122,7 @@
},
{
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2023-03-01",
"apiVersion": "2024-07-01",
"name": "[variables('vmName')]",
"location": "[parameters('location')]",
"dependsOn": [
Expand Down
Loading