Set resource_group_name when reading from API.

This commit is contained in:
Andreas Kyrris 2016-09-27 11:00:19 +01:00
parent e55852888a
commit e589fee01c
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func resourceArmPublicIpRead(d *schema.ResourceData, meta interface{}) error {
return nil
}
d.Set("resource_group_name", resGroup)
d.Set("location", resp.Location)
d.Set("name", resp.Name)
d.Set("public_ip_address_allocation", strings.ToLower(string(resp.Properties.PublicIPAllocationMethod)))

View File

@ -269,6 +269,7 @@ func resourceArmStorageAccountRead(d *schema.ResourceData, meta interface{}) err
}
accessKeys := *keys.Keys
d.Set("resource_group_name", resGroup)
d.Set("primary_access_key", accessKeys[0].Value)
d.Set("secondary_access_key", accessKeys[1].Value)
d.Set("location", resp.Location)