Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
1 change: 1 addition & 0 deletions src/Storage/Storage.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"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 <String>",
"-NetworkSecurityPerimeterConfigurationName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"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]"
}
]
}
]
}
]
}
8 changes: 7 additions & 1 deletion src/Storage/Storage.Autorest/docs/Az.Storage.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.

Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <String> -ResourceGroupName <String>
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### Get
```
Get-AzStorageNetworkSecurityPerimeterConfiguration -AccountName <String> -Name <String>
-ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzStorageNetworkSecurityPerimeterConfiguration -InputObject <IStorageIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### GetViaIdentityStorageAccount
```
Get-AzStorageNetworkSecurityPerimeterConfiguration -Name <String>
-StorageAccountInputObject <IStorageIdentity> [-DefaultProfile <PSObject>] [<CommonParameters>]
```

## 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

Loading