question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not update storage file share smb properties

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az storage account file-service-properties update

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute 'smb'
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 200, in handler
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/storage/operations/account.py", line 693, in update_file_service_properties
AttributeError: 'NoneType' object has no attribute 'smb'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az storage account file-service-properties update --resource-group {} --account-name {} --versions {} --channel-encryption {} --auth-methods {} --kerb-ticket-encryption {}

Expected Behavior

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.28.0 *

Extensions:
azure-devops 0.18.0
connectedk8s 0.2.7
k8sconfiguration 0.2.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zoeperrymancommented, Jun 3, 2022

Getting the same problem, slightly different timing though.

I did a deployment this morning at 2022-06-03T01:51Z and this worked fine, a few hours later at 2022-06-03T04:23:34Z and we are getting the above error. (Edit: we are deploying to Australia South East). As far as I can see nothing in the environment changed, these are being run from an Azure DevOps Agent:

azure-cli                         2.37.0

core                              2.37.0
telemetry                          1.0.6

Extensions:
azure-devops                      0.25.0

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1

Running from my own laptop using the storage-preview extension of 0.7.4 (old version) worked fine, upgrading to 0.8.3 (the latest), or removing it completely and I get the above error message.

The specific command we are using (unsure if it matters):

az storage account file-service-properties update --resource-group <rg> --account-name <account> --enable-delete-retention true --delete-retention-days 7
0reactions
msftbot[bot]commented, Sep 2, 2022

Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found