diff --git a/src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs b/src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs index 080d0804b519..15ff485c600d 100644 --- a/src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs +++ b/src/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/src/Storage/Storage.Autorest/README.md b/src/Storage/Storage.Autorest/README.md index 7204c2d7842a..5c54bcfea2c5 100644 --- a/src/Storage/Storage.Autorest/README.md +++ b/src/Storage/Storage.Autorest/README.md @@ -36,6 +36,7 @@ input-file: - $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/storage.json - $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/file.json - $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/storageTaskAssignments.json + - $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/networkSecurityPerimeter.json # For new RP, the version is 0.1.0 module-version: 5.9.1 diff --git a/src/Storage/Storage.Autorest/UX/Microsoft.Storage/storageAccounts-networkSecurityPerimeterConfigurations.json b/src/Storage/Storage.Autorest/UX/Microsoft.Storage/storageAccounts-networkSecurityPerimeterConfigurations.json new file mode 100644 index 000000000000..835da00fa830 --- /dev/null +++ b/src/Storage/Storage.Autorest/UX/Microsoft.Storage/storageAccounts-networkSecurityPerimeterConfigurations.json @@ -0,0 +1,95 @@ +{ + "resourceType": "storageAccounts/networkSecurityPerimeterConfigurations", + "apiVersion": "2025-01-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.storage" + }, + "commands": [ + { + "name": "Get-AzStorageNetworkSecurityPerimeterConfiguration", + "description": "Gets effective NetworkSecurityPerimeterConfiguration for association", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-AccountName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets effective NetworkSecurityPerimeterConfiguration for association", + "parameters": [ + { + "name": "-AccountName", + "value": "[Path.accountName]" + }, + { + "name": "-Name", + "value": "[Path.networkSecurityPerimeterConfigurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration", + "description": "Refreshes any information about the association.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration" + }, + "parameterSets": [ + { + "parameters": [ + "-AccountName ", + "-NetworkSecurityPerimeterConfigurationName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Refreshes any information about the association.", + "parameters": [ + { + "name": "-AccountName", + "value": "[Path.accountName]" + }, + { + "name": "-NetworkSecurityPerimeterConfigurationName", + "value": "[Path.networkSecurityPerimeterConfigurationName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/Storage/Storage.Autorest/docs/Az.Storage.md b/src/Storage/Storage.Autorest/docs/Az.Storage.md index 4e48830dc97c..3151a4ca5250 100644 --- a/src/Storage/Storage.Autorest/docs/Az.Storage.md +++ b/src/Storage/Storage.Autorest/docs/Az.Storage.md @@ -1,6 +1,6 @@ --- Module Name: Az.Storage -Module Guid: 4deee175-f94f-4dfd-80d5-fd7c43018494 +Module Guid: 983607ec-bcd9-4156-87aa-ab77eadbbc36 Download Help Link: https://learn.microsoft.com/powershell/module/az.storage Help Version: 1.0.0.0 Locale: en-US @@ -17,6 +17,9 @@ Gets the status of the ongoing migration for the specified storage account. ### [Get-AzStorageFileServiceUsage](Get-AzStorageFileServiceUsage.md) Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula. +### [Get-AzStorageNetworkSecurityPerimeterConfiguration](Get-AzStorageNetworkSecurityPerimeterConfiguration.md) +Gets effective NetworkSecurityPerimeterConfiguration for association + ### [Get-AzStorageSku](Get-AzStorageSku.md) Lists the available SKUs supported by Microsoft.Storage for given subscription. @@ -26,6 +29,9 @@ Get the storage task assignment properties ### [Get-AzStorageTaskAssignmentInstancesReport](Get-AzStorageTaskAssignmentInstancesReport.md) Fetch the report summary of a single storage task assignment's instances +### [Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration](Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md) +Refreshes any information about the association. + ### [New-AzStorageTaskAssignment](New-AzStorageTaskAssignment.md) Asynchronously create a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. diff --git a/src/Storage/Storage.Autorest/docs/Get-AzStorageNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Autorest/docs/Get-AzStorageNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..111389b0d828 --- /dev/null +++ b/src/Storage/Storage.Autorest/docs/Get-AzStorageNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,232 @@ +--- +external help file: +Module Name: Az.Storage +online version: https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration +schema: 2.0.0 +--- + +# Get-AzStorageNetworkSecurityPerimeterConfiguration + +## SYNOPSIS +Gets effective NetworkSecurityPerimeterConfiguration for association + +## SYNTAX + +### List (Default) +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -AccountName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -AccountName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -InputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentityStorageAccount +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -Name + -StorageAccountInputObject [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets effective NetworkSecurityPerimeterConfiguration for association + +## EXAMPLES + +### Example 1: Get a NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -Name "00000000-0000-0000-0000-000000000000.associationame" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command gets a NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount" with the nspConfig Name. + +### Example 2: List NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command lists all NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount". + +## PARAMETERS + +### -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. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name for Network Security Perimeter configuration + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityStorageAccount +Aliases: NetworkSecurityPerimeterConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group within the user's subscription. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: GetViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/Storage/Storage.Autorest/docs/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Autorest/docs/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..df719d4b3a6c --- /dev/null +++ b/src/Storage/Storage.Autorest/docs/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,247 @@ +--- +external help file: +Module Name: Az.Storage +online version: https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration +schema: 2.0.0 +--- + +# Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration + +## SYNOPSIS +Refreshes any information about the association. + +## SYNTAX + +### Reconcile (Default) +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -AccountName + -NetworkSecurityPerimeterConfigurationName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ReconcileViaIdentity +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ReconcileViaIdentityStorageAccount +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration + -NetworkSecurityPerimeterConfigurationName -StorageAccountInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Refreshes any information about the association. + +## EXAMPLES + +### Example 1: Reconciles the NSP association of a storage account +```powershell +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -NetworkSecurityPerimeterConfigurationName "00000000-0000-0000-0000-000000000000.associationame" +``` + +This command refreshes any information about the NSP association of a storage account + +## PARAMETERS + +### -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. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: ReconcileViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterConfigurationName +The name for Network Security Perimeter configuration + +```yaml +Type: System.String +Parameter Sets: Reconcile, ReconcileViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group within the user's subscription. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: ReconcileViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/Storage/Storage.Autorest/examples/Get-AzStorageNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Autorest/examples/Get-AzStorageNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..09db3b3629e5 --- /dev/null +++ b/src/Storage/Storage.Autorest/examples/Get-AzStorageNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,64 @@ +### Example 1: Get a NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -Name "00000000-0000-0000-0000-000000000000.associationame" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command gets a NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount" with the nspConfig Name. + +### Example 2: List NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command lists all NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount". + diff --git a/src/Storage/Storage.Autorest/examples/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Autorest/examples/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..d991fcf5a852 --- /dev/null +++ b/src/Storage/Storage.Autorest/examples/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,6 @@ +### Example 1: Reconciles the NSP association of a storage account +```powershell +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -NetworkSecurityPerimeterConfigurationName "00000000-0000-0000-0000-000000000000.associationame" +``` + +This command refreshes any information about the NSP association of a storage account diff --git a/src/Storage/Storage.Autorest/generate-info.json b/src/Storage/Storage.Autorest/generate-info.json index bf1bca329d14..54ed7e83b312 100644 --- a/src/Storage/Storage.Autorest/generate-info.json +++ b/src/Storage/Storage.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "5261f671-6e33-479c-b602-b675c12ccf82" + "generate_Id": "e43e7338-ef46-4c99-93ce-f2ad6f4c20f4" } diff --git a/src/Storage/Storage.Autorest/test/Get-AzStorageNetworkSecurityPerimeterConfiguration.Tests.ps1 b/src/Storage/Storage.Autorest/test/Get-AzStorageNetworkSecurityPerimeterConfiguration.Tests.ps1 new file mode 100644 index 000000000000..21c16ae64cd9 --- /dev/null +++ b/src/Storage/Storage.Autorest/test/Get-AzStorageNetworkSecurityPerimeterConfiguration.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzStorageNetworkSecurityPerimeterConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzStorageNetworkSecurityPerimeterConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzStorageNetworkSecurityPerimeterConfiguration' { + It 'List' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Get' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentityStorageAccount' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Recording.json b/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Recording.json new file mode 100644 index 000000000000..282c27fd2ae4 --- /dev/null +++ b/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Recording.json @@ -0,0 +1,224 @@ +{ + "Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration+[NoContext]+Reconcile+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations?api-version=2025-01-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations?api-version=2025-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "d8374034-723e-4f3e-a2e4-2035e1078ab9" ], + "CommandName": [ "Get-AzStorageNetworkSecurityPerimeterConfiguration" ], + "FullCommandName": [ "Get-AzStorageNetworkSecurityPerimeterConfiguration_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.3", "Az.Storage/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "f906b73c-31f4-4893-a3fe-5f8a4db01662" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/eastus/df730121-eaf2-4889-b2ee-7e5c8f5b823b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "ee4ec074-a3c9-4b5a-97f0-ca8586813822" ], + "x-ms-routing-request-id": [ "EASTUS:20251013T031305Z:ee4ec074-a3c9-4b5a-97f0-ca8586813822" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B4616BCE99E94EAEB1A32DA33751C275 Ref B: JKT201051406023 Ref C: 2025-10-13T03:13:05Z" ], + "Date": [ "Mon, 13 Oct 2025 03:13:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "854" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest\",\"name\":\"de6edd18-7deb-4a3e-b244-4548ba748a86.weitest\",\"type\":\"Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"networkSecurityPerimeter\":{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/weitest\",\"perimeterGuid\":\"de6edd18-7deb-4a3e-b244-4548ba748a86\",\"location\":\"eastus\"},\"resourceAssociation\":{\"name\":\"weitest\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"weinsptest\",\"accessRulesVersion\":0,\"accessRules\":[],\"diagnosticSettingsVersion\":0,\"enabledLogCategories\":[]}}}]}", + "isContentBase64": false + } + }, + "Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration+[NoContext]+Reconcile+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest?api-version=2025-01-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest?api-version=2025-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "a47de602-cfa2-4b69-8d89-b0bd457d5d9e" ], + "CommandName": [ "Get-AzStorageNetworkSecurityPerimeterConfiguration" ], + "FullCommandName": [ "Get-AzStorageNetworkSecurityPerimeterConfiguration_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.3", "Az.Storage/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "c5f59192-1502-45e9-8a92-361b8496d0c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/eastus/41eed881-4d67-47c8-836e-1dcb4a1f1bee" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "b7a91cd9-dece-495f-930f-6a39dec1f4d7" ], + "x-ms-routing-request-id": [ "EASTUS:20251013T031305Z:b7a91cd9-dece-495f-930f-6a39dec1f4d7" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 96271339A6954A33B627BFE1C39AE848 Ref B: JKT201051406023 Ref C: 2025-10-13T03:13:05Z" ], + "Date": [ "Mon, 13 Oct 2025 03:13:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "842" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest\",\"name\":\"de6edd18-7deb-4a3e-b244-4548ba748a86.weitest\",\"type\":\"Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations\",\"properties\":{\"provisioningState\":\"Succeeded\",\"networkSecurityPerimeter\":{\"id\":\"/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/weitest\",\"perimeterGuid\":\"de6edd18-7deb-4a3e-b244-4548ba748a86\",\"location\":\"eastus\"},\"resourceAssociation\":{\"name\":\"weitest\",\"accessMode\":\"Learning\"},\"profile\":{\"name\":\"weinsptest\",\"accessRulesVersion\":0,\"accessRules\":[],\"diagnosticSettingsVersion\":0,\"enabledLogCategories\":[]}}}", + "isContentBase64": false + } + }, + "Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration+[NoContext]+Reconcile+$POST+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest/reconcile?api-version=2025-01-01+3": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/de6edd18-7deb-4a3e-b244-4548ba748a86.weitest/reconcile?api-version=2025-01-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "49d6336e-95b7-474f-83f3-a35b0497d156" ], + "CommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration" ], + "FullCommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.3", "Az.Storage/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus/asyncoperations/b803f844-e34f-481a-9db1-018ac7ac6829?monitor=true\u0026api-version=2025-01-01\u0026t=638959219863833643\u0026c=MIIIpTCCBo2gAwIBAgITFgGpymN7LTW4kGDY9AABAanKYzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE2MDY0NzU2WhcNMjYwMTEyMDY0NzU2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKTm5YrLmfx9BQfyqn0KlKU5oAoMO71ploN13WymwudXY4jancWivKtgBQUtClbNOMf8GYtxePPkFtxCfON6ynaA50b2GFHRrjRAHMFB49frm55UXml1ym0Wz3JH6bXBwGJBhpQkMn2aLk58hRpzNpxEu8BK4avf0oZczbk_PMUH85rY1z-QQUNFQb_nIO7v3SIOCK3CKt4GdAKztacTI1NAnA_-1QYq5xcwep6CETOHLmlB_JNwscGCDdFNyGB72czos_xXG50Xhzs81LE3w3j92c_7ddvO9ojBuiNMBdFbP7GW31DrqzglZVWg5GHxjEcuVEIKM8kcIdQ2s7z8aGkCAwEAAaOCBJIwggSOMCcGCSsG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P9EZiR9ox-VqkrOPQAMZBqtP9tQacMeO-V3JqiNzdu8ZzGnJrVT0fbgiS5E3emSyi_rYbuKDR06QJurZseja_toZCirAeHMjBVtn2wNuaY6Rr\u0026s=QHpBgZ9iRsFiGNFZp8v1Yk7Nfklb_hT7g5RBEoNKEqmDUfctjVWm-3hN5jZMlIOwug_26HpGxQ66Lv0BlGAgH9iIoIiBKNrPyduvf4Ulxo1it-RePXBJXZbP5-Eq4GWFDODaLdYaSSm21EsOjdxjWdy-CZoDAeQicTVMszVc0Qo1wgLtW0SkmLT25NEol0J5V8jPNxXPfqh6f_dgwBo4a2vZPfca8iiHkv9mgDmwNK5mj_bEjL7pNHxvTMhyBFdkZ2yU7d4EoL_gnEcY6bxoMBbO0CJc08BOQsASZ89u8m-ohpfJK832lKLjdbimVVy3lU3Mh9fvRToo_n-spV5zBA\u0026h=BFj5Oj3J3KxzuLwCbd2cKhRWStToML4q47H4xCwsDTo" ], + "Retry-After": [ "17" ], + "x-ms-request-id": [ "b803f844-e34f-481a-9db1-018ac7ac6829" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/eastus/69584e4f-2898-4fe2-a5b4-0d49fedd1d6a" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "799" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "11999" ], + "x-ms-correlation-request-id": [ "6cd8e12a-a075-4b56-9a0f-859d91feb82c" ], + "x-ms-routing-request-id": [ "EASTUS:20251013T031306Z:6cd8e12a-a075-4b56-9a0f-859d91feb82c" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 65D7342CA624423C9924624600CEB6EB Ref B: JKT201051406023 Ref C: 2025-10-13T03:13:06Z" ], + "Date": [ "Mon, 13 Oct 2025 03:13:05 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "text/plain; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration+[NoContext]+Reconcile+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus/asyncoperations/b803f844-e34f-481a-9db1-018ac7ac6829?monitor=true\u0026api-version=2025-01-01\u0026t=638959219863833643\u0026c=MIIIpTCCBo2gAwIBAgITFgGpymN7LTW4kGDY9AABAanKYzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE2MDY0NzU2WhcNMjYwMTEyMDY0NzU2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKTm5YrLmfx9BQfyqn0KlKU5oAoMO71ploN13WymwudXY4jancWivKtgBQUtClbNOMf8GYtxePPkFtxCfON6ynaA50b2GFHRrjRAHMFB49frm55UXml1ym0Wz3JH6bXBwGJBhpQkMn2aLk58hRpzNpxEu8BK4avf0oZczbk_PMUH85rY1z-QQUNFQb_nIO7v3SIOCK3CKt4GdAKztacTI1NAnA_-1QYq5xcwep6CETOHLmlB_JNwscGCDdFNyGB72czos_xXG50Xhzs81LE3w3j92c_7ddvO9ojBuiNMBdFbP7GW31DrqzglZVWg5GHxjEcuVEIKM8kcIdQ2s7z8aGkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmK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QJurZseja_toZCirAeHMjBVtn2wNuaY6Rr\u0026s=QHpBgZ9iRsFiGNFZp8v1Yk7Nfklb_hT7g5RBEoNKEqmDUfctjVWm-3hN5jZMlIOwug_26HpGxQ66Lv0BlGAgH9iIoIiBKNrPyduvf4Ulxo1it-RePXBJXZbP5-Eq4GWFDODaLdYaSSm21EsOjdxjWdy-CZoDAeQicTVMszVc0Qo1wgLtW0SkmLT25NEol0J5V8jPNxXPfqh6f_dgwBo4a2vZPfca8iiHkv9mgDmwNK5mj_bEjL7pNHxvTMhyBFdkZ2yU7d4EoL_gnEcY6bxoMBbO0CJc08BOQsASZ89u8m-ohpfJK832lKLjdbimVVy3lU3Mh9fvRToo_n-spV5zBA\u0026h=BFj5Oj3J3KxzuLwCbd2cKhRWStToML4q47H4xCwsDTo+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus/asyncoperations/b803f844-e34f-481a-9db1-018ac7ac6829?monitor=true\u0026api-version=2025-01-01\u0026t=638959219863833643\u0026c=MIIIpTCCBo2gAwIBAgITFgGpymN7LTW4kGDY9AABAanKYzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE2MDY0NzU2WhcNMjYwMTEyMDY0NzU2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKTm5YrLmfx9BQfyqn0KlKU5oAoMO71ploN13WymwudXY4jancWivKtgBQUtClbNOMf8GYtxePPkFtxCfON6ynaA50b2GFHRrjRAHMFB49frm55UXml1ym0Wz3JH6bXBwGJBhpQkMn2aLk58hRpzNpxE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jc4d89cfOQaamQ7wOpiwXusaP-u5Vh-mmGXqkJVn4g_pDI4iv6NGaCosqQodrbEwWjkxiG_jX08qhEuGUhw-vo0jXacuguanQ0ap7Rns1PSLEOSmOB0LlsacAuoBAAQasSIYAX1woGPttqGnuqoCxw6jclcJayt0x4q1URe4WhXuTzySAt-1OtDyzZrXnwfkNB-J1J0iocdL_DCgWGQa2MlPP9EZiR9ox-VqkrOPQAMZBqtP9tQacMeO-V3JqiNzdu8ZzGnJrVT0fbgiS5E3emSyi_rYbuKDR06QJurZseja_toZCirAeHMjBVtn2wNuaY6Rr\u0026s=QHpBgZ9iRsFiGNFZp8v1Yk7Nfklb_hT7g5RBEoNKEqmDUfctjVWm-3hN5jZMlIOwug_26HpGxQ66Lv0BlGAgH9iIoIiBKNrPyduvf4Ulxo1it-RePXBJXZbP5-Eq4GWFDODaLdYaSSm21EsOjdxjWdy-CZoDAeQicTVMszVc0Qo1wgLtW0SkmLT25NEol0J5V8jPNxXPfqh6f_dgwBo4a2vZPfca8iiHkv9mgDmwNK5mj_bEjL7pNHxvTMhyBFdkZ2yU7d4EoL_gnEcY6bxoMBbO0CJc08BOQsASZ89u8m-ohpfJK832lKLjdbimVVy3lU3Mh9fvRToo_n-spV5zBA\u0026h=BFj5Oj3J3KxzuLwCbd2cKhRWStToML4q47H4xCwsDTo", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "49d6336e-95b7-474f-83f3-a35b0497d156" ], + "CommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration" ], + "FullCommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.3", "Az.Storage/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "0e2c96d9-5ffa-44af-a8b3-fc8707a87260" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/eastus/6ff25cc7-ba78-4650-99c6-d0b21635ee8c" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "f98533c4-bae0-452e-b814-3a67860f989c" ], + "x-ms-routing-request-id": [ "EASTUS:20251013T031323Z:f98533c4-bae0-452e-b814-3a67860f989c" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1391BA0984D14CA1BA555D3E2F302D1F Ref B: JKT201051406023 Ref C: 2025-10-13T03:13:23Z" ], + "Date": [ "Mon, 13 Oct 2025 03:13:23 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "text/plain; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration+[NoContext]+Reconcile+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus/asyncoperations/b803f844-e34f-481a-9db1-018ac7ac6829?monitor=true\u0026api-version=2025-01-01\u0026t=638959219863833643\u0026c=MIIIpTCCBo2gAwIBAgITFgGpymN7LTW4kGDY9AABAanKYzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE2MDY0NzU2WhcNMjYwMT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6KlaAyTE6thgbXA5VqVyLYuRnuvUDMFTX51g7bJmFMAwi3IsYN5OQ5fQkuPX3Ao0gysXGrQmU3uH3rbGlVWXLp9xDSUfHh3jfeoU0Q4cgn2VZBiXWIGMiSW0OI1ZQtmEAvtUUja-Za7Q8TrERfxJg1nnqfjm8pH78RqklGECDK_m93WbGutB81jiRb598PoEFLqatWtUWEOagPl1wHToKm4tfgg5pN24otf99UUJQrf6A8kHQVZhuyARbhm-_Y9HSN43NooeVkaEzxST2gsLitbuz9EW6djyVhce8jc4d89cfOQaamQ7wOpiwXusaP-u5Vh-mmGXqkJVn4g_pDI4iv6NGaCosqQodrbEwWjkxiG_jX08qhEuGUhw-vo0jXacuguanQ0ap7Rns1PSLEOSmOB0LlsacAuoBAAQasSIYAX1woGPttqGnuqoCxw6jclcJayt0x4q1URe4WhXuTzySAt-1OtDyzZrXnwfkNB-J1J0iocdL_DCgWGQa2MlPP9EZiR9ox-VqkrOPQAMZBqtP9tQacMeO-V3JqiNzdu8ZzGnJrVT0fbgiS5E3emSyi_rYbuKDR06QJurZseja_toZCirAeHMjBVtn2wNuaY6Rr\u0026s=QHpBgZ9iRsFiGNFZp8v1Yk7Nfklb_hT7g5RBEoNKEqmDUfctjVWm-3hN5jZMlIOwug_26HpGxQ66Lv0BlGAgH9iIoIiBKNrPyduvf4Ulxo1it-RePXBJXZbP5-Eq4GWFDODaLdYaSSm21EsOjdxjWdy-CZoDAeQicTVMszVc0Qo1wgLtW0SkmLT25NEol0J5V8jPNxXPfqh6f_dgwBo4a2vZPfca8iiHkv9mgDmwNK5mj_bEjL7pNHxvTMhyBFdkZ2yU7d4EoL_gnEcY6bxoMBbO0CJc08BOQsASZ89u8m-ohpfJK832lKLjdbimVVy3lU3Mh9fvRToo_n-spV5zBA\u0026h=BFj5Oj3J3KxzuLwCbd2cKhRWStToML4q47H4xCwsDTo+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/providers/Microsoft.Storage/locations/eastus/asyncoperations/b803f844-e34f-481a-9db1-018ac7ac6829?monitor=true\u0026api-version=2025-01-01\u0026t=638959219863833643\u0026c=MIIIpTCCBo2gAwIBAgITFgGpymN7LTW4kGDY9AABAanKYzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE2MDY0NzU2WhcNMjYwMTEyMDY0NzU2WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKTm5YrLmfx9BQfyqn0KlKU5oAoMO71ploN13WymwudXY4jancWivKtgBQUtClbNOMf8GYtxePPkFtxCfON6ynaA50b2GFHRrjRAHMFB49frm55UXml1ym0Wz3JH6bXBwGJBhpQkMn2aLk58hRpzNpxEu8BK4avf0oZczbk_PMUH85rY1z-QQUNFQb_nIO7v3SIOCK3CKt4GdAKztacTI1NAnA_-1QYq5xcwep6CETOHLmlB_JNwscGCDdFNyGB72czos_xXG50Xhzs81LE3w3j92c_7ddvO9ojBuiNMBdFbP7GW31DrqzglZVWg5GHxjEcuVEIKM8kcIdQ2s7z8aGkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQU0zUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ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1wgLtW0SkmLT25NEol0J5V8jPNxXPfqh6f_dgwBo4a2vZPfca8iiHkv9mgDmwNK5mj_bEjL7pNHxvTMhyBFdkZ2yU7d4EoL_gnEcY6bxoMBbO0CJc08BOQsASZ89u8m-ohpfJK832lKLjdbimVVy3lU3Mh9fvRToo_n-spV5zBA\u0026h=BFj5Oj3J3KxzuLwCbd2cKhRWStToML4q47H4xCwsDTo", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "49d6336e-95b7-474f-83f3-a35b0497d156" ], + "CommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration" ], + "FullCommandName": [ "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration_Reconcile" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v14.4.0", "PSVersion/v7.5.3", "Az.Storage/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-request-id": [ "ba3e362e-e209-4da6-95f3-7152e29d0bbb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-operation-identifier": [ "tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=c2bdc6ca-a59c-411c-bf1a-a97ceade71ea/southeastasia/2b2e8e06-03d5-4ab5-8446-c8826490e26d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "1099" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "16499" ], + "x-ms-correlation-request-id": [ "da182890-dbed-44d3-8380-8c9047886c74" ], + "x-ms-routing-request-id": [ "SOUTHEASTASIA:20251013T031324Z:da182890-dbed-44d3-8380-8c9047886c74" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 95C286F7FE584EF786759C5C40BBA369 Ref B: JKT201051406023 Ref C: 2025-10-13T03:13:24Z" ], + "Date": [ "Mon, 13 Oct 2025 03:13:24 GMT" ] + }, + "ContentHeaders": { + "Content-Type": [ "text/plain; charset=utf-8" ], + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Tests.ps1 b/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Tests.ps1 new file mode 100644 index 000000000000..9aa0925441ae --- /dev/null +++ b/src/Storage/Storage.Autorest/test/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Tests.ps1 @@ -0,0 +1,56 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get/List NSPConfig, and Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration' { + It 'Reconcile' { + ## before run the test, need create storage account and NSP and assiciate NSP with storage account + # New-AzStorageAccount -ResourceGroupName $env.NspResourceGroup -Name $env.NspAccount-SkuName Standard_LRS -Location eastus + # $account = Get-AzStorageAccount -ResourceGroupName $env.NspResourceGroup -Name $env.NspAccount + # $accountId = $account.Id + # $nsp = New-AzNetworkSecurityPerimeter -Name $nspName -ResourceGroupName $env.NspResourceGroup -Location eastus + # $profileNSP=New-AzNetworkSecurityPerimeterProfile -Name $nspProfileName -ResourceGroupName $env.NspResourceGroup -SecurityPerimeterName $nspName + # $aso = New-AzNetworkSecurityPerimeterAssociation -AssociationName weitest -ResourceGroupName $env.NspResourceGroup -SecurityPerimeterName $nspName -AccessMode Learning -ProfileId $profileNSP.Id -PrivateLinkResourceId $accountId + + # List + $nspconfig = Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName $env.NspResourceGroup -AccountName $env.NspAccount + $nspConfigName = $nspconfig[0].Name + $nspconfig.Count| Should -Be 1 + $nspconfig[0].ResourceGroupName | Should -Be $env.NspResourceGroup + $nspconfig[0].ProfileName | Should -not -Be $null + $nspconfig[0].ProvisioningState | Should -Be "Succeeded" + $nspconfig[0].Name.contains($nspconfig[0].NetworkSecurityPerimeterGuid ) | Should -Be $true + + # Get + $nspconfig2 = Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName $env.NspResourceGroup -AccountName $env.NspAccount -Name $nspConfigName + $nspconfig.Count| Should -Be 1 + $nspconfig2[0].ResourceGroupName | Should -Be $nspconfig[0].ResourceGroupName + $nspconfig2[0].ProfileName | Should -Be $nspconfig[0].ProfileName + $nspconfig2[0].ProvisioningState | Should -Be $nspconfig[0].ProvisioningState + $nspconfig2[0].Name | Should -Be $nspconfig[0].Name + $nspconfig2[0].Id | Should -Be $nspconfig[0].Id + + # Reconcile + Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName $env.NspResourceGroup -AccountName $env.NspAccount -NetworkSecurityPerimeterConfigurationName $nspConfigName + } + + It 'ReconcileViaIdentityStorageAccount' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'ReconcileViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Storage/Storage.Autorest/test/env.json b/src/Storage/Storage.Autorest/test/env.json index ec39c382ca8c..1e2d59662bbe 100644 --- a/src/Storage/Storage.Autorest/test/env.json +++ b/src/Storage/Storage.Autorest/test/env.json @@ -1,11 +1,13 @@ { - "ResourceGroupName": "testaccountmigrationrg", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "NspAccount": "nspaccount", + "AccountName": "testaccountmigration111", + "RandomString": "15oz7wqm", "FilePV2AccountName": "pshtestaccountpv2", - "RandomString": "hr1go4zu", "SubscriptionId": "45b60d85-fd72-427a-a708-f994d26e593e", - "TaskID": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.StorageActions/storageTasks/mytask1", "TaskAssignmentResourceGroup": "testtaskassignmentrg", - "TaskAssignmentAccount": "testassignmentaccount2", - "AccountName": "testaccountmigration111", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" + "TaskID": "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.StorageActions/storageTasks/mytask1", + "ResourceGroupName": "testaccountmigrationrg", + "NspResourceGroup": "nsprg", + "TaskAssignmentAccount": "testassignmentaccount2" } diff --git a/src/Storage/Storage.Autorest/test/utils.ps1 b/src/Storage/Storage.Autorest/test/utils.ps1 index 168d65685063..c2fdc09b62ef 100644 --- a/src/Storage/Storage.Autorest/test/utils.ps1 +++ b/src/Storage/Storage.Autorest/test/utils.ps1 @@ -56,6 +56,8 @@ function setupEnv() { $env.TaskID = "/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/weitry/providers/Microsoft.StorageActions/storageTasks/mytask1" $env.TaskAssignmentResourceGroup = "testtaskassignmentrg" $env.TaskAssignmentAccount = "testassignmentaccount2" + $env.NspResourceGroup = "nsprg" + $env.NspAccount = "nspaccount" set-content -Path (Join-Path $PSScriptRoot $envFile) -Value (ConvertTo-Json $env) } diff --git a/src/Storage/Storage.Management/Az.Storage.psd1 b/src/Storage/Storage.Management/Az.Storage.psd1 index c1f9d875dd6d..cc1323fc2263 100644 --- a/src/Storage/Storage.Management/Az.Storage.psd1 +++ b/src/Storage/Storage.Management/Az.Storage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 10/9/2025 +# Generated on: 10/13/2025 # @{ @@ -74,10 +74,10 @@ RequiredAssemblies = 'Azure.Data.Tables.dll', 'Azure.Storage.Blobs.dll', 'System.IO.Hashing.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'Storage.Autorest/Az.Storage.format.ps1xml', @@ -91,8 +91,10 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Storage.dll', # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = 'Get-AzStorageAccountMigration', 'Get-AzStorageFileServiceUsage', + 'Get-AzStorageNetworkSecurityPerimeterConfiguration', 'Get-AzStorageSku', 'Get-AzStorageTaskAssignment', 'Get-AzStorageTaskAssignmentInstancesReport', + 'Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration', 'New-AzStorageTaskAssignment', 'Remove-AzStorageTaskAssignment', 'Start-AzStorageAccountMigration', 'Update-AzStorageTaskAssignment' @@ -127,9 +129,9 @@ CmdletsToExport = 'Add-AzRmStorageContainerLegalHold', 'Get-AzStorageEncryptionScope', 'Get-AzStorageFile', 'Get-AzStorageFileContent', 'Get-AzStorageFileCopyState', 'Get-AzStorageFileHandle', 'Get-AzStorageFileServiceProperty', - 'Get-AzStorageLocalUser', 'Get-AzStorageLocalUserKey', - 'Get-AzStorageObjectReplicationPolicy', 'Get-AzStorageQueue', - 'Get-AzStorageQueueStoredAccessPolicy', + 'Get-AzStorageFileSymbolicLink', 'Get-AzStorageLocalUser', + 'Get-AzStorageLocalUserKey', 'Get-AzStorageObjectReplicationPolicy', + 'Get-AzStorageQueue', 'Get-AzStorageQueueStoredAccessPolicy', 'Get-AzStorageServiceLoggingProperty', 'Get-AzStorageServiceMetricsProperty', 'Get-AzStorageServiceProperty', 'Get-AzStorageShare', @@ -154,6 +156,7 @@ CmdletsToExport = 'Add-AzRmStorageContainerLegalHold', 'New-AzStorageContainerStoredAccessPolicy', 'New-AzStorageContext', 'New-AzStorageDirectory', 'New-AzStorageEncryptionScope', 'New-AzStorageFileHardLink', 'New-AzStorageFileSASToken', + 'New-AzStorageFileSymbolicLink', 'New-AzStorageLocalUserPermissionScope', 'New-AzStorageLocalUserSshPassword', 'New-AzStorageLocalUserSshPublicKey', @@ -208,8 +211,7 @@ CmdletsToExport = 'Add-AzRmStorageContainerLegalHold', 'Update-AzStorageBlobServiceProperty', 'Update-AzStorageEncryptionScope', 'Update-AzStorageFileServiceProperty', - 'Update-AzStorageServiceProperty', 'New-AzStorageFileSymbolicLink', - 'Get-AzStorageFileSymbolicLink' + 'Update-AzStorageServiceProperty' # Variables to export from this module # VariablesToExport = @() @@ -236,7 +238,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Storage','StorageAccount' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Storage', 'StorageAccount' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -265,7 +267,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 0e61f95ac291..b29a8000f0d8 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,9 @@ - Additional information about change #1 --> ## Upcoming Release +* Supported get and reconcile NSP Configuration on a Storage account: + - `Get-AzStorageNetworkSecurityPerimeterConfiguration` + - `Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration` ## Version 9.2.0 * Supported Zone and ZonePlacementPolicy on Storage accounts: `New-AzStorageAccount`, `Set-AzStorageAccount` diff --git a/src/Storage/Storage.Management/help/Az.Storage.md b/src/Storage/Storage.Management/help/Az.Storage.md index 45efc7dc9c30..c80a005ab257 100644 --- a/src/Storage/Storage.Management/help/Az.Storage.md +++ b/src/Storage/Storage.Management/help/Az.Storage.md @@ -156,7 +156,7 @@ Gets service properties for Azure Storage File services. Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula. ### [Get-AzStorageFileSymbolicLink](Get-AzStorageFileSymbolicLink.md) -Gets the value of a symbolic link. Only works in NFS file share. +Gets the properties of a symbolic link. Only works in NFS file share. ### [Get-AzStorageLocalUser](Get-AzStorageLocalUser.md) Gets a specified local user or lists all local users in a storage account. @@ -164,6 +164,9 @@ Gets a specified local user or lists all local users in a storage account. ### [Get-AzStorageLocalUserKey](Get-AzStorageLocalUserKey.md) Lists SSH authorized keys and shared key of a specified local user. +### [Get-AzStorageNetworkSecurityPerimeterConfiguration](Get-AzStorageNetworkSecurityPerimeterConfiguration.md) +Gets effective NetworkSecurityPerimeterConfiguration for association + ### [Get-AzStorageObjectReplicationPolicy](Get-AzStorageObjectReplicationPolicy.md) Gets or lists object replication policy of a Storage account. @@ -215,6 +218,9 @@ Invokes failover of a Storage account. ### [Invoke-AzStorageAccountHierarchicalNamespaceUpgrade](Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md) Validates if a storage account can be upgraded to enable HierarchicalNamespace, or upgrades a Storage account to enabled HierarchicalNamespace. +### [Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration](Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md) +Refreshes any information about the association. + ### [Lock-AzRmStorageContainerImmutabilityPolicy](Lock-AzRmStorageContainerImmutabilityPolicy.md) Locks ImmutabilityPolicy of a Storage blob containers @@ -553,5 +559,5 @@ Modifies the service properties for the Azure Storage File service. Modifies the properties for the Azure Storage service. ### [Update-AzStorageTaskAssignment](Update-AzStorageTaskAssignment.md) -update storage task assignment properties +Update storage task assignment properties diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFileSymbolicLink.md b/src/Storage/Storage.Management/help/Get-AzStorageFileSymbolicLink.md index f83990156333..ec53135081b9 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFileSymbolicLink.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFileSymbolicLink.md @@ -16,21 +16,24 @@ Gets the properties of a symbolic link. Only works in NFS file share. ``` Get-AzStorageFileSymbolicLink [-ShareName] [-Path] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] + [] ``` ### Share ``` Get-AzStorageFileSymbolicLink [-ShareClient] [-Path] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] + [] ``` ### Directory ``` Get-AzStorageFileSymbolicLink [-ShareDirectoryClient] [-Path] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] + [] ``` ## DESCRIPTION @@ -114,7 +117,7 @@ $link = $shareClient | Get-AzStorageFileSymbolicLink -Path "linkdir/mylink" This command gets a symbolic link using a ShareClient object obtained from Get-AzStorageShare, demonstrating the pipeline usage with the Share parameter set. -### Example 4: Get symbolic link using ShareDirectoryClient pipeline +### Example 4: Get symbolic link using ShareDirectoryClient pipeline ```powershell $ctx = New-AzStorageContext -StorageAccountName "myaccount" -EnableFileBackupRequestIntent $dirClient = Get-AzStorageFile -ShareName "nfsshare" -Path "linkdir" -Context $ctx diff --git a/src/Storage/Storage.Management/help/Get-AzStorageNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Management/help/Get-AzStorageNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..77320478116e --- /dev/null +++ b/src/Storage/Storage.Management/help/Get-AzStorageNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,233 @@ +--- +external help file: Az.Storage-help.xml +Module Name: Az.Storage +online version: https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration +schema: 2.0.0 +--- + +# Get-AzStorageNetworkSecurityPerimeterConfiguration + +## SYNOPSIS +Gets effective NetworkSecurityPerimeterConfiguration for association + +## SYNTAX + +### List (Default) +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -AccountName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -AccountName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentityStorageAccount +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -Name -StorageAccountInputObject + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzStorageNetworkSecurityPerimeterConfiguration -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets effective NetworkSecurityPerimeterConfiguration for association + +## EXAMPLES + +### Example 1: Get a NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -Name "00000000-0000-0000-0000-000000000000.associationame" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command gets a NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount" with the nspConfig Name. + +### Example 2: List NetworkSecurityPerimeterConfiguration associated with a storage account +```powershell +Get-AzStorageNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" +``` + +```output +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Storage/storageAccounts/nspaccount/networkSecurityPerimeterConfigurations/00000000-0000-0000-0000-000000000000.associationame +Name : 00000000-0000-0000-0000-000000000000.associationame +NetworkSecurityPerimeterGuid : 00000000-0000-0000-0000-000000000000 +NetworkSecurityPerimeterId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nsprg/providers/Microsoft.Network/networkSecurityPerimeters/nspname +NetworkSecurityPerimeterLocation : eastus +ProfileAccessRule : {} +ProfileAccessRulesVersion : 0 +ProfileDiagnosticSettingsVersion : 0 +ProfileEnabledLogCategory : {} +ProfileName : nsptest +ProvisioningIssue : +ProvisioningState : Succeeded +ResourceAssociationAccessMode : Learning +ResourceAssociationName : associationame +ResourceGroupName : nsprg +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : Microsoft.Storage/storageAccounts/networkSecurityPerimeterConfigurations +``` + +This command lists all NetworkSecurityPerimeterConfiguration associated with a storage account "nspaccount". + +## PARAMETERS + +### -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. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name for Network Security Perimeter configuration + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityStorageAccount +Aliases: NetworkSecurityPerimeterConfigurationName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group within the user's subscription. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: GetViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.INetworkSecurityPerimeterConfiguration + +## NOTES + +## RELATED LINKS diff --git a/src/Storage/Storage.Management/help/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md b/src/Storage/Storage.Management/help/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md new file mode 100644 index 000000000000..e3d428a7203f --- /dev/null +++ b/src/Storage/Storage.Management/help/Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md @@ -0,0 +1,249 @@ +--- +external help file: Az.Storage-help.xml +Module Name: Az.Storage +online version: https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration +schema: 2.0.0 +--- + +# Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration + +## SYNOPSIS +Refreshes any information about the association. + +## SYNTAX + +### Reconcile (Default) +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -AccountName + -NetworkSecurityPerimeterConfigurationName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### ReconcileViaIdentityStorageAccount +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration + -NetworkSecurityPerimeterConfigurationName -StorageAccountInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### ReconcileViaIdentity +``` +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -InputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Refreshes any information about the association. + +## EXAMPLES + +### Example 1: Reconciles the NSP association of a storage account +```powershell +Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration -ResourceGroupName "nsprg" -AccountName "nspaccount" -NetworkSecurityPerimeterConfigurationName "00000000-0000-0000-0000-000000000000.associationame" +``` + +This command refreshes any information about the NSP association of a storage account + +## PARAMETERS + +### -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. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: ReconcileViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterConfigurationName +The name for Network Security Perimeter configuration + +```yaml +Type: System.String +Parameter Sets: Reconcile, ReconcileViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group within the user's subscription. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +Parameter Sets: ReconcileViaIdentityStorageAccount +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Reconcile +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/Storage/Storage.Management/help/New-AzStorageFileSymbolicLink.md b/src/Storage/Storage.Management/help/New-AzStorageFileSymbolicLink.md index a94fbb7464ae..d5f570d10902 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageFileSymbolicLink.md +++ b/src/Storage/Storage.Management/help/New-AzStorageFileSymbolicLink.md @@ -36,8 +36,8 @@ New-AzStorageFileSymbolicLink [-ShareDirectoryClient] [-P [-LinkText] [-Metadata ] [-FileCreatedOn ] [-FileLastWrittenOn ] [-Owner ] [-Group ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION diff --git a/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md index b5dcc2fe2f9e..43d59b227992 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md @@ -523,749 +523,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable [Get-AzStorageAccountManagementPolicy](./Get-AzStorageAccountManagementPolicy.md) -[Remove-AzStorageAccountManagementPolicy](./Remove-AzStorageAccountManagementPolicy.md) - - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Policy -Management Policy Object to Set - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy -Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject -Aliases: ManagementPolicy - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] -Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccount -Storage account object - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount -Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccountName -Storage Account Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: AccountName - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StorageAccountResourceId -Storage Account Resource Id. - -```yaml -Type: System.String -Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -## NOTES - -## RELATED LINKS - - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Policy -Management Policy Object to Set - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy -Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject -Aliases: ManagementPolicy - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] -Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccount -Storage account object - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount -Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccountName -Storage Account Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: AccountName - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StorageAccountResourceId -Storage Account Resource Id. - -```yaml -Type: System.String -Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -## NOTES - -## RELATED LINKS - - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Policy -Management Policy Object to Set - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy -Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject -Aliases: ManagementPolicy - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] -Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccount -Storage account object - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount -Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccountName -Storage Account Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: AccountName - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StorageAccountResourceId -Storage Account Resource Id. - -```yaml -Type: System.String -Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -## NOTES - -## RELATED LINKS - - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Policy -Management Policy Object to Set - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy -Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject -Aliases: ManagementPolicy - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] -Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccount -Storage account object - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount -Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccountName -Storage Account Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: AccountName - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StorageAccountResourceId -Storage Account Resource Id. - -```yaml -Type: System.String -Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -## NOTES - -## RELATED LINKS - - -## PARAMETERS - -### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. - -```yaml -Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer -Parameter Sets: (All) -Aliases: AzContext, AzureRmContext, AzureCredential - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Policy -Management Policy Object to Set - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy -Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject -Aliases: ManagementPolicy - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -ResourceGroupName -Resource Group Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -Rule -The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] -Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccount -Storage account object - -```yaml -Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount -Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - -### -StorageAccountName -Storage Account Name. - -```yaml -Type: System.String -Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject -Aliases: AccountName - -Required: True -Position: 1 -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -StorageAccountResourceId -Storage Account Resource Id. - -```yaml -Type: System.String -Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject -Aliases: - -Required: True -Position: 0 -Default value: None -Accept pipeline input: True (ByPropertyName) -Accept wildcard characters: False -``` - -### -Confirm -Prompts you for confirmation before running the cmdlet. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: cf - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### -WhatIf -Shows what would happen if the cmdlet runs. The cmdlet is not run. - -```yaml -Type: System.Management.Automation.SwitchParameter -Parameter Sets: (All) -Aliases: wi - -Required: False -Position: Named -Default value: None -Accept pipeline input: False -Accept wildcard characters: False -``` - -### CommonParameters -This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). - -## INPUTS - -## OUTPUTS - -## NOTES - -## RELATED LINKS +[Remove-AzStorageAccountManagementPolicy](./Remove-AzStorageAccountManagementPolicy.md) \ No newline at end of file diff --git a/src/Storage/Storage.sln b/src/Storage/Storage.sln index ef67d3678f44..a068afd5d6c3 100644 --- a/src/Storage/Storage.sln +++ b/src/Storage/Storage.sln @@ -35,7 +35,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Storage.common", "Storage.c EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Storage.Autorest", "Storage.Autorest", "{1E0B346E-62FD-A2E7-C013-81285A9FF5CA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Storage", "..\..\generated\Storage\Storage.Autorest\Az.Storage.csproj", "{C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Storage", "..\..\generated\Storage\Storage.Autorest\Az.Storage.csproj", "{349D00AD-354C-4008-A655-20DDD1894A4D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -203,18 +203,18 @@ Global {612125D7-36AF-4889-AB38-9B4D0D37CF0F}.Release|x64.Build.0 = Release|Any CPU {612125D7-36AF-4889-AB38-9B4D0D37CF0F}.Release|x86.ActiveCfg = Release|Any CPU {612125D7-36AF-4889-AB38-9B4D0D37CF0F}.Release|x86.Build.0 = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|x64.ActiveCfg = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|x64.Build.0 = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|x86.ActiveCfg = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Debug|x86.Build.0 = Debug|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|Any CPU.Build.0 = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|x64.ActiveCfg = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|x64.Build.0 = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|x86.ActiveCfg = Release|Any CPU - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC}.Release|x86.Build.0 = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|x64.ActiveCfg = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|x64.Build.0 = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|x86.ActiveCfg = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Debug|x86.Build.0 = Debug|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|Any CPU.Build.0 = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|x64.ActiveCfg = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|x64.Build.0 = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|x86.ActiveCfg = Release|Any CPU + {349D00AD-354C-4008-A655-20DDD1894A4D}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -229,6 +229,6 @@ Global {DED0C473-64A1-4615-9CD1-776D2EB11619} = {9ADC2E4A-DFC5-4CDC-9AB7-DC5E61E10C4F} {81B2C882-F205-411B-9EEC-A387E1D7B23C} = {9ADC2E4A-DFC5-4CDC-9AB7-DC5E61E10C4F} {DDCE5245-E4F2-4F1B-B669-D81A920AAD21} = {9ADC2E4A-DFC5-4CDC-9AB7-DC5E61E10C4F} - {C9FA1FE0-E2B4-414E-A238-0464AE52A7CC} = {1E0B346E-62FD-A2E7-C013-81285A9FF5CA} + {349D00AD-354C-4008-A655-20DDD1894A4D} = {1E0B346E-62FD-A2E7-C013-81285A9FF5CA} EndGlobalSection EndGlobal