-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[StorageCache] Adding support for Import, AutoExport and AutoImport HSM Jobs #28524
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
base: main
Are you sure you want to change the base?
[StorageCache] Adding support for Import, AutoExport and AutoImport HSM Jobs #28524
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
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.
Pull Request Overview
This PR adds support for Import, AutoExport, and AutoImport HSM Jobs to the Azure PowerShell StorageCache module. The changes introduce comprehensive cmdlet support for managing these job types within AML filesystems.
- Adds complete CRUD operations for Import, AutoImport, and AutoExport jobs
- Updates existing AML filesystem cmdlets with new parameters for root squash settings and import prefixes
- Expands module exports to include new job management cmdlets
Reviewed Changes
Copilot reviewed 70 out of 76 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
Update-AzStorageCacheImportJob.md | Help documentation for updating import job instances |
Update-AzStorageCacheAutoImportJob.md | Help documentation for updating auto import job instances |
Update-AzStorageCacheAutoExportJob.md | Help documentation for updating auto export job instances |
Update-AzStorageCacheAmlFileSystem.md | Enhanced help with new root squash setting parameters |
Remove-AzStorageCacheImportJob.md | Help documentation for deleting import jobs |
Remove-AzStorageCacheAutoImportJob.md | Help documentation for deleting auto import jobs |
Remove-AzStorageCacheAutoExportJob.md | Help documentation for deleting auto export jobs |
New-AzStorageCacheImportJob.md | Help documentation for creating import jobs |
New-AzStorageCacheAutoImportJob.md | Help documentation for creating auto import jobs |
New-AzStorageCacheAutoExportJob.md | Help documentation for creating auto export jobs |
New-AzStorageCacheAmlFileSystem.md | Enhanced help with new root squash and import prefix parameters |
Get-AzStorageCacheImportJob.md | Help documentation for retrieving import jobs |
Get-AzStorageCacheAutoImportJob.md | Help documentation for retrieving auto import jobs |
Get-AzStorageCacheAutoExportJob.md | Help documentation for retrieving auto export jobs |
Az.StorageCache.md | Updated module overview with all new cmdlets |
Az.StorageCache.psd1 | Module manifest updated with new functions and dependency versions |
StorageCache.sln | Solution file project reference updates |
localEnv.json | Test environment configuration |
env.json | Test environment configuration updates |
Update-AzStorageCacheImportJob.Tests.ps1 | Test scaffolding for import job updates |
Update-AzStorageCacheAutoImportJob.Tests.ps1 | Comprehensive test coverage for auto import job updates |
Update-AzStorageCacheAutoImportJob.Recording.json | Test recording data for auto import job tests |
Update-AzStorageCacheAutoExportJob.Tests.ps1 | Comprehensive test coverage for auto export job updates |
Update-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myimportjob' -ResourceGroupName 'myresourcegroup' -ImportPrefix @('/newpath1', '/newpath2') | ||
``` | ||
|
||
Updates the specified import job with new import prefixes. |
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.
The example refers to an -ImportPrefix parameter that is not documented in the PARAMETERS section. Either add the parameter documentation or update the example to use documented parameters like -AdminStatus or -Tag.
Update-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myimportjob' -ResourceGroupName 'myresourcegroup' -ImportPrefix @('/newpath1', '/newpath2') | |
``` | |
Updates the specified import job with new import prefixes. | |
Update-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myimportjob' -ResourceGroupName 'myresourcegroup' -AdminStatus 'Active' -Tag @{Environment='Production'} |
Updates the specified import job by setting the administrative status to 'Active' and adding a tag.
Copilot uses AI. Check for mistakes.
### Example 1: Update an auto import job | ||
```powershell | ||
Update-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoimportjob' -ResourceGroupName 'myresourcegroup' -AutoImportPrefix @('/newpath1', '/newpath2') | ||
``` | ||
|
||
Updates the specified auto import job with new auto import prefixes. |
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.
The example refers to an -AutoImportPrefix parameter that is not documented in the PARAMETERS section. Either add the parameter documentation or update the example to use documented parameters like -AdminStatus or -Tag.
### Example 1: Update an auto import job | |
```powershell | |
Update-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoimportjob' -ResourceGroupName 'myresourcegroup' -AutoImportPrefix @('/newpath1', '/newpath2') | |
``` | |
Updates the specified auto import job with new auto import prefixes. | |
### Example 1: Update the administrative status of an auto import job | |
```powershell | |
Update-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoimportjob' -ResourceGroupName 'myresourcegroup' -AdminStatus 'Disable' |
Updates the specified auto import job by disabling it.
Copilot uses AI. Check for mistakes.
### Example 1: Update an auto export job | ||
```powershell | ||
Update-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -AutoExportPrefix @('/newpath1') | ||
``` | ||
|
||
Updates the specified auto export job with a new auto export prefix. |
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.
The example refers to an -AutoExportPrefix parameter that is not documented in the PARAMETERS section. Either add the parameter documentation or update the example to use documented parameters like -AdminStatus or -Tag.
### Example 1: Update an auto export job | |
```powershell | |
Update-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -AutoExportPrefix @('/newpath1') | |
``` | |
Updates the specified auto export job with a new auto export prefix. | |
### Example 1: Update the administrative status of an auto export job | |
```powershell | |
Update-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -AdminStatus 'Disable' |
Updates the specified auto export job by disabling it.
Copilot uses AI. Check for mistakes.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
a2d68ac
to
796d70c
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@VeryEarly |
Description
Adding support for Import, AutoExport and AutoImport HSM Jobs
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
[Y] Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.