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

azurerm_iothub_device_update_account- sku forces new #24324

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -21,9 +21,7 @@ import (

type IotHubDeviceUpdateAccountResource struct{}

var (
_ sdk.ResourceWithUpdate = IotHubDeviceUpdateAccountResource{}
)
var _ sdk.ResourceWithUpdate = IotHubDeviceUpdateAccountResource{}

type IotHubDeviceUpdateAccountModel struct {
Name string `tfschema:"name"`
Expand Down Expand Up @@ -58,6 +56,7 @@ func (r IotHubDeviceUpdateAccountResource) Arguments() map[string]*pluginsdk.Sch

"sku": {
Type: pluginsdk.TypeString,
ForceNew: true,
Optional: true,
Default: deviceupdates.SKUStandard,
ValidateFunc: validation.StringInSlice([]string{
Expand Down Expand Up @@ -255,10 +254,6 @@ func (r IotHubDeviceUpdateAccountResource) Update() sdk.ResourceFunc {
existing.Properties.PublicNetworkAccess = &publicNetworkAccess
}

if metadata.ResourceData.HasChange("sku") {
existing.Properties.Sku = &model.Sku
}

if metadata.ResourceData.HasChange("tags") {
existing.Tags = &model.Tags
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The following arguments are supported:

* `public_network_access_enabled` - (Optional) Specifies whether the public network access is enabled for the IoT Hub Device Update Account. Possible values are `true` and `false`. Defaults to `true`.

* `sku` - (Optional) Sku of the IoT Hub Device Update Account. Possible values are `Free` and `Standard`. Defaults to `Standard`.
* `sku` - (Optional) Sku of the IoT Hub Device Update Account. Possible values are `Free` and `Standard`. Defaults to `Standard`. Changing this forces a new resource to be created.

* `tags` - (Optional) A mapping of tags which should be assigned to the IoT Hub Device Update Account.

Expand Down
Loading