Skip to content

Commit

Permalink
azurerm_storage_account - Fix a bug in customer_managed_key updat…
Browse files Browse the repository at this point in the history
…e logic (hashicorp#25172)

Co-authored-by: Zhaoting Weng <zhwen@microsoft.com>
  • Loading branch information
magodo and wenzhihua authored Mar 7, 2024
1 parent fd08feb commit da8f524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/storage/storage_account_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,7 @@ func resourceStorageAccountUpdate(d *pluginsdk.ResourceData, meta interface{}) e
}

if d.HasChange("customer_managed_key") {
props.Encryption, err = expandStorageAccountCustomerManagedKey(ctx, keyVaultClient, id.StorageAccountName, d.Get("customer_managed_key").([]interface{}))
props.Encryption, err = expandStorageAccountCustomerManagedKey(ctx, keyVaultClient, id.SubscriptionId, d.Get("customer_managed_key").([]interface{}))
if err != nil {
return err
}
Expand Down

0 comments on commit da8f524

Please sign in to comment.