Skip to content

Commit

Permalink
r/storage_share: exposing the resource_manager_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Mar 19, 2020
1 parent e1840a4 commit 36bfc53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ func resourceArmStorageShare() *schema.Resource {
},
},

"resource_manager_id": {
Type: schema.TypeString,
Computed: true,
},

"url": {
Type: schema.TypeString,
Computed: true,
Expand Down Expand Up @@ -227,6 +232,9 @@ func resourceArmStorageShareRead(d *schema.ResourceData, meta interface{}) error
return fmt.Errorf("Error flattening `acl`: %+v", err)
}

resourceManagerId := client.GetResourceManagerResourceID(storageClient.SubscriptionId, account.ResourceGroup, id.AccountName, id.ShareName)
d.Set("resource_manager_id", resourceManagerId)

return nil
}

Expand Down
3 changes: 3 additions & 0 deletions website/docs/r/storage_share.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ A `access_policy` block supports the following:
The following attributes are exported in addition to the arguments listed above:

* `id` - The ID of the File Share.

* `resource_manager_id` - The Resource Manager ID of this File Share.

* `url` - The URL of the File Share

## Timeouts
Expand Down

0 comments on commit 36bfc53

Please sign in to comment.