Skip to content

Commit b697262

Browse files
committed
Use go-azure-sdk 2024-03-01/images in builder.
We would quite like support for StandardSSD_LRS for creating new VM images.
1 parent 7ef87d0 commit b697262

42 files changed

Lines changed: 64 additions & 64 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

builder/azure/arm/azure_client.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313

1414
"net/http"
1515

16-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
17-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
18-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/disks"
19-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots"
16+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks"
17+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/snapshots"
2018
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/galleryimages"
2119
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/galleryimageversions"
20+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
21+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
2222
"github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/secrets"
2323
"github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults"
2424
networks "github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01"

builder/azure/arm/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616

1717
"github.com/hashicorp/packer-plugin-azure/builder/azure/common/log"
1818

19-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
20-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots"
19+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/snapshots"
2120
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/galleryimages"
2221
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/galleryimageversions"
22+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
2323
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipaddresses"
2424
"github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts"
2525

builder/azure/arm/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import (
2424

2525
"github.com/hashicorp/packer-plugin-sdk/random"
2626

27-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
28-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
2927
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-07-03/galleryimageversions"
28+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
29+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
3030
"github.com/masterzen/winrm"
3131

3232
azcommon "github.com/hashicorp/packer-plugin-azure/builder/azure/common"

builder/azure/arm/config.hcl2spec.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builder/azure/arm/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212

1313
"github.com/google/go-cmp/cmp"
14-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
14+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
1515
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipaddresses"
1616
"github.com/hashicorp/packer-plugin-azure/builder/azure/common/constants"
1717
sdkconfig "github.com/hashicorp/packer-plugin-sdk/template/config"

builder/azure/arm/resource_resolver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"strings"
1717

1818
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
19-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
19+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
2020
)
2121

2222
type resourceResolver struct {

builder/azure/arm/step_capture_image.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import (
1010
"net/http"
1111

1212
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
13-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
14-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
15-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/disks"
13+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks"
14+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
15+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
1616
sdkclient "github.com/hashicorp/go-azure-sdk/sdk/client"
1717
"github.com/hashicorp/go-azure-sdk/sdk/client/pollers"
1818
"github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager"

builder/azure/arm/step_capture_image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"fmt"
99
"testing"
1010

11-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images"
12-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
11+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/images"
12+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
1313
"github.com/hashicorp/packer-plugin-azure/builder/azure/common"
1414
"github.com/hashicorp/packer-plugin-azure/builder/azure/common/constants"
1515
"github.com/hashicorp/packer-plugin-sdk/multistep"

builder/azure/arm/step_deploy_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313

1414
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
15-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
15+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
1616
"github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups"
1717
"github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/deploymentoperations"
1818
"github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/deployments"

builder/azure/arm/step_deploy_template_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/google/go-cmp/cmp"
1212
"github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
13-
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/virtualmachines"
13+
"github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines"
1414
"github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/deploymentoperations"
1515
"github.com/hashicorp/packer-plugin-azure/builder/azure/common"
1616
"github.com/hashicorp/packer-plugin-azure/builder/azure/common/constants"

0 commit comments

Comments
 (0)