From bdf9e81f8afe64f8aeb3df81a9192c1cdb8f581c Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Fri, 24 Oct 2025 16:19:05 +0000
Subject: [PATCH] [skip ci] Archive Schedule
---
.../Storage.Autorest/Az.Storage.format.ps1xml | 384 +++++++
.../Storage/Storage.Autorest/Az.Storage.psd1 | 2 +-
.../Properties/AssemblyInfo.cs | 4 +-
.../exports/Get-AzStorageAccountMigration.ps1 | 1 +
.../exports/Get-AzStorageFileServiceUsage.ps1 | 1 +
...eNetworkSecurityPerimeterConfiguration.ps1 | 273 +++++
.../exports/Get-AzStorageTaskAssignment.ps1 | 2 +
...AzStorageTaskAssignmentInstancesReport.ps1 | 2 +
...eNetworkSecurityPerimeterConfiguration.ps1 | 284 +++++
.../exports/ProxyCmdletDefinitions.ps1 | 538 ++++++++++
.../Remove-AzStorageTaskAssignment.ps1 | 2 +
.../Start-AzStorageAccountMigration.ps1 | 1 +
.../Update-AzStorageTaskAssignment.ps1 | 2 +
.../Storage.Autorest/generate-info.json | 2 +-
.../NetworkSecurityPerimeter.PowerShell.cs | 180 ++++
.../NetworkSecurityPerimeter.TypeConverter.cs | 147 +++
.../api/Models/NetworkSecurityPerimeter.cs | 94 ++
.../Models/NetworkSecurityPerimeter.json.cs | 115 +++
...curityPerimeterConfiguration.PowerShell.cs | 367 +++++++
...ityPerimeterConfiguration.TypeConverter.cs | 150 +++
.../NetworkSecurityPerimeterConfiguration.cs | 404 ++++++++
...workSecurityPerimeterConfiguration.json.cs | 114 ++
...tyPerimeterConfigurationList.PowerShell.cs | 177 ++++
...erimeterConfigurationList.TypeConverter.cs | 151 +++
...tworkSecurityPerimeterConfigurationList.cs | 79 ++
...SecurityPerimeterConfigurationList.json.cs | 123 +++
...meterConfigurationProperties.PowerShell.cs | 281 +++++
...erConfigurationProperties.TypeConverter.cs | 153 +++
...ecurityPerimeterConfigurationProperties.cs | 322 ++++++
...tyPerimeterConfigurationProperties.json.cs | 142 +++
...nfigurationPropertiesProfile.PowerShell.cs | 201 ++++
...gurationPropertiesProfile.TypeConverter.cs | 153 +++
...PerimeterConfigurationPropertiesProfile.cs | 136 +++
...eterConfigurationPropertiesProfile.json.cs | 135 +++
...ropertiesResourceAssociation.PowerShell.cs | 177 ++++
...ertiesResourceAssociation.TypeConverter.cs | 153 +++
...figurationPropertiesResourceAssociation.cs | 78 ++
...ationPropertiesResourceAssociation.json.cs | 113 ++
.../api/Models/NspAccessRule.PowerShell.cs | 212 ++++
.../api/Models/NspAccessRule.TypeConverter.cs | 147 +++
.../generated/api/Models/NspAccessRule.cs | 168 +++
.../api/Models/NspAccessRule.json.cs | 113 ++
.../NspAccessRuleProperties.PowerShell.cs | 196 ++++
.../NspAccessRuleProperties.TypeConverter.cs | 147 +++
.../api/Models/NspAccessRuleProperties.cs | 142 +++
.../Models/NspAccessRuleProperties.json.cs | 154 +++
...ePropertiesSubscriptionsItem.PowerShell.cs | 169 +++
...opertiesSubscriptionsItem.TypeConverter.cs | 151 +++
...spAccessRulePropertiesSubscriptionsItem.cs | 56 +
...essRulePropertiesSubscriptionsItem.json.cs | 110 ++
.../Models/ProvisioningIssue.PowerShell.cs | 196 ++++
.../Models/ProvisioningIssue.TypeConverter.cs | 147 +++
.../generated/api/Models/ProvisioningIssue.cs | 130 +++
.../api/Models/ProvisioningIssue.json.cs | 113 ++
.../ProvisioningIssueProperties.PowerShell.cs | 180 ++++
...ovisioningIssueProperties.TypeConverter.cs | 147 +++
.../api/Models/ProvisioningIssueProperties.cs | 98 ++
.../ProvisioningIssueProperties.json.cs | 112 ++
.../ProxyResourceAutoGenerated.PowerShell.cs | 238 +++++
...roxyResourceAutoGenerated.TypeConverter.cs | 147 +++
.../api/Models/ProxyResourceAutoGenerated.cs | 131 +++
.../Models/ProxyResourceAutoGenerated.json.cs | 110 ++
.../ResourceAutoGenerated.PowerShell.cs | 238 +++++
.../ResourceAutoGenerated.TypeConverter.cs | 147 +++
.../api/Models/ResourceAutoGenerated.cs | 257 +++++
.../api/Models/ResourceAutoGenerated.json.cs | 128 +++
.../api/Models/StorageIdentity.PowerShell.cs | 8 +
.../generated/api/Models/StorageIdentity.cs | 22 +
.../api/Models/StorageIdentity.json.cs | 2 +
.../Storage.Autorest/generated/api/Storage.cs | 975 ++++++++++++++++++
...tworkSecurityPerimeterConfiguration_Get.cs | 527 ++++++++++
...tyPerimeterConfiguration_GetViaIdentity.cs | 490 +++++++++
...figuration_GetViaIdentityStorageAccount.cs | 502 +++++++++
...workSecurityPerimeterConfiguration_List.cs | 521 ++++++++++
...ecurityPerimeterConfiguration_Reconcile.cs | 587 +++++++++++
...meterConfiguration_ReconcileViaIdentity.cs | 547 ++++++++++
...tion_ReconcileViaIdentityStorageAccount.cs | 561 ++++++++++
.../internal/ProxyCmdletDefinitions.ps1 | 1 +
.../Start-AzStorageAccountMigration.ps1 | 1 +
79 files changed, 14667 insertions(+), 4 deletions(-)
create mode 100644 generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1
create mode 100644 generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeter.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeter.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeter.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfiguration.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfiguration.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfiguration.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfiguration.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationList.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationList.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationList.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationList.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationProperties.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationProperties.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationProperties.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationProperties.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesProfile.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesProfile.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesProfile.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesProfile.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRule.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRule.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRule.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRule.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRuleProperties.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRuleProperties.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRuleProperties.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRuleProperties.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRulePropertiesSubscriptionsItem.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRulePropertiesSubscriptionsItem.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRulePropertiesSubscriptionsItem.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/NspAccessRulePropertiesSubscriptionsItem.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssue.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssue.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssue.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssue.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssueProperties.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssueProperties.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssueProperties.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProvisioningIssueProperties.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProxyResourceAutoGenerated.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProxyResourceAutoGenerated.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProxyResourceAutoGenerated.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ProxyResourceAutoGenerated.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ResourceAutoGenerated.PowerShell.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ResourceAutoGenerated.TypeConverter.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ResourceAutoGenerated.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/api/Models/ResourceAutoGenerated.json.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/GetAzStorageNetworkSecurityPerimeterConfiguration_Get.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/GetAzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentity.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/GetAzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentityStorageAccount.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/GetAzStorageNetworkSecurityPerimeterConfiguration_List.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/InvokeAzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/InvokeAzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentity.cs
create mode 100644 generated/Storage/Storage.Autorest/generated/cmdlets/InvokeAzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentityStorageAccount.cs
diff --git a/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml b/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
index ac6cc8120561..c8937cdbb624 100644
--- a/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
+++ b/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
@@ -2617,6 +2617,248 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeter
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeter#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ PerimeterGuid
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfiguration#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationList
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationList#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationPropertiesProfile
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationPropertiesProfile#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AccessRulesVersion
+
+
+ DiagnosticSettingsVersion
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AccessMode
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NspAccessRule
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NspAccessRule#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NspAccessRuleProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.NspAccessRuleProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Direction
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ObjectReplicationPolicy
@@ -3015,6 +3257,62 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProvisioningIssue
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProvisioningIssue#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProvisioningIssueProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProvisioningIssueProperties#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ IssueType
+
+
+ Severity
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProxyResource
@@ -3037,6 +3335,64 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProxyResourceAutoGenerated
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ProxyResourceAutoGenerated#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Resource
@@ -3087,6 +3443,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ResourceAutoGenerated
+
+ Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ResourceAutoGenerated#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.Restriction
@@ -4373,6 +4751,9 @@
+
+
+
@@ -4425,6 +4806,9 @@
MigrationName
+
+ NetworkSecurityPerimeterConfigurationName
+
ObjectReplicationPolicyId
diff --git a/generated/Storage/Storage.Autorest/Az.Storage.psd1 b/generated/Storage/Storage.Autorest/Az.Storage.psd1
index c5e02848c03b..e9e4f9744822 100644
--- a/generated/Storage/Storage.Autorest/Az.Storage.psd1
+++ b/generated/Storage/Storage.Autorest/Az.Storage.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Storage.private.dll'
FormatsToProcess = './Az.Storage.format.ps1xml'
- FunctionsToExport = 'Get-AzStorageAccountMigration', 'Get-AzStorageFileServiceUsage', 'Get-AzStorageSku', 'Get-AzStorageTaskAssignment', 'Get-AzStorageTaskAssignmentInstancesReport', 'New-AzStorageTaskAssignment', 'Remove-AzStorageTaskAssignment', 'Start-AzStorageAccountMigration', 'Update-AzStorageTaskAssignment'
+ FunctionsToExport = 'Get-AzStorageAccountMigration', 'Get-AzStorageFileServiceUsage', 'Get-AzStorageNetworkSecurityPerimeterConfiguration', 'Get-AzStorageSku', 'Get-AzStorageTaskAssignment', 'Get-AzStorageTaskAssignmentInstancesReport', 'Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration', 'New-AzStorageTaskAssignment', 'Remove-AzStorageTaskAssignment', 'Start-AzStorageAccountMigration', 'Update-AzStorageTaskAssignment'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Storage'
diff --git a/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs b/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
index 080d0804b519..15ff485c600d 100644
--- a/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
@@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Storage")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("9.1.0")]
-[assembly: System.Reflection.AssemblyVersionAttribute("9.1.0")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("9.2.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("9.2.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
index 20ec0c27eb3c..ea47695935e0 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
@@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
index d0961fde239e..b2f2fab5e9c7 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
@@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1
new file mode 100644
index 000000000000..442c8d66e7b3
--- /dev/null
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageNetworkSecurityPerimeterConfiguration.ps1
@@ -0,0 +1,273 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Gets effective NetworkSecurityPerimeterConfiguration for association
+.Description
+Gets effective NetworkSecurityPerimeterConfiguration for association
+.Example
+Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -Name "00000000-0000-0000-0000-000000000000.associationame"
+.Example
+Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration
+.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
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+
+STORAGEACCOUNTINPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+.Link
+https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration
+#>
+function Get-AzStorageNetworkSecurityPerimeterConfiguration {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the storage account within the specified resource group.
+ # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ ${AccountName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityStorageAccount', Mandatory)]
+ [Alias('NetworkSecurityPerimeterConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name for Network Security Perimeter configuration
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the resource group within the user's subscription.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityStorageAccount', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${StorageAccountInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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.Storage.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.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_Get';
+ GetViaIdentity = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentity';
+ GetViaIdentityStorageAccount = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentityStorageAccount';
+ List = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_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.Storage.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.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
index b5ad525954a5..9f1ccdb0ab7e 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
@@ -44,6 +44,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -63,6 +64,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
index 6fae602ac9bf..349bb6561804 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
@@ -44,6 +44,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -63,6 +64,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
diff --git a/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1 b/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1
new file mode 100644
index 000000000000..df5ff9e99555
--- /dev/null
+++ b/generated/Storage/Storage.Autorest/exports/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.ps1
@@ -0,0 +1,284 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Refreshes any information about the association.
+.Description
+Refreshes any information about the association.
+.Example
+Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -NetworkSecurityPerimeterConfigurationName "00000000-0000-0000-0000-000000000000.associationame"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity
+.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
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+
+STORAGEACCOUNTINPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+.Link
+https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration
+#>
+function Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Reconcile', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the storage account within the specified resource group.
+ # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ ${AccountName},
+
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Parameter(ParameterSetName='ReconcileViaIdentityStorageAccount', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name for Network Security Perimeter configuration
+ ${NetworkSecurityPerimeterConfigurationName},
+
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the resource group within the user's subscription.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Reconcile')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='ReconcileViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='ReconcileViaIdentityStorageAccount', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${StorageAccountInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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.Storage.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 = @{
+ Reconcile = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile';
+ ReconcileViaIdentity = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentity';
+ ReconcileViaIdentityStorageAccount = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentityStorageAccount';
+ }
+ if (('Reconcile') -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.Storage.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.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
index 077ceaebc23d..8bcc2aca81ca 100644
--- a/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -42,6 +42,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -258,6 +259,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -456,6 +458,264 @@ end {
}
}
+<#
+.Synopsis
+Gets effective NetworkSecurityPerimeterConfiguration for association
+.Description
+Gets effective NetworkSecurityPerimeterConfiguration for association
+.Example
+Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -Name "00000000-0000-0000-0000-000000000000.associationame"
+.Example
+Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration
+.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
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+
+STORAGEACCOUNTINPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+.Link
+https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration
+#>
+function Get-AzStorageNetworkSecurityPerimeterConfiguration {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the storage account within the specified resource group.
+ # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ ${AccountName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityStorageAccount', Mandatory)]
+ [Alias('NetworkSecurityPerimeterConfigurationName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name for Network Security Perimeter configuration
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the resource group within the user's subscription.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='GetViaIdentityStorageAccount', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${StorageAccountInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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.Storage.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.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_Get';
+ GetViaIdentity = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentity';
+ GetViaIdentityStorageAccount = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_GetViaIdentityStorageAccount';
+ List = 'Az.Storage.private\Get-AzStorageNetworkSecurityPerimeterConfiguration_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.Storage.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.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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
Lists the available SKUs supported by Microsoft.Storage for given subscription.
@@ -656,6 +916,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -675,6 +936,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -926,6 +1188,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -945,6 +1208,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
[ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
[PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
[ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
@@ -1160,6 +1424,275 @@ end {
}
}
+<#
+.Synopsis
+Refreshes any information about the association.
+.Description
+Refreshes any information about the association.
+.Example
+Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -NetworkSecurityPerimeterConfigurationName "00000000-0000-0000-0000-000000000000.associationame"
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity
+.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
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+
+STORAGEACCOUNTINPUTOBJECT : Identity Parameter
+ [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default'
+ [DeletedAccountName ]: Name of the deleted storage account.
+ [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [Id ]: Resource identity path
+ [Location ]: The location of the deleted storage account.
+ [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
+ [MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName ]: The name for Network Security Perimeter configuration
+ [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource
+ [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive.
+ [ShareName ]: The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [SubscriptionId ]: The ID of the target subscription.
+ [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account.
+.Link
+https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration
+#>
+function Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Reconcile', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the storage account within the specified resource group.
+ # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ ${AccountName},
+
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Parameter(ParameterSetName='ReconcileViaIdentityStorageAccount', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name for Network Security Perimeter configuration
+ ${NetworkSecurityPerimeterConfigurationName},
+
+ [Parameter(ParameterSetName='Reconcile', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [System.String]
+ # The name of the resource group within the user's subscription.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Reconcile')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='ReconcileViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='ReconcileViaIdentityStorageAccount', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${StorageAccountInputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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.Storage.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 = @{
+ Reconcile = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile';
+ ReconcileViaIdentity = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentity';
+ ReconcileViaIdentityStorageAccount = 'Az.Storage.private\Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_ReconcileViaIdentityStorageAccount';
+ }
+ if (('Reconcile') -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.Storage.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.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.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.Storage.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
Asynchronously create a new storage task assignment sub-resource with the specified parameters.
@@ -1484,6 +2017,7 @@ INPUTOBJECT : Identity Parameter
[Location ]: The location of the deleted storage account.
[ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default'
[MigrationName ]: The name of the Storage Account Migration. It should always be 'default'
+ [NetworkSecurityPerimeterConfigurationName