From 4f8c88b13265cc1139412191d342209a3fe96f45 Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Tue, 16 Sep 2025 10:08:23 +0000
Subject: [PATCH] [skip ci] Archive 8ef488983a2899b9a7fb05aaead498d26346287b
---
.../Az.StorageCache.format.ps1xml | 1212 ++-
.../Az.StorageCache.psd1 | 2 +-
.../Properties/AssemblyInfo.cs | 12 +-
.../Get-AzStorageCacheAmlFileSystem.ps1 | 3 +
.../Get-AzStorageCacheAutoExportJob.ps1 | 252 +
.../Get-AzStorageCacheAutoImportJob.ps1 | 252 +
.../exports/Get-AzStorageCacheImportJob.ps1 | 252 +
...oke-AzStorageCacheAmlFileSystemArchive.ps1 | 3 +
.../New-AzStorageCacheAmlFileSystem.ps1 | 53 +-
.../New-AzStorageCacheAutoExportJob.ps1 | 322 +
.../New-AzStorageCacheAutoImportJob.ps1 | 356 +
.../exports/New-AzStorageCacheImportJob.ps1 | 346 +
.../exports/ProxyCmdletDefinitions.ps1 | 4064 ++++++++-
.../Remove-AzStorageCacheAmlFileSystem.ps1 | 3 +
.../Remove-AzStorageCacheAutoExportJob.ps1 | 266 +
.../Remove-AzStorageCacheAutoImportJob.ps1 | 266 +
.../Remove-AzStorageCacheImportJob.ps1 | 266 +
...top-AzStorageCacheAmlFilesystemArchive.ps1 | 3 +
.../Update-AzStorageCacheAmlFileSystem.ps1 | 39 +-
.../Update-AzStorageCacheAutoExportJob.ps1 | 303 +
.../Update-AzStorageCacheAutoImportJob.ps1 | 303 +
.../Update-AzStorageCacheImportJob.ps1 | 302 +
.../StorageCache.Autorest/generate-info.json | 2 +-
.../api/Models/AmlFilesystem.PowerShell.cs | 56 +
.../generated/api/Models/AmlFilesystem.cs | 156 +-
.../AmlFilesystemHsmSettings.PowerShell.cs | 8 +
.../api/Models/AmlFilesystemHsmSettings.cs | 46 +-
.../Models/AmlFilesystemHsmSettings.json.cs | 10 +
.../AmlFilesystemProperties.PowerShell.cs | 56 +
.../api/Models/AmlFilesystemProperties.cs | 157 +-
.../Models/AmlFilesystemProperties.json.cs | 2 +
.../AmlFilesystemPropertiesHsm.PowerShell.cs | 8 +
.../api/Models/AmlFilesystemPropertiesHsm.cs | 43 +-
...FilesystemRootSquashSettings.PowerShell.cs | 196 +
...esystemRootSquashSettings.TypeConverter.cs | 148 +
.../Models/AmlFilesystemRootSquashSettings.cs | 151 +
.../AmlFilesystemRootSquashSettings.json.cs | 119 +
.../Models/AmlFilesystemUpdate.PowerShell.cs | 48 +
.../api/Models/AmlFilesystemUpdate.cs | 107 +
...mlFilesystemUpdateProperties.PowerShell.cs | 48 +
.../Models/AmlFilesystemUpdateProperties.cs | 114 +
.../AmlFilesystemUpdateProperties.json.cs | 2 +
.../generated/api/Models/Any.PowerShell.cs | 156 +
.../generated/api/Models/Any.TypeConverter.cs | 146 +
.../generated/api/Models/Any.cs | 34 +
.../generated/api/Models/Any.json.cs | 104 +
.../api/Models/AutoExportJob.PowerShell.cs | 422 +
.../api/Models/AutoExportJob.TypeConverter.cs | 147 +
.../generated/api/Models/AutoExportJob.cs | 618 ++
.../api/Models/AutoExportJob.json.cs | 112 +
.../AutoExportJobProperties.PowerShell.cs | 308 +
.../AutoExportJobProperties.TypeConverter.cs | 147 +
.../api/Models/AutoExportJobProperties.cs | 484 ++
.../Models/AutoExportJobProperties.json.cs | 134 +
...utoExportJobPropertiesStatus.PowerShell.cs | 276 +
...ExportJobPropertiesStatus.TypeConverter.cs | 147 +
.../Models/AutoExportJobPropertiesStatus.cs | 431 +
.../AutoExportJobPropertiesStatus.json.cs | 178 +
.../Models/AutoExportJobUpdate.PowerShell.cs | 180 +
.../AutoExportJobUpdate.TypeConverter.cs | 147 +
.../api/Models/AutoExportJobUpdate.cs | 93 +
.../api/Models/AutoExportJobUpdate.json.cs | 110 +
...utoExportJobUpdateProperties.PowerShell.cs | 162 +
...ExportJobUpdateProperties.TypeConverter.cs | 147 +
.../Models/AutoExportJobUpdateProperties.cs | 62 +
.../AutoExportJobUpdateProperties.json.cs | 107 +
.../AutoExportJobUpdateTags.PowerShell.cs | 160 +
.../AutoExportJobUpdateTags.TypeConverter.cs | 147 +
.../api/Models/AutoExportJobUpdateTags.cs | 35 +
.../AutoExportJobUpdateTags.dictionary.cs | 75 +
.../Models/AutoExportJobUpdateTags.json.cs | 109 +
.../AutoExportJobsListResult.PowerShell.cs | 176 +
.../AutoExportJobsListResult.TypeConverter.cs | 147 +
.../api/Models/AutoExportJobsListResult.cs | 79 +
.../Models/AutoExportJobsListResult.json.cs | 121 +
...pdateAcceptedResponseHeaders.PowerShell.cs | 167 +
...teAcceptedResponseHeaders.TypeConverter.cs | 151 +
...ExportJobsUpdateAcceptedResponseHeaders.cs | 60 +
...tJobsUpdateAcceptedResponseHeaders.json.cs | 107 +
.../api/Models/AutoImportJob.PowerShell.cs | 326 +
.../api/Models/AutoImportJob.TypeConverter.cs | 147 +
.../generated/api/Models/AutoImportJob.cs | 372 +
.../api/Models/AutoImportJob.json.cs | 112 +
.../AutoImportJobProperties.PowerShell.cs | 212 +
.../AutoImportJobProperties.TypeConverter.cs | 147 +
.../api/Models/AutoImportJobProperties.cs | 243 +
.../Models/AutoImportJobProperties.json.cs | 146 +
...utoImportJobPropertiesStatus.PowerShell.cs | 420 +
...ImportJobPropertiesStatus.TypeConverter.cs | 147 +
.../Models/AutoImportJobPropertiesStatus.cs | 745 ++
.../AutoImportJobPropertiesStatus.json.cs | 206 +
...opertiesStatusBlobSyncEvents.PowerShell.cs | 265 +
...rtiesStatusBlobSyncEvents.TypeConverter.cs | 151 +
...ImportJobPropertiesStatusBlobSyncEvents.cs | 335 +
...tJobPropertiesStatusBlobSyncEvents.json.cs | 173 +
.../Models/AutoImportJobUpdate.PowerShell.cs | 180 +
.../AutoImportJobUpdate.TypeConverter.cs | 147 +
.../api/Models/AutoImportJobUpdate.cs | 93 +
.../api/Models/AutoImportJobUpdate.json.cs | 110 +
...utoImportJobUpdateProperties.PowerShell.cs | 162 +
...ImportJobUpdateProperties.TypeConverter.cs | 147 +
.../Models/AutoImportJobUpdateProperties.cs | 62 +
.../AutoImportJobUpdateProperties.json.cs | 107 +
.../AutoImportJobUpdateTags.PowerShell.cs | 160 +
.../AutoImportJobUpdateTags.TypeConverter.cs | 147 +
.../api/Models/AutoImportJobUpdateTags.cs | 35 +
.../AutoImportJobUpdateTags.dictionary.cs | 75 +
.../Models/AutoImportJobUpdateTags.json.cs | 109 +
.../AutoImportJobsListResult.PowerShell.cs | 176 +
.../AutoImportJobsListResult.TypeConverter.cs | 147 +
.../api/Models/AutoImportJobsListResult.cs | 79 +
.../Models/AutoImportJobsListResult.json.cs | 121 +
...pdateAcceptedResponseHeaders.PowerShell.cs | 167 +
...teAcceptedResponseHeaders.TypeConverter.cs | 151 +
...ImportJobsUpdateAcceptedResponseHeaders.cs | 60 +
...tJobsUpdateAcceptedResponseHeaders.json.cs | 107 +
.../Models/ErrorAdditionalInfo.PowerShell.cs | 172 +
.../ErrorAdditionalInfo.TypeConverter.cs | 147 +
.../api/Models/ErrorAdditionalInfo.cs | 80 +
.../api/Models/ErrorAdditionalInfo.json.cs | 116 +
.../api/Models/ErrorDetail.PowerShell.cs | 196 +
.../api/Models/ErrorDetail.TypeConverter.cs | 147 +
.../generated/api/Models/ErrorDetail.cs | 149 +
.../generated/api/Models/ErrorDetail.json.cs | 147 +
.../api/Models/ErrorResponse.PowerShell.cs | 208 +
.../api/Models/ErrorResponse.TypeConverter.cs | 147 +
.../generated/api/Models/ErrorResponse.cs | 151 +
.../api/Models/ErrorResponse.json.cs | 111 +
.../api/Models/ImportJob.PowerShell.cs | 446 +
.../api/Models/ImportJob.TypeConverter.cs | 146 +
.../generated/api/Models/ImportJob.cs | 671 ++
.../generated/api/Models/ImportJob.json.cs | 112 +
.../Models/ImportJobProperties.PowerShell.cs | 332 +
.../ImportJobProperties.TypeConverter.cs | 147 +
.../api/Models/ImportJobProperties.cs | 543 ++
.../api/Models/ImportJobProperties.json.cs | 144 +
.../ImportJobPropertiesStatus.PowerShell.cs | 284 +
...ImportJobPropertiesStatus.TypeConverter.cs | 147 +
.../api/Models/ImportJobPropertiesStatus.cs | 425 +
.../Models/ImportJobPropertiesStatus.json.cs | 186 +
.../api/Models/ImportJobUpdate.PowerShell.cs | 180 +
.../Models/ImportJobUpdate.TypeConverter.cs | 147 +
.../generated/api/Models/ImportJobUpdate.cs | 93 +
.../api/Models/ImportJobUpdate.json.cs | 110 +
.../ImportJobUpdateProperties.PowerShell.cs | 162 +
...ImportJobUpdateProperties.TypeConverter.cs | 147 +
.../api/Models/ImportJobUpdateProperties.cs | 62 +
.../Models/ImportJobUpdateProperties.json.cs | 107 +
.../Models/ImportJobUpdateTags.PowerShell.cs | 160 +
.../ImportJobUpdateTags.TypeConverter.cs | 147 +
.../api/Models/ImportJobUpdateTags.cs | 35 +
.../Models/ImportJobUpdateTags.dictionary.cs | 75 +
.../api/Models/ImportJobUpdateTags.json.cs | 109 +
.../Models/ImportJobsListResult.PowerShell.cs | 174 +
.../ImportJobsListResult.TypeConverter.cs | 147 +
.../api/Models/ImportJobsListResult.cs | 76 +
.../api/Models/ImportJobsListResult.json.cs | 120 +
...pdateAcceptedResponseHeaders.PowerShell.cs | 167 +
...teAcceptedResponseHeaders.TypeConverter.cs | 151 +
...ImportJobsUpdateAcceptedResponseHeaders.cs | 58 +
...tJobsUpdateAcceptedResponseHeaders.json.cs | 107 +
.../Models/StorageCacheIdentity.PowerShell.cs | 24 +
.../api/Models/StorageCacheIdentity.cs | 78 +
.../api/Models/StorageCacheIdentity.json.cs | 6 +
.../generated/api/StorageCache.cs | 7448 ++++++++++++++++-
...ileSystemSubnetRequiredSize_GetExpanded.cs | 2 +-
.../GetAzStorageCacheAmlFileSystem_Get.cs | 2 +-
...torageCacheAmlFileSystem_GetViaIdentity.cs | 2 +-
.../GetAzStorageCacheAmlFileSystem_List.cs | 2 +-
.../GetAzStorageCacheAmlFileSystem_List1.cs | 2 +-
.../GetAzStorageCacheAutoExportJob_Get.cs | 526 ++
...torageCacheAutoExportJob_GetViaIdentity.cs | 489 ++
...toExportJob_GetViaIdentityAmlFilesystem.cs | 503 ++
.../GetAzStorageCacheAutoExportJob_List.cs | 538 ++
.../GetAzStorageCacheAutoImportJob_Get.cs | 526 ++
...torageCacheAutoImportJob_GetViaIdentity.cs | 489 ++
...toImportJob_GetViaIdentityAmlFilesystem.cs | 503 ++
.../GetAzStorageCacheAutoImportJob_List.cs | 538 ++
.../cmdlets/GetAzStorageCacheImportJob_Get.cs | 526 ++
...tAzStorageCacheImportJob_GetViaIdentity.cs | 489 ++
...heImportJob_GetViaIdentityAmlFilesystem.cs | 503 ++
.../GetAzStorageCacheImportJob_List.cs | 536 ++
...cheAmlFileSystemArchive_ArchiveExpanded.cs | 4 +-
...ystemArchive_ArchiveViaIdentityExpanded.cs | 4 +-
...ileSystemArchive_ArchiveViaJsonFilePath.cs | 4 +-
...lFileSystemArchive_ArchiveViaJsonString.cs | 4 +-
...torageCacheAmlFileSystem_CreateExpanded.cs | 108 +-
...AmlFileSystem_CreateViaIdentityExpanded.cs | 108 +-
...acheAmlFileSystem_CreateViaJsonFilePath.cs | 35 +-
...eCacheAmlFileSystem_CreateViaJsonString.cs | 35 +-
...torageCacheAutoExportJob_CreateExpanded.cs | 637 ++
..._CreateViaIdentityAmlFilesystemExpanded.cs | 617 ++
...AutoExportJob_CreateViaIdentityExpanded.cs | 601 ++
...acheAutoExportJob_CreateViaJsonFilePath.cs | 595 ++
...eCacheAutoExportJob_CreateViaJsonString.cs | 593 ++
...torageCacheAutoImportJob_CreateExpanded.cs | 684 ++
..._CreateViaIdentityAmlFilesystemExpanded.cs | 664 ++
...AutoImportJob_CreateViaIdentityExpanded.cs | 648 ++
...acheAutoImportJob_CreateViaJsonFilePath.cs | 595 ++
...eCacheAutoImportJob_CreateViaJsonString.cs | 593 ++
...wAzStorageCacheImportJob_CreateExpanded.cs | 669 ++
..._CreateViaIdentityAmlFilesystemExpanded.cs | 649 ++
...acheImportJob_CreateViaIdentityExpanded.cs | 631 ++
...ageCacheImportJob_CreateViaJsonFilePath.cs | 595 ++
...orageCacheImportJob_CreateViaJsonString.cs | 593 ++
...emoveAzStorageCacheAmlFileSystem_Delete.cs | 20 +-
...ageCacheAmlFileSystem_DeleteViaIdentity.cs | 20 +-
...emoveAzStorageCacheAutoExportJob_Delete.cs | 616 ++
...ageCacheAutoExportJob_DeleteViaIdentity.cs | 578 ++
...xportJob_DeleteViaIdentityAmlFilesystem.cs | 596 ++
...emoveAzStorageCacheAutoImportJob_Delete.cs | 616 ++
...ageCacheAutoImportJob_DeleteViaIdentity.cs | 578 ++
...mportJob_DeleteViaIdentityAmlFilesystem.cs | 596 ++
.../RemoveAzStorageCacheImportJob_Delete.cs | 616 ++
...StorageCacheImportJob_DeleteViaIdentity.cs | 578 ++
...mportJob_DeleteViaIdentityAmlFilesystem.cs | 595 ++
...StorageCacheAmlFilesystemArchive_Cancel.cs | 4 +-
...eAmlFilesystemArchive_CancelViaIdentity.cs | 4 +-
...eCacheAmlFileSystemSubnet_CheckExpanded.cs | 4 +-
...mlFileSystemSubnet_CheckViaJsonFilePath.cs | 4 +-
...eAmlFileSystemSubnet_CheckViaJsonString.cs | 4 +-
...torageCacheAmlFileSystem_UpdateExpanded.cs | 84 +-
...AmlFileSystem_UpdateViaIdentityExpanded.cs | 84 +-
...acheAmlFileSystem_UpdateViaJsonFilePath.cs | 35 +-
...eCacheAmlFileSystem_UpdateViaJsonString.cs | 35 +-
...torageCacheAutoExportJob_UpdateExpanded.cs | 609 ++
..._UpdateViaIdentityAmlFilesystemExpanded.cs | 589 ++
...AutoExportJob_UpdateViaIdentityExpanded.cs | 573 ++
...acheAutoExportJob_UpdateViaJsonFilePath.cs | 595 ++
...eCacheAutoExportJob_UpdateViaJsonString.cs | 593 ++
...torageCacheAutoImportJob_UpdateExpanded.cs | 609 ++
..._UpdateViaIdentityAmlFilesystemExpanded.cs | 589 ++
...AutoImportJob_UpdateViaIdentityExpanded.cs | 573 ++
...acheAutoImportJob_UpdateViaJsonFilePath.cs | 595 ++
...eCacheAutoImportJob_UpdateViaJsonString.cs | 593 ++
...eAzStorageCacheImportJob_UpdateExpanded.cs | 609 ++
..._UpdateViaIdentityAmlFilesystemExpanded.cs | 589 ++
...acheImportJob_UpdateViaIdentityExpanded.cs | 571 ++
...ageCacheImportJob_UpdateViaJsonFilePath.cs | 595 ++
...orageCacheImportJob_UpdateViaJsonString.cs | 593 ++
.../runtime/BuildTime/Models/PsHelpTypes.cs | 11 +-
.../runtime/BuildTime/Models/PsProxyTypes.cs | 1 +
.../generated/runtime/Context.cs | 2 +-
.../generated/runtime/MessageAttribute.cs | 11 +-
.../runtime/Properties/Resources.resx | 2 +-
245 files changed, 68311 insertions(+), 976 deletions(-)
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoExportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheAutoImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Remove-AzStorageCacheImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoExportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheAutoImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/exports/Update-AzStorageCacheImportJob.ps1
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AmlFilesystemRootSquashSettings.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AmlFilesystemRootSquashSettings.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AmlFilesystemRootSquashSettings.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AmlFilesystemRootSquashSettings.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/Any.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/Any.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/Any.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/Any.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJob.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJob.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJob.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJob.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobPropertiesStatus.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobPropertiesStatus.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobPropertiesStatus.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobPropertiesStatus.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdate.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdate.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdate.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdate.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateTags.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateTags.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateTags.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateTags.dictionary.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobUpdateTags.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsListResult.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsListResult.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsListResult.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsListResult.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsUpdateAcceptedResponseHeaders.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsUpdateAcceptedResponseHeaders.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsUpdateAcceptedResponseHeaders.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoExportJobsUpdateAcceptedResponseHeaders.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJob.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJob.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJob.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJob.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatus.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatus.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatus.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatus.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatusBlobSyncEvents.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatusBlobSyncEvents.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatusBlobSyncEvents.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobPropertiesStatusBlobSyncEvents.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdate.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdate.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdate.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdate.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateTags.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateTags.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateTags.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateTags.dictionary.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobUpdateTags.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsListResult.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsListResult.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsListResult.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsListResult.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsUpdateAcceptedResponseHeaders.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsUpdateAcceptedResponseHeaders.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsUpdateAcceptedResponseHeaders.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/AutoImportJobsUpdateAcceptedResponseHeaders.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorAdditionalInfo.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorAdditionalInfo.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorAdditionalInfo.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorDetail.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorDetail.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorDetail.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorDetail.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorResponse.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorResponse.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorResponse.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ErrorResponse.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJob.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJob.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJob.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJob.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobPropertiesStatus.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobPropertiesStatus.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobPropertiesStatus.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobPropertiesStatus.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdate.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdate.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdate.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdate.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateProperties.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateProperties.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateProperties.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateProperties.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateTags.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateTags.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateTags.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateTags.dictionary.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobUpdateTags.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsListResult.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsListResult.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsListResult.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsListResult.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsUpdateAcceptedResponseHeaders.PowerShell.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsUpdateAcceptedResponseHeaders.TypeConverter.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsUpdateAcceptedResponseHeaders.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/api/Models/ImportJobsUpdateAcceptedResponseHeaders.json.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoExportJob_Get.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoExportJob_GetViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoExportJob_GetViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoExportJob_List.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoImportJob_Get.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoImportJob_GetViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoImportJob_GetViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheAutoImportJob_List.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheImportJob_Get.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheImportJob_GetViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheImportJob_GetViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/GetAzStorageCacheImportJob_List.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoExportJob_CreateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoExportJob_CreateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoExportJob_CreateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoExportJob_CreateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoExportJob_CreateViaJsonString.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoImportJob_CreateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoImportJob_CreateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoImportJob_CreateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoImportJob_CreateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheAutoImportJob_CreateViaJsonString.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheImportJob_CreateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheImportJob_CreateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheImportJob_CreateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheImportJob_CreateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/NewAzStorageCacheImportJob_CreateViaJsonString.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoExportJob_Delete.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoExportJob_DeleteViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoExportJob_DeleteViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoImportJob_Delete.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoImportJob_DeleteViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheAutoImportJob_DeleteViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheImportJob_Delete.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheImportJob_DeleteViaIdentity.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/RemoveAzStorageCacheImportJob_DeleteViaIdentityAmlFilesystem.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoExportJob_UpdateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoExportJob_UpdateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoExportJob_UpdateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoExportJob_UpdateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoExportJob_UpdateViaJsonString.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoImportJob_UpdateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoImportJob_UpdateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoImportJob_UpdateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoImportJob_UpdateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheAutoImportJob_UpdateViaJsonString.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheImportJob_UpdateExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheImportJob_UpdateViaIdentityAmlFilesystemExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheImportJob_UpdateViaIdentityExpanded.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheImportJob_UpdateViaJsonFilePath.cs
create mode 100644 generated/StorageCache/StorageCache.Autorest/generated/cmdlets/UpdateAzStorageCacheImportJob_UpdateViaJsonString.cs
diff --git a/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.format.ps1xml b/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.format.ps1xml
index 19bff8ac9b07..9aabb9c72562 100644
--- a/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.format.ps1xml
+++ b/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.format.ps1xml
@@ -403,22 +403,940 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemRootSquashSettings
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemRootSquashSettings#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Mode
+
+
+ NoSquashNidList
+
+
+ SquashGid
+
+
+ SquashUid
+
+
+ Status
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsListResult
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsListResult#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemSubnetInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemSubnetInfo#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ FilesystemSubnet
+
+
+ Location
+
+
+ StorageCapacityTiB
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsUpdateAcceptedResponseHeaders
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsUpdateAcceptedResponseHeaders#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ AzureAsyncOperation
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdatePropertiesMaintenanceWindow
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdatePropertiesMaintenanceWindow#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DayOfWeek
+
+
+ TimeOfDayUtc
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdateTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdateTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJob
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJob#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ AzureAsyncOperation
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AdminStatus
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobPropertiesStatus
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobPropertiesStatus#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CurrentIterationFilesDiscovered
+
+
+ CurrentIterationFilesExported
+
+
+ CurrentIterationFilesFailed
+
+
+ CurrentIterationMiBDiscovered
+
+
+ CurrentIterationMiBExported
+
+
+ ExportIterationCount
+
+
+ LastCompletionTimeUtc
+
+
+ LastStartedTimeUtc
+
+
+ LastSuccessfulIterationCompletionTimeUtc
+
+
+ State
+
+
+ StatusCode
+
+
+ StatusMessage
+
+
+ TotalFilesExported
+
+
+ TotalFilesFailed
+
+
+ TotalMiBExported
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobsListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobsListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobsUpdateAcceptedResponseHeaders
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobsUpdateAcceptedResponseHeaders#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ AzureAsyncOperation
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ AdminStatus
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobUpdateTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoExportJobUpdateTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJob
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJob#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ AzureAsyncOperation
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AdminStatus
+
+
+ ConflictResolutionMode
+
+
+ EnableDeletion
+
+
+ MaximumError
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobPropertiesStatus
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobPropertiesStatus#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ImportedDirectory
+
+
+ ImportedFile
+
+
+ ImportedSymlink
+
+
+ LastCompletionTimeUtc
+
+
+ LastStartedTimeUtc
+
+
+ PreexistingDirectory
+
+
+ PreexistingFile
+
+
+ PreexistingSymlink
+
+
+ RateOfBlobImport
+
+
+ RateOfBlobWalk
+
+
+ ScanEndTime
+
+
+ ScanStartTime
+
+
+ State
+
+
+ StatusCode
+
+
+ StatusMessage
+
+
+ TotalBlobsImported
+
+
+ TotalBlobsWalked
+
+
+ TotalConflict
+
+
+ TotalError
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobPropertiesStatusBlobSyncEvents
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobPropertiesStatusBlobSyncEvents#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Deletion
+
+
+ ImportedDirectory
+
+
+ ImportedFile
+
+
+ ImportedSymlink
+
+
+ LastChangeFeedEventConsumedTime
+
+
+ LastTimeFullySynchronized
+
+
+ PreexistingDirectory
+
+
+ PreexistingFile
+
+
+ PreexistingSymlink
+
+
+ RateOfBlobImport
+
+
+ TotalBlobsImported
+
+
+ TotalConflict
+
+
+ TotalError
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobsListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobsListResult#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobsUpdateAcceptedResponseHeaders
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobsUpdateAcceptedResponseHeaders#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ AzureAsyncOperation
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ AdminStatus
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobUpdateTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AutoImportJobUpdateTags#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.CloudErrorBody
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.CloudErrorBody#Multiple
-
+
+
+
+
+
+
+
- NextLink
+ Code
+
+
+ Message
+
+
+ Target
@@ -426,33 +1344,33 @@
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemSubnetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ErrorDetail
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemSubnetInfo#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ErrorDetail#Multiple
-
+
-
+
-
+
- FilesystemSubnet
+ Code
- Location
+ Message
- StorageCapacityTiB
+ Target
@@ -460,49 +1378,115 @@
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsUpdateAcceptedResponseHeaders
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJob
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemsUpdateAcceptedResponseHeaders#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJob#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
AzureAsyncOperation
+
+ ResourceGroupName
+
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdatePropertiesMaintenanceWindow
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobProperties
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdatePropertiesMaintenanceWindow#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobProperties#Multiple
-
+
-
+
+
+
+
+
+
+
- DayOfWeek
+ AdminStatus
- TimeOfDayUtc
+ ConflictResolutionMode
+
+
+ MaximumError
+
+
+ ProvisioningState
@@ -510,21 +1494,111 @@
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdateTags
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobPropertiesStatus
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.AmlFilesystemUpdateTags#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobPropertiesStatus#Multiple
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Item
+ BlobsImportedPerSecond
+
+
+ BlobsWalkedPerSecond
+
+
+ ImportedDirectory
+
+
+ ImportedFile
+
+
+ ImportedSymlink
+
+
+ LastCompletionTime
+
+
+ LastStartedTime
+
+
+ PreexistingDirectory
+
+
+ PreexistingFile
+
+
+ PreexistingSymlink
+
+
+ State
+
+
+ StatusMessage
+
+
+ TotalBlobsImported
+
+
+ TotalBlobsWalked
+
+
+ TotalConflict
+
+
+ TotalError
@@ -532,33 +1606,87 @@
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.CloudErrorBody
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobsListResult
- Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.CloudErrorBody#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobsListResult#Multiple
-
-
-
-
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobsUpdateAcceptedResponseHeaders
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobsUpdateAcceptedResponseHeaders#Multiple
+
+
+
-
+
- Code
+ AzureAsyncOperation
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobUpdateProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobUpdateProperties#Multiple
+
+
+
+
+
+
+
+
+
+
- Message
+ AdminStatus
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobUpdateTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ImportJobUpdateTags#Multiple
+
+
+
+
+
+
+
+
+
+
- Target
+ Item
@@ -685,6 +1813,15 @@
+
+
+
+
+
+
+
+
+
@@ -698,6 +1835,15 @@
AmlFilesystemName
+
+ AutoExportJobName
+
+
+ AutoImportJobName
+
+
+ ImportJobName
+
ResourceGroupName
diff --git a/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.psd1 b/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.psd1
index cff7b5e792f5..42edf463f252 100644
--- a/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.psd1
+++ b/generated/StorageCache/StorageCache.Autorest/Az.StorageCache.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.StorageCache.private.dll'
FormatsToProcess = './Az.StorageCache.format.ps1xml'
- FunctionsToExport = 'Get-AzStorageCacheAmlFileSystem', 'Get-AzStorageCacheAmlFileSystemSubnetRequiredSize', 'Invoke-AzStorageCacheAmlFileSystemArchive', 'New-AzStorageCacheAmlFileSystem', 'Remove-AzStorageCacheAmlFileSystem', 'Stop-AzStorageCacheAmlFilesystemArchive', 'Test-AzStorageCacheAmlFileSystemSubnet', 'Update-AzStorageCacheAmlFileSystem'
+ FunctionsToExport = 'Get-AzStorageCacheAmlFileSystem', 'Get-AzStorageCacheAmlFileSystemSubnetRequiredSize', 'Get-AzStorageCacheAutoExportJob', 'Get-AzStorageCacheAutoImportJob', 'Get-AzStorageCacheImportJob', 'Invoke-AzStorageCacheAmlFileSystemArchive', 'New-AzStorageCacheAmlFileSystem', 'New-AzStorageCacheAutoExportJob', 'New-AzStorageCacheAutoImportJob', 'New-AzStorageCacheImportJob', 'Remove-AzStorageCacheAmlFileSystem', 'Remove-AzStorageCacheAutoExportJob', 'Remove-AzStorageCacheAutoImportJob', 'Remove-AzStorageCacheImportJob', 'Stop-AzStorageCacheAmlFilesystemArchive', 'Test-AzStorageCacheAmlFileSystemSubnet', 'Update-AzStorageCacheAmlFileSystem', 'Update-AzStorageCacheAutoExportJob', 'Update-AzStorageCacheAutoImportJob', 'Update-AzStorageCacheImportJob'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageCache'
diff --git a/generated/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs b/generated/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs
index d0e805ce102f..51c35264bbcb 100644
--- a/generated/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/StorageCache/StorageCache.Autorest/Properties/AssemblyInfo.cs
@@ -20,9 +20,17 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageCache")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
-[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
+
+
+
+
+
+
+
+
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1
index 7232d3a4feed..5dd6da6c75ae 100644
--- a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1
+++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAmlFileSystem.ps1
@@ -37,7 +37,10 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1
new file mode 100644
index 000000000000..e2ef63a79f6e
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoExportJob.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns an auto export job.
+.Description
+Returns an auto export job.
+.Example
+Get-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoexportjob
+#>
+function Get-AzStorageCacheAutoExportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('AutoExportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto export job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1
new file mode 100644
index 000000000000..47a8d886f330
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheAutoImportJob.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns an auto import job.
+.Description
+Returns an auto import job.
+.Example
+Get-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoimportjob
+#>
+function Get-AzStorageCacheAutoImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('AutoImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1
new file mode 100644
index 000000000000..d19c2c3b5cd2
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/Get-AzStorageCacheImportJob.ps1
@@ -0,0 +1,252 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Returns an import job.
+.Description
+Returns an import job.
+.Example
+Get-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheimportjob
+#>
+function Get-AzStorageCacheImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('ImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1
index 90306b15adf9..7416ee1a61d4 100644
--- a/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1
+++ b/generated/StorageCache/StorageCache.Autorest/exports/Invoke-AzStorageCacheAmlFileSystemArchive.ps1
@@ -35,7 +35,10 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1
index c16218b65485..c1e8b89957b8 100644
--- a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1
+++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAmlFileSystem.ps1
@@ -16,9 +16,9 @@
<#
.Synopsis
-create an AML file system.
+Create an AML file system.
.Description
-create an AML file system.
+Create an AML file system.
.Example
New-AzStorageCacheAmlFileSystem -Name azps-cache-fs -ResourceGroupName azps_test_gp_storagecache -Location eastus -UserAssignedIdentity "/subscriptions/{subId}/resourcegroups/azps_test_gp_storagecache/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azps-management-identity" -KeyEncryptionKeyUrl "https://azps-keyvault.vault.azure.net/keys/azps-kv/4cc795e46f114ce2a65b82b312964e0e" -SourceVaultId "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.KeyVault/vaults/azps-keyvault" -MaintenanceWindowDayOfWeek 'Saturday' -MaintenanceWindowTimeOfDayUtc "03:00" -FilesystemSubnet "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Network/virtualNetworks/azps-virtual-network/subnets/azps-vnetwork-sub-kv" -SkuName "AMLFS-Durable-Premium-250" -StorageCapacityTiB 16 -Zone 1
.Example
@@ -35,7 +35,10 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
@@ -124,6 +127,38 @@ param(
# The time of day (in UTC) to start the maintenance window.
${MaintenanceWindowTimeOfDayUtc},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("None", "RootOnly", "All")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Squash mode of the AML file system.
+ # 'All': User and Group IDs on files will be squashed to the provided values for all users on non-trusted systems.
+ # 'RootOnly': User and Group IDs on files will be squashed to provided values for solely the root user on non-trusted systems.
+ # 'None': No squashing of User and Group IDs is performed for any users on any systems.
+ ${RootSquashSettingMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Semicolon separated NID IP Address list(s) to be added to the TrustedSystems.
+ ${RootSquashSettingNoSquashNidList},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # Group ID to squash to.
+ ${RootSquashSettingSquashGid},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # User ID to squash to.
+ ${RootSquashSettingSquashUid},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
@@ -136,9 +171,21 @@ param(
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
[System.String]
- # Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace.
+ # Only blobs in the non-logging container that start with this path/prefix get imported into the cluster namespace.
+ # This is only used during initial creation of the AML file system.
+ # It automatically creates an import job resource that can be deleted.
${SettingImportPrefix},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # Only blobs in the non-logging container that start with one of the paths/prefixes in this array get imported into the cluster namespace.
+ # This is only used during initial creation of the AML file system and has '/' as the default value.
+ # It automatically creates an import job resource that can be deleted.
+ ${SettingImportPrefixesInitial},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Parameter(ParameterSetName='CreateViaIdentityExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1
new file mode 100644
index 000000000000..998146376934
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoExportJob.ps1
@@ -0,0 +1,322 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an auto export job.
+.Description
+Create an auto export job.
+.Example
+New-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -AutoExportPrefix @('/path1')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheautoexportjob
+#>
+function New-AzStorageCacheAutoExportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('AutoExportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto export job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Enable", "Disable")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the auto export job.
+ # Possible values: 'Enable', 'Disable'.
+ # Passing in a value of 'Disable' will disable the current active auto export job.
+ # By default it is set to 'Enable'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get auto exported to the cluster namespace.
+ # It has '/' as the default value.
+ # Number of maximum allowed paths for now is 1.
+ ${AutoExportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1
new file mode 100644
index 000000000000..d5cec3b2d725
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheAutoImportJob.ps1
@@ -0,0 +1,356 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an auto import job.
+.Description
+Create an auto import job.
+.Example
+New-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoimportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -AutoImportPrefix @('/path1', '/path2')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheautoimportjob
+#>
+function New-AzStorageCacheAutoImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('AutoImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Enable", "Disable")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the auto import job.
+ # Possible values: 'Enable', 'Disable'.
+ # Passing in a value of 'Disable' will disable the current active auto import job.
+ # By default it is set to 'Enable'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get auto imported to the cluster namespace.
+ # It has '/' as the default value.
+ # Number of maximum allowed paths is 100.
+ ${AutoImportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Fail", "Skip", "OverwriteIfDirty", "OverwriteAlways")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # How the auto import job will handle conflicts.
+ # For example, if the auto import job is trying to bring in a directory, but a file is at that path, how it handles it.
+ # Fail indicates that the auto import job should stop immediately and not do anything with the conflict.
+ # Skip indicates that it should pass over the conflict.
+ # OverwriteIfDirty causes the auto import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or is currently released.
+ # OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty.
+ # Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/blob-integration#conflict-resolution-mode for a thorough explanation of these resolution modes.
+ ${ConflictResolutionMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether or not to enable deletions during auto import.
+ # This only affects overwrite-dirty.
+ ${EnableDeletion},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # Total non-conflict-oriented errors (e.g., OS errors) Import will tolerate before exiting with failure.
+ # -1 means infinite.
+ # 0 means exit immediately on any error.
+ ${MaximumError},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1
new file mode 100644
index 000000000000..27d0e1d56bd5
--- /dev/null
+++ b/generated/StorageCache/StorageCache.Autorest/exports/New-AzStorageCacheImportJob.ps1
@@ -0,0 +1,346 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an import job.
+.Description
+Create an import job.
+.Example
+New-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myimportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -ImportPrefix @('/path1', '/path2')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheimportjob
+#>
+function New-AzStorageCacheImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('ImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Active", "Cancel")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the import job.
+ # Possible values: 'Active', 'Cancel'.
+ # Passing in a value of 'Cancel' will cancel the current active import job.
+ # By default it is set to 'Active'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Fail", "Skip", "OverwriteIfDirty", "OverwriteAlways")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # How the import job will handle conflicts.
+ # For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it.
+ # Fail indicates that the import job should stop immediately and not do anything with the conflict.
+ # Skip indicates that it should pass over the conflict.
+ # OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported.
+ # OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty.
+ # Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
+ ${ConflictResolutionMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get imported into the cluster namespace.
+ # It has '/' as the default value.
+ ${ImportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int32]
+ # Total non-conflict oriented errors the import job will tolerate before exiting with failure.
+ # -1 means infinite.
+ # 0 means exit immediately and is the default.
+ ${MaximumError},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1
index d5e45dbb7d84..3b1c854c1a9c 100644
--- a/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/StorageCache/StorageCache.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -219,7 +219,10 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
@@ -412,38 +415,47 @@ end {
<#
.Synopsis
-Archive data from the AML file system.
+Returns an auto export job.
.Description
-Archive data from the AML file system.
-.Example
-Invoke-AzStorageCacheAmlFileSystemArchive -AmlFilesystemName azps-cache-fs-4 -ResourceGroupName azps_test_gp_storagecache
+Returns an auto export job.
.Example
-Invoke-AzStorageCacheAmlFileSystemArchive -AmlFilesystemName azps-cache-fs-4 -ResourceGroupName azps_test_gp_storagecache -PassThru
+Get-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
-https://learn.microsoft.com/powershell/module/az.storagecache/invoke-azstoragecacheamlfilesystemarchive
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoexportjob
#>
-function Invoke-AzStorageCacheAmlFileSystemArchive {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='ArchiveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzStorageCacheAutoExportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='ArchiveExpanded', Mandatory)]
- [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[System.String]
# Name for the AML file system.
@@ -451,49 +463,43 @@ param(
# Start and end with alphanumeric.
${AmlFilesystemName},
- [Parameter(ParameterSetName='ArchiveExpanded', Mandatory)]
- [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('AutoExportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto export job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='ArchiveExpanded')]
- [Parameter(ParameterSetName='ArchiveViaJsonFilePath')]
- [Parameter(ParameterSetName='ArchiveViaJsonString')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
+ [System.String[]]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='ArchiveViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='ArchiveExpanded')]
- [Parameter(ParameterSetName='ArchiveViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Lustre file system path to archive relative to the file system root.
- # Specify '/' to archive all modified data.
- ${FilesystemPath},
-
- [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Archive operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Json string supplied to the Archive operation
- ${JsonString},
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -524,12 +530,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
[System.Uri]
@@ -585,12 +585,12 @@ begin {
}
$mapping = @{
- ArchiveExpanded = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveExpanded';
- ArchiveViaIdentityExpanded = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaIdentityExpanded';
- ArchiveViaJsonFilePath = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaJsonFilePath';
- ArchiveViaJsonString = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaJsonString';
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheAutoExportJob_List';
}
- if (('ArchiveExpanded', 'ArchiveViaJsonFilePath', 'ArchiveViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -652,197 +652,91 @@ end {
<#
.Synopsis
-create an AML file system.
+Returns an auto import job.
.Description
-create an AML file system.
-.Example
-New-AzStorageCacheAmlFileSystem -Name azps-cache-fs -ResourceGroupName azps_test_gp_storagecache -Location eastus -UserAssignedIdentity "/subscriptions/{subId}/resourcegroups/azps_test_gp_storagecache/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azps-management-identity" -KeyEncryptionKeyUrl "https://azps-keyvault.vault.azure.net/keys/azps-kv/4cc795e46f114ce2a65b82b312964e0e" -SourceVaultId "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.KeyVault/vaults/azps-keyvault" -MaintenanceWindowDayOfWeek 'Saturday' -MaintenanceWindowTimeOfDayUtc "03:00" -FilesystemSubnet "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Network/virtualNetworks/azps-virtual-network/subnets/azps-vnetwork-sub-kv" -SkuName "AMLFS-Durable-Premium-250" -StorageCapacityTiB 16 -Zone 1
+Returns an auto import job.
.Example
-New-AzStorageCacheAmlFileSystem -Name azps-cache-fs-hsm -ResourceGroupName azps_test_gp_storagecache -Location eastus -MaintenanceWindowDayOfWeek 'Saturday' -MaintenanceWindowTimeOfDayUtc "03:00" -FilesystemSubnet "/subscriptions/{subId}/resourcegroups/azps_test_gp_storagecache/providers/Microsoft.Network/virtualNetworks/azps-virtual-network/subnets/default" -SkuName "AMLFS-Durable-Premium-250" -StorageCapacityTiB 16 -Zone 1 -SettingContainer "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Storage/storageAccounts/azpssa/blobServices/default/containers/az-blob-login" -SettingImportPrefix "/" -SettingLoggingContainer "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Storage/storageAccounts/azpssa/blobServices/default/containers/az-blob"
+Get-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAmlFilesystem
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
INPUTOBJECT : Identity Parameter
[AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[SubscriptionId ]: The ID of the target subscription.
.Link
-https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheamlfilesystem
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheautoimportjob
#>
-function New-AzStorageCacheAmlFileSystem {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAmlFilesystem])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Get-AzStorageCacheAutoImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Alias('AmlFilesystemName')]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[System.String]
# Name for the AML file system.
# Allows alphanumerics, underscores, and hyphens.
# Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('AutoImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
${Name},
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaJsonFilePath')]
- [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
+ [System.String[]]
# The ID of the target subscription.
${SubscriptionId},
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
# Identity Parameter
${InputObject},
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # The geo-location where the resource lives
- ${Location},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Determines whether to enable a system-assigned identity for the resource.
- ${EnableSystemAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Subnet used for managing the AML file system and for client-facing operations.
- # This subnet should have at least a /24 subnet mask within the VNET's address space.
- ${FilesystemSubnet},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # The URL referencing a key encryption key in key vault.
- ${KeyEncryptionKeyUrl},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Day of the week on which the maintenance window will occur.
- ${MaintenanceWindowDayOfWeek},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # The time of day (in UTC) to start the maintenance window.
- ${MaintenanceWindowTimeOfDayUtc},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Resource ID of storage container used for hydrating the namespace and archiving from the namespace.
- # The resource provider must have permission to create SAS tokens on the storage account.
- ${SettingContainer},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Only blobs in the non-logging container that start with this path/prefix get hydrated into the cluster namespace.
- ${SettingImportPrefix},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Resource ID of storage container used for logging events and errors.
- # Must be a separate container in the same storage account as the hydration and archive container.
- # The resource provider must have permission to create SAS tokens on the storage account.
- ${SettingLoggingContainer},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # SKU name for this resource.
- ${SkuName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Resource Id.
- ${SourceVaultId},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.Single]
- # The size of the AML file system, in TiB.
- # This might be rounded up.
- ${StorageCapacityTiB},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
- [System.Collections.Hashtable]
- # Resource tags.
- ${Tag},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String[]]
- # The array of user assigned identities associated with the resource.
- # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
- ${UserAssignedIdentity},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String[]]
- # Availability zones for resources.
- # This field should only contain a single element in the array.
- ${Zone},
-
- [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Path of Json file supplied to the Create operation
- ${JsonFilePath},
-
- [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
- [System.String]
- # Json string supplied to the Create operation
- ${JsonString},
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -853,12 +747,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -879,12 +767,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
[System.Uri]
@@ -940,12 +822,3282 @@ begin {
}
$mapping = @{
- CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateExpanded';
- CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateViaIdentityExpanded';
- CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateViaJsonFilePath';
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheAutoImportJob_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Returns an import job.
+.Description
+Returns an import job.
+.Example
+Get-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -ResourceGroupName 'myresourcegroup'
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/get-azstoragecacheimportjob
+#>
+function Get-AzStorageCacheImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory)]
+ [Alias('ImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityAmlFilesystem', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_Get';
+ GetViaIdentity = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_GetViaIdentity';
+ GetViaIdentityAmlFilesystem = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_GetViaIdentityAmlFilesystem';
+ List = 'Az.StorageCache.private\Get-AzStorageCacheImportJob_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Archive data from the AML file system.
+.Description
+Archive data from the AML file system.
+.Example
+Invoke-AzStorageCacheAmlFileSystemArchive -AmlFilesystemName azps-cache-fs-4 -ResourceGroupName azps_test_gp_storagecache
+.Example
+Invoke-AzStorageCacheAmlFileSystemArchive -AmlFilesystemName azps-cache-fs-4 -ResourceGroupName azps_test_gp_storagecache -PassThru
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/invoke-azstoragecacheamlfilesystemarchive
+#>
+function Invoke-AzStorageCacheAmlFileSystemArchive {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='ArchiveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='ArchiveExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='ArchiveExpanded', Mandatory)]
+ [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='ArchiveExpanded')]
+ [Parameter(ParameterSetName='ArchiveViaJsonFilePath')]
+ [Parameter(ParameterSetName='ArchiveViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='ArchiveViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='ArchiveExpanded')]
+ [Parameter(ParameterSetName='ArchiveViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Lustre file system path to archive relative to the file system root.
+ # Specify '/' to archive all modified data.
+ ${FilesystemPath},
+
+ [Parameter(ParameterSetName='ArchiveViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Archive operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='ArchiveViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Archive operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ ArchiveExpanded = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveExpanded';
+ ArchiveViaIdentityExpanded = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaIdentityExpanded';
+ ArchiveViaJsonFilePath = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaJsonFilePath';
+ ArchiveViaJsonString = 'Az.StorageCache.private\Invoke-AzStorageCacheAmlFileSystemArchive_ArchiveViaJsonString';
+ }
+ if (('ArchiveExpanded', 'ArchiveViaJsonFilePath', 'ArchiveViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Create an AML file system.
+.Description
+Create an AML file system.
+.Example
+New-AzStorageCacheAmlFileSystem -Name azps-cache-fs -ResourceGroupName azps_test_gp_storagecache -Location eastus -UserAssignedIdentity "/subscriptions/{subId}/resourcegroups/azps_test_gp_storagecache/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azps-management-identity" -KeyEncryptionKeyUrl "https://azps-keyvault.vault.azure.net/keys/azps-kv/4cc795e46f114ce2a65b82b312964e0e" -SourceVaultId "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.KeyVault/vaults/azps-keyvault" -MaintenanceWindowDayOfWeek 'Saturday' -MaintenanceWindowTimeOfDayUtc "03:00" -FilesystemSubnet "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Network/virtualNetworks/azps-virtual-network/subnets/azps-vnetwork-sub-kv" -SkuName "AMLFS-Durable-Premium-250" -StorageCapacityTiB 16 -Zone 1
+.Example
+New-AzStorageCacheAmlFileSystem -Name azps-cache-fs-hsm -ResourceGroupName azps_test_gp_storagecache -Location eastus -MaintenanceWindowDayOfWeek 'Saturday' -MaintenanceWindowTimeOfDayUtc "03:00" -FilesystemSubnet "/subscriptions/{subId}/resourcegroups/azps_test_gp_storagecache/providers/Microsoft.Network/virtualNetworks/azps-virtual-network/subnets/default" -SkuName "AMLFS-Durable-Premium-250" -StorageCapacityTiB 16 -Zone 1 -SettingContainer "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Storage/storageAccounts/azpssa/blobServices/default/containers/az-blob-login" -SettingImportPrefix "/" -SettingLoggingContainer "/subscriptions/{subId}/resourceGroups/azps_test_gp_storagecache/providers/Microsoft.Storage/storageAccounts/azpssa/blobServices/default/containers/az-blob"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAmlFilesystem
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheamlfilesystem
+#>
+function New-AzStorageCacheAmlFileSystem {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAmlFilesystem])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('AmlFilesystemName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Subnet used for managing the AML file system and for client-facing operations.
+ # This subnet should have at least a /24 subnet mask within the VNET's address space.
+ ${FilesystemSubnet},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The URL referencing a key encryption key in key vault.
+ ${KeyEncryptionKeyUrl},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Day of the week on which the maintenance window will occur.
+ ${MaintenanceWindowDayOfWeek},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The time of day (in UTC) to start the maintenance window.
+ ${MaintenanceWindowTimeOfDayUtc},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("None", "RootOnly", "All")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Squash mode of the AML file system.
+ # 'All': User and Group IDs on files will be squashed to the provided values for all users on non-trusted systems.
+ # 'RootOnly': User and Group IDs on files will be squashed to provided values for solely the root user on non-trusted systems.
+ # 'None': No squashing of User and Group IDs is performed for any users on any systems.
+ ${RootSquashSettingMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Semicolon separated NID IP Address list(s) to be added to the TrustedSystems.
+ ${RootSquashSettingNoSquashNidList},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # Group ID to squash to.
+ ${RootSquashSettingSquashGid},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # User ID to squash to.
+ ${RootSquashSettingSquashUid},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Resource ID of storage container used for hydrating the namespace and archiving from the namespace.
+ # The resource provider must have permission to create SAS tokens on the storage account.
+ ${SettingContainer},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Only blobs in the non-logging container that start with this path/prefix get imported into the cluster namespace.
+ # This is only used during initial creation of the AML file system.
+ # It automatically creates an import job resource that can be deleted.
+ ${SettingImportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # Only blobs in the non-logging container that start with one of the paths/prefixes in this array get imported into the cluster namespace.
+ # This is only used during initial creation of the AML file system and has '/' as the default value.
+ # It automatically creates an import job resource that can be deleted.
+ ${SettingImportPrefixesInitial},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Resource ID of storage container used for logging events and errors.
+ # Must be a separate container in the same storage account as the hydration and archive container.
+ # The resource provider must have permission to create SAS tokens on the storage account.
+ ${SettingLoggingContainer},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # SKU name for this resource.
+ ${SkuName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Resource Id.
+ ${SourceVaultId},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Single]
+ # The size of the AML file system, in TiB.
+ # This might be rounded up.
+ ${StorageCapacityTiB},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
+ ${UserAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # Availability zones for resources.
+ # This field should only contain a single element in the array.
+ ${Zone},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateViaJsonFilePath';
CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheAmlFileSystem_CreateViaJsonString';
}
- if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Create an auto export job.
+.Description
+Create an auto export job.
+.Example
+New-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -AutoExportPrefix @('/path1')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheautoexportjob
+#>
+function New-AzStorageCacheAutoExportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoExportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('AutoExportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto export job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Enable", "Disable")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the auto export job.
+ # Possible values: 'Enable', 'Disable'.
+ # Passing in a value of 'Disable' will disable the current active auto export job.
+ # By default it is set to 'Enable'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get auto exported to the cluster namespace.
+ # It has '/' as the default value.
+ # Number of maximum allowed paths for now is 1.
+ ${AutoExportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheAutoExportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Create an auto import job.
+.Description
+Create an auto import job.
+.Example
+New-AzStorageCacheAutoImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoimportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -AutoImportPrefix @('/path1', '/path2')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheautoimportjob
+#>
+function New-AzStorageCacheAutoImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IAutoImportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('AutoImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the auto import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Enable", "Disable")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the auto import job.
+ # Possible values: 'Enable', 'Disable'.
+ # Passing in a value of 'Disable' will disable the current active auto import job.
+ # By default it is set to 'Enable'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get auto imported to the cluster namespace.
+ # It has '/' as the default value.
+ # Number of maximum allowed paths is 100.
+ ${AutoImportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Fail", "Skip", "OverwriteIfDirty", "OverwriteAlways")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # How the auto import job will handle conflicts.
+ # For example, if the auto import job is trying to bring in a directory, but a file is at that path, how it handles it.
+ # Fail indicates that the auto import job should stop immediately and not do anything with the conflict.
+ # Skip indicates that it should pass over the conflict.
+ # OverwriteIfDirty causes the auto import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or is currently released.
+ # OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty.
+ # Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/blob-integration#conflict-resolution-mode for a thorough explanation of these resolution modes.
+ ${ConflictResolutionMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Whether or not to enable deletions during auto import.
+ # This only affects overwrite-dirty.
+ ${EnableDeletion},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int64]
+ # Total non-conflict-oriented errors (e.g., OS errors) Import will tolerate before exiting with failure.
+ # -1 means infinite.
+ # 0 means exit immediately on any error.
+ ${MaximumError},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheAutoImportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Create an import job.
+.Description
+Create an import job.
+.Example
+New-AzStorageCacheImportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myimportjob' -ResourceGroupName 'myresourcegroup' -Location 'East US' -ImportPrefix @('/path1', '/path2')
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/new-azstoragecacheimportjob
+#>
+function New-AzStorageCacheImportJob {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IImportJob])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${AmlFilesystemName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Alias('ImportJobName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the import job.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaJsonFilePath')]
+ [Parameter(ParameterSetName='CreateViaJsonString')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${AmlFilesystemInputObject},
+
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Active", "Cancel")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # The administrative status of the import job.
+ # Possible values: 'Active', 'Cancel'.
+ # Passing in a value of 'Cancel' will cancel the current active import job.
+ # By default it is set to 'Active'.
+ ${AdminStatus},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.PSArgumentCompleterAttribute("Fail", "Skip", "OverwriteIfDirty", "OverwriteAlways")]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # How the import job will handle conflicts.
+ # For example, if the import job is trying to bring in a directory, but a file is at that path, how it handles it.
+ # Fail indicates that the import job should stop immediately and not do anything with the conflict.
+ # Skip indicates that it should pass over the conflict.
+ # OverwriteIfDirty causes the import job to delete and re-import the file or directory if it is a conflicting type, is dirty, or was not previously imported.
+ # OverwriteAlways extends OverwriteIfDirty to include releasing files that had been restored but were not dirty.
+ # Please reference https://learn.microsoft.com/en-us/azure/azure-managed-lustre/ for a thorough explanation of these resolution modes.
+ ${ConflictResolutionMode},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String[]]
+ # An array of blob paths/prefixes that get imported into the cluster namespace.
+ # It has '/' as the default value.
+ ${ImportPrefix},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.Int32]
+ # Total non-conflict oriented errors the import job will tolerate before exiting with failure.
+ # -1 means infinite.
+ # 0 means exit immediately and is the default.
+ ${MaximumError},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityAmlFilesystemExpanded')]
+ [Parameter(ParameterSetName='CreateViaIdentityExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateExpanded';
+ CreateViaIdentityAmlFilesystemExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaIdentityAmlFilesystemExpanded';
+ CreateViaIdentityExpanded = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.StorageCache.private\New-AzStorageCacheImportJob_CreateViaJsonString';
+ }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Schedules an AML file system for deletion.
+.Description
+Schedules an AML file system for deletion.
+.Example
+Remove-AzStorageCacheAmlFileSystem -Name azps-cache-fs -ResourceGroupName azps_test_gp_storagecache
+.Example
+Get-AzStorageCacheAmlFileSystem -ResourceGroupName azps_test_gp_storagecache -Name azps-cache-fs | Remove-AzStorageCacheAmlFileSystem
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName ]: Name for the auto import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [Id ]: Resource identity path
+ [ImportJobName ]: Name for the import job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [SubscriptionId ]: The ID of the target subscription.
+.Link
+https://learn.microsoft.com/powershell/module/az.storagecache/remove-azstoragecacheamlfilesystem
+#>
+function Remove-AzStorageCacheAmlFileSystem {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('AmlFilesystemName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # Name for the AML file system.
+ # Allows alphanumerics, underscores, and hyphens.
+ # Start and end with alphanumeric.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.StorageCache.private\Remove-AzStorageCacheAmlFileSystem_Delete';
+ DeleteViaIdentity = 'Az.StorageCache.private\Remove-AzStorageCacheAmlFileSystem_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.StorageCache.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Schedules an auto export job for deletion.
+.Description
+Schedules an auto export job for deletion.
+.Example
+Remove-AzStorageCacheAutoExportJob -AmlFilesystemName 'myamlfilesystem' -Name 'myautoexportjob' -ResourceGroupName 'myresourcegroup' -Confirm:$false
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.IStorageCacheIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+AMLFILESYSTEMINPUTOBJECT : Identity Parameter
+ [AmlFilesystemName ]: Name for the AML file system. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoExportJobName ]: Name for the auto export job. Allows alphanumerics, underscores, and hyphens. Start and end with alphanumeric.
+ [AutoImportJobName