简体   繁体   English

无法使用 Azure python SDK 提取正确信息或更新存储帐户

[英]Can't pull proper information with Azure python SDK or update storage account

I am trying to update Azure storage accounts through the Azure python SDK.我正在尝试通过 Azure python ZF20E3C5E54C0AB93D375D66066666 更新 Azure 存储帐户I follow the documentation and can authenticate against Azure just fine.我按照文档进行操作,可以对 Azure 进行身份验证。

However when I run code to update the parameters of the storage account I get the following error: 'minimum_tls_version is not a known attribute of class <class 'azure.mgmt.storage.v2019_06_01.models._models_py3.StorageAccountUpdateParameters'> and will be ignored'但是,当我运行代码来更新存储帐户的参数时,出现以下错误:'minimum_tls_version 不是 class <class 'azure.mgmt.storage.v2019_06_01.models._models_py3.StorageAccountUpdateParameters'> 的已知属性,将被忽略'

reference from microsoft saying it should exist: https://docs.microsoft.com/en-us/python/api/azure-mgmt-storage/azure.mgmt.storage.v2019_06_01.models.storageaccountupdateparameters?view=azure-python来自微软的参考说它应该存在: https://docs.microsoft.com/en-us/python/api/azure-mgmt-storage/azure.mgmt.storage.v2019_06_01.models.storageaccountupdateparameters?view=azure-python

Code in question: storage_account = self.storage.storage_accounts.update(resource_group, storage_account_name, StorageAccountUpdateParameters(enable_https_traffic_only=True, minimum_tls_version='TLS1_1' ))有问题的代码: storage_account = self.storage.storage_accounts.update(resource_group, storage_account_name, StorageAccountUpdateParameters(enable_https_traffic_only=True, minimum_tls_version='TLS1_1' ))

Any help or direction is appreciate.任何帮助或方向表示赞赏。

This parameter is a new parameter released in version 11.1.0 release on 2020-6-22.该参数是2020-6-22 11.1.0版本发布的新参数。 Any chance you are using an old package?您是否有机会使用旧的 package? The doc would show the latest one only.该文档将仅显示最新的。

ChangeLog is available on PyPI: https://pypi.org/project/azure-mgmt-storage/ PyPI 上提供了 ChangeLog: https://pypi.org/project/azure-mgmt-storage/

(I work at MS in the SDK team) (我在 SDK 团队的 MS 工作)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM