Conversation
…smb-encryption-in-transit` and `--require-nfs-encryption-in-transit`
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| storage account file-service-properties update | cmd storage account file-service-properties update added parameter require_nfs_encryption_in_transit |
||
| storage account file-service-properties update | cmd storage account file-service-properties update added parameter require_smb_encryption_in_transit |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
This PR adds support for separate encryption-in-transit requirements for SMB and NFS protocols in Azure Storage file service properties. Previously, there was only a general secure transfer requirement at the account level; this change allows granular control for different protocols.
Key changes:
- Added
--require-smb-encryption-in-transitand--require-nfs-encryption-in-transitparameters to theaz storage account file-service-properties updatecommand - Extended the backend implementation to handle NFS protocol settings alongside existing SMB settings
- Added comprehensive test coverage for the new parameters
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
_params.py |
Added parameter definitions for SMB and NFS encryption-in-transit flags with appropriate help text and short options |
operations/account.py |
Extended update_file_service_properties to initialize and configure NFS settings and handle encryption-in-transit for both protocols |
test_storage_account_scenarios.py |
Added comprehensive test case covering various combinations of the new parameters |
test_storage_account_file_smb_nfs_encryption_in_transit.yaml |
Added test recording for the new test case |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/storage/operations/account.py
Outdated
Show resolved
Hide resolved
…ount.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
az storage account file-service-properties update: Add `--require-smb-encryption-in-transit and --require-nfs-encryption-in-transitaz storage account file-service-properties update: Add --require-smb-encryption-in-transit and --require-nfs-encryption-in-transit
Related command
Description
Support separate settings to require secure transfer for REST API operations vs smb operations vs nfs operations
Testing Guide
History Notes
[Storage]
az storage account file-service-properties update: Add--require-smb-encryption-in-transitand--require-nfs-encryption-in-transitThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.