-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_storage_account - support for the multichannel_enabled
property
#17999
Conversation
25598a2
to
e817551
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alexwilcox9 - seems like we need to enable a feature on the storage account?
------- Stdout: -------
=== RUN TestAccAzureRMStorageAccount_shareProperties
=== PAUSE TestAccAzureRMStorageAccount_shareProperties
=== CONT TestAccAzureRMStorageAccount_shareProperties
testcase.go:110: Step 1/2 error: Error running apply: exit status 1
Error: updating Azure Storage Account `share_properties` "unlikely23exst2acct1rvfl": storage.FileServicesClient#SetServiceProperties: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="FeatureNotSupportedOnStorageAccount" Message="Feature is not supported on this storage account.\nRequestId:b45ca9e4-501a-001b-7d40-c17878000000\nTime:2022-09-05T15:59:49.6466540Z"
with azurerm_storage_account.test,
on terraform_plugin_test.tf line 11, in resource "azurerm_storage_account" "test":
11: resource "azurerm_storage_account" "test" {
--- FAIL: TestAccAzureRMStorageAccount_shareProperties (96.13s)
FAIL
- could you document how to do this in the docs?
e817551
to
3d49f6e
Compare
Hi @katbyte What's confusing me now is why it complained for that test in particular as multichannel isn't enabled in that test. From a quick test it seems if you send a storage.Multichannel block on a Standard storage account it complains. Even if enabled is set to False Have you got any tips on how to get around this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to handle the non premium account situation, so likely what needs to happen is the correct handling if the API return value in that situation
3d49f6e
to
98ebdc8
Compare
98ebdc8
to
6b28c8f
Compare
6b28c8f
to
9117722
Compare
Hi @katbyte |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
THanks @alexwilcox9! LGTM now 🍄
multichannel_enabled
property
This functionality has been released in v3.25.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Hi,
I'd like to make use of multichannel SMB shares so thought I'd have a go at adding this functionality to the storage account resource.
#13715
==> Checking that code complies with gofmt requirements... ==> Checking that Custom Timeouts are used... ==> Checking that acceptance test packages are used... TF_ACC=1 go test -v ./internal/services/storage -run=TestAccStorageAccount_smbMultichannel -timeout 60m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc" === RUN TestAccStorageAccount_smbMultichannel === PAUSE TestAccStorageAccount_smbMultichannel === CONT TestAccStorageAccount_smbMultichannel --- PASS: TestAccStorageAccount_smbMultichannel (348.15s) PASS ok github.com/hashicorp/terraform-provider-azurerm/internal/services/storage 348.644s