Skip to content

Commit

Permalink
Merge pull request #16404 from magodo/storageaccount_ds_nfsv3_enabled
Browse files Browse the repository at this point in the history
`azurerm_storage_account` data source - Export `nfsv3_enabled`
  • Loading branch information
tombuildsstuff authored Apr 20, 2022
2 parents 8d61696 + b3d3388 commit 31ac75e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/services/storage/storage_account_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ func dataSourceStorageAccount() *pluginsdk.Resource {
Computed: true,
},

"nfsv3_enabled": {
Type: pluginsdk.TypeBool,
Computed: true,
},

"primary_location": {
Type: pluginsdk.TypeString,
Computed: true,
Expand Down Expand Up @@ -334,6 +339,7 @@ func dataSourceStorageAccountRead(d *pluginsdk.ResourceData, meta interface{}) e
d.Set("enable_https_traffic_only", props.EnableHTTPSTrafficOnly)
d.Set("min_tls_version", string(props.MinimumTLSVersion))
d.Set("is_hns_enabled", props.IsHnsEnabled)
d.Set("nfsv3_enabled", props.EnableNfsV3)
d.Set("allow_nested_items_to_be_public", props.AllowBlobPublicAccess)

if customDomain := props.CustomDomain; customDomain != nil {
Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/storage_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ output "storage_account_tier" {

* `is_hns_enabled` - Is Hierarchical Namespace enabled?

* `nfsv3_enabled` - Is NFSv3 protocol enabled?

* `custom_domain` - A `custom_domain` block as documented below.

* `tags` - A mapping of tags to assigned to the resource.
Expand Down

0 comments on commit 31ac75e

Please sign in to comment.