diff --git a/builtin/providers/azurerm/resource_arm_storage_account.go b/builtin/providers/azurerm/resource_arm_storage_account.go index 4a4e73945..2d01952cf 100644 --- a/builtin/providers/azurerm/resource_arm_storage_account.go +++ b/builtin/providers/azurerm/resource_arm_storage_account.go @@ -223,8 +223,8 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err } accessKeys := *keys.Keys - d.Set("primary_access_key", accessKeys[0].KeyName) - d.Set("secondary_access_key", accessKeys[1].KeyName) + d.Set("primary_access_key", accessKeys[0].Value) + d.Set("secondary_access_key", accessKeys[1].Value) d.Set("location", resp.Location) d.Set("account_type", resp.Sku.Name) d.Set("primary_location", resp.Properties.PrimaryLocation)