diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.psd1 b/src/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.psd1 index 9e8a572cd12b..f081ffa25557 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.psd1 +++ b/src/Network/NetworkSecurityPerimeter.Autorest/Az.NetworkSecurityPerimeter.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.NetworkSecurityPerimeter.private.dll' FormatsToProcess = './Az.NetworkSecurityPerimeter.format.ps1xml' - FunctionsToExport = 'Get-AzNetworkSecurityPerimeter', 'Get-AzNetworkSecurityPerimeterAccessRule', 'Get-AzNetworkSecurityPerimeterAssociableResourceType', 'Get-AzNetworkSecurityPerimeterAssociation', 'Get-AzNetworkSecurityPerimeterLink', 'Get-AzNetworkSecurityPerimeterLinkReference', 'Get-AzNetworkSecurityPerimeterProfile', 'New-AzNetworkSecurityPerimeter', 'New-AzNetworkSecurityPerimeterAccessRule', 'New-AzNetworkSecurityPerimeterAssociation', 'New-AzNetworkSecurityPerimeterLink', 'New-AzNetworkSecurityPerimeterProfile', 'Remove-AzNetworkSecurityPerimeter', 'Remove-AzNetworkSecurityPerimeterAccessRule', 'Remove-AzNetworkSecurityPerimeterAssociation', 'Remove-AzNetworkSecurityPerimeterLink', 'Remove-AzNetworkSecurityPerimeterLinkReference', 'Remove-AzNetworkSecurityPerimeterProfile', 'Update-AzNetworkSecurityPerimeterAccessRule', 'Update-AzNetworkSecurityPerimeterAssociation', 'Update-AzNetworkSecurityPerimeterLink' + FunctionsToExport = 'Get-AzNetworkSecurityPerimeter', 'Get-AzNetworkSecurityPerimeterAccessRule', 'Get-AzNetworkSecurityPerimeterAssociableResourceType', 'Get-AzNetworkSecurityPerimeterAssociation', 'Get-AzNetworkSecurityPerimeterLink', 'Get-AzNetworkSecurityPerimeterLinkReference', 'Get-AzNetworkSecurityPerimeterProfile', 'Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile', 'Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile', 'New-AzNetworkSecurityPerimeter', 'New-AzNetworkSecurityPerimeterAccessRule', 'New-AzNetworkSecurityPerimeterAssociation', 'New-AzNetworkSecurityPerimeterLink', 'New-AzNetworkSecurityPerimeterProfile', 'Remove-AzNetworkSecurityPerimeter', 'Remove-AzNetworkSecurityPerimeterAccessRule', 'Remove-AzNetworkSecurityPerimeterAssociation', 'Remove-AzNetworkSecurityPerimeterLink', 'Remove-AzNetworkSecurityPerimeterLinkReference', 'Remove-AzNetworkSecurityPerimeterProfile', 'Update-AzNetworkSecurityPerimeter', 'Update-AzNetworkSecurityPerimeterAccessRule', 'Update-AzNetworkSecurityPerimeterAssociation', 'Update-AzNetworkSecurityPerimeterLink' PrivateData = @{ PSData = @{ Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'NetworkSecurityPerimeter' diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-profiles-accessRules.json b/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-profiles-accessRules.json index 032cc7554645..e705aa471ed5 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-profiles-accessRules.json +++ b/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-profiles-accessRules.json @@ -53,6 +53,54 @@ } ] }, + { + "name": "Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile", + "description": "Reconcile NSP access rules", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/profiles/{profileName}/accessRules/{accessRuleName}/reconcile", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.network/invoke-aznetworksecurityperimeternspaccessrulesreconcile" + }, + "parameterSets": [ + { + "parameters": [ + "-AccessRuleName ", + "-NetworkSecurityPerimeterName ", + "-ProfileName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Reconcile NSP access rules", + "parameters": [ + { + "name": "-AccessRuleName", + "value": "[Path.accessRuleName]" + }, + { + "name": "-NetworkSecurityPerimeterName", + "value": "[Path.networkSecurityPerimeterName]" + }, + { + "name": "-ProfileName", + "value": "[Path.profileName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Remove-AzNetworkSecurityPerimeterAccessRule", "description": "Deletes an NSP access rule.", diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-resourceAssociations.json b/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-resourceAssociations.json index f9a1583239cf..e0b1ed8a9bdd 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-resourceAssociations.json +++ b/src/Network/NetworkSecurityPerimeter.Autorest/UX/Microsoft.Network/networkSecurityPerimeters-resourceAssociations.json @@ -48,6 +48,49 @@ } ] }, + { + "name": "Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile", + "description": "Reconcile NSP association", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityPerimeters/{networkSecurityPerimeterName}/resourceAssociations/{associationName}/reconcile", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.network/invoke-aznetworksecurityperimeternspassociationreconcile" + }, + "parameterSets": [ + { + "parameters": [ + "-AssociationName ", + "-NetworkSecurityPerimeterName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Reconcile NSP association", + "parameters": [ + { + "name": "-AssociationName", + "value": "[Path.associationName]" + }, + { + "name": "-NetworkSecurityPerimeterName", + "value": "[Path.networkSecurityPerimeterName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, { "name": "Remove-AzNetworkSecurityPerimeterAssociation", "description": "Deletes an NSP association resource.", diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md index c4c45e07115f..8c0bed6c7824 100644 --- a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Az.NetworkSecurityPerimeter.md @@ -33,6 +33,12 @@ Gets the specified NSP linkReference resource. ### [Get-AzNetworkSecurityPerimeterProfile](Get-AzNetworkSecurityPerimeterProfile.md) Gets the specified NSP profile. +### [Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile](Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md) +Reconcile NSP access rules + +### [Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile](Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md) +Reconcile NSP association + ### [New-AzNetworkSecurityPerimeter](New-AzNetworkSecurityPerimeter.md) Create a Network Security Perimeter. @@ -66,6 +72,8 @@ Deletes an NSP LinkReference resource. ### [Remove-AzNetworkSecurityPerimeterProfile](Remove-AzNetworkSecurityPerimeterProfile.md) Deletes an NSP profile. +### [Update-AzNetworkSecurityPerimeter](Update-AzNetworkSecurityPerimeter.md) +Patch Tags for a Network Security Perimeter. ### [Update-AzNetworkSecurityPerimeterAccessRule](Update-AzNetworkSecurityPerimeterAccessRule.md) Updates an access rule. diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md new file mode 100644 index 000000000000..5878e529bd73 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md @@ -0,0 +1,335 @@ +--- +external help file: +Module Name: Az.Network +online version: https://learn.microsoft.com/powershell/module/az.network/invoke-aznetworksecurityperimeternspaccessrulesreconcile +schema: 2.0.0 +--- + +# Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile + +## SYNOPSIS +Reconcile NSP access rules + +## SYNTAX + +### PostExpanded (Default) +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterName -ProfileName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### Post +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterName -ProfileName -ResourceGroupName -Parameter + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentity +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -InputObject + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityExpanded +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -InputObject + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityNetworkSecurityPerimeter +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterInputObject -ProfileName + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityNetworkSecurityPerimeterExpanded +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterInputObject -ProfileName + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityProfile +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -ProfileInputObject -Parameter [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityProfileExpanded +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -ProfileInputObject [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### PostViaJsonFilePath +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterName -ProfileName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### PostViaJsonString +``` +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName + -NetworkSecurityPerimeterName -ProfileName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Reconcile NSP access rules + +## EXAMPLES + +### Example 1: Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules +```powershell +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName MyAccessRule -ProfileName profile -ResourceGroupName ResourceGroup-1 -NetworkSecurityPerimeterName nsp3 +``` + +Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules + +### Example 2: Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeterAccessRule -Name ar3 -ProfileName profile1 -ResourceGroupName ResourceGroup-1 -SecurityPerimeterName nsp3 + Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -InputObject $GETObj +``` + +Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules by identity (using pipe) + +## PARAMETERS + +### -AccessRuleName +The name of the NSP access rule. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityNetworkSecurityPerimeterExpanded, PostViaIdentityProfile, PostViaIdentityProfileExpanded, PostViaJsonFilePath, PostViaJsonString +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.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PostViaIdentity, PostViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Post operation + +```yaml +Type: System.String +Parameter Sets: PostViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Post operation + +```yaml +Type: System.String +Parameter Sets: PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityNetworkSecurityPerimeterExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterName +The name of the network security perimeter. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Anything + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IAny +Parameter Sets: Post, PostViaIdentity, PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityProfile +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProfileInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PostViaIdentityProfile, PostViaIdentityProfileExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProfileName +The name of the NSP profile. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityNetworkSecurityPerimeterExpanded, PostViaJsonFilePath, PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +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.NetworkSecurityPerimeter.Models.IAny + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IAny + +## NOTES + +## RELATED LINKS + diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md new file mode 100644 index 000000000000..333b2ab44eb7 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md @@ -0,0 +1,290 @@ +--- +external help file: +Module Name: Az.Network +online version: https://learn.microsoft.com/powershell/module/az.network/invoke-aznetworksecurityperimeternspassociationreconcile +schema: 2.0.0 +--- + +# Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile + +## SYNOPSIS +Reconcile NSP association + +## SYNTAX + +### PostExpanded (Default) +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### Post +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterName -ResourceGroupName -Parameter + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentity +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -InputObject + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityExpanded +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -InputObject + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityNetworkSecurityPerimeter +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterInputObject -Parameter + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaIdentityNetworkSecurityPerimeterExpanded +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterInputObject [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +### PostViaJsonFilePath +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterName -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PostViaJsonString +``` +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName + -NetworkSecurityPerimeterName -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Reconcile NSP association + +## EXAMPLES + +### Example 1: Reconcile NSP association +```powershell +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName association3 -NetworkSecurityPerimeterName nsp3 -ResourceGroupName ResourceGroup-1 +``` + +Reconcile NSP association + +### Example 2: Reconcile NSP association by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeterAssociation -Name association3 -ResourceGroupName ResourceGroup-1 -SecurityPerimeterName nsp3 + Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -InputObject $GETObj +``` + +Reconcile NSP association by identity (using pipe) + +## PARAMETERS + +### -AssociationName +The name of the NSP association. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityNetworkSecurityPerimeterExpanded, PostViaJsonFilePath, PostViaJsonString +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.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PostViaIdentity, PostViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Post operation + +```yaml +Type: System.String +Parameter Sets: PostViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Post operation + +```yaml +Type: System.String +Parameter Sets: PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PostViaIdentityNetworkSecurityPerimeter, PostViaIdentityNetworkSecurityPerimeterExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NetworkSecurityPerimeterName +The name of the network security perimeter. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Anything + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IAny +Parameter Sets: Post, PostViaIdentity, PostViaIdentityNetworkSecurityPerimeter +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Post, PostExpanded, PostViaJsonFilePath, PostViaJsonString +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.NetworkSecurityPerimeter.Models.IAny + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IAny + +## NOTES + +## RELATED LINKS + diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/docs/Update-AzNetworkSecurityPerimeter.md b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Update-AzNetworkSecurityPerimeter.md new file mode 100644 index 000000000000..71a3b0ee6721 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/docs/Update-AzNetworkSecurityPerimeter.md @@ -0,0 +1,271 @@ +--- +external help file: +Module Name: Az.Network +online version: https://learn.microsoft.com/powershell/module/az.network/update-aznetworksecurityperimeter +schema: 2.0.0 +--- + +# Update-AzNetworkSecurityPerimeter + +## SYNOPSIS +Patch Tags for a Network Security Perimeter. + +## SYNTAX + +### PatchExpanded (Default) +``` +Update-AzNetworkSecurityPerimeter -Name -ResourceGroupName [-SubscriptionId ] + [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### Patch +``` +Update-AzNetworkSecurityPerimeter -Name -ResourceGroupName -Parameter + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchViaIdentity +``` +Update-AzNetworkSecurityPerimeter -InputObject + -Parameter [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchViaIdentityExpanded +``` +Update-AzNetworkSecurityPerimeter -InputObject [-Tag ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchViaJsonFilePath +``` +Update-AzNetworkSecurityPerimeter -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### PatchViaJsonString +``` +Update-AzNetworkSecurityPerimeter -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Patch Tags for a Network Security Perimeter. + +## EXAMPLES + +### Example 1: Updates a NetworkSecurityPerimeter +```powershell + +Update-AzNetworkSecurityPerimeter -Name nsp3 -ResourceGroupName ResourceGroup-1 + +``` + +```output +Location Name +-------- ---- + nsp3 +``` + +Updates a NetworkSecurityPerimeter + +### Example 2: Updates a NetworkSecurityPerimeter by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeter -Name nsp3 -ResourceGroupName ResourceGroup-1 + Update-AzNetworkSecurityPerimeter -InputObject $GETObj +``` + +```output +Location Name +-------- ---- + nsp3 +``` + +Updates a NetworkSecurityPerimeter by identity (using pipe) + +## PARAMETERS + +### -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.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity +Parameter Sets: PatchViaIdentity, PatchViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the network security perimeter. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString +Aliases: NetworkSecurityPerimeterName, SecurityPerimeterName, NSPName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Parameter +Update tags request. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IUpdateTagsRequest +Parameter Sets: Patch, PatchViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The subscription credentials which uniquely identify the Microsoft Azure subscription. +The subscription ID forms part of the URI for every service call. + +```yaml +Type: System.String +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +List of tags for Network Security Perimeter + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: PatchExpanded, PatchViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +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.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeterIdentity + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.IUpdateTagsRequest + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.NetworkSecurityPerimeter.Models.INetworkSecurityPerimeter + +## NOTES + +## RELATED LINKS + diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md new file mode 100644 index 000000000000..23b9c955ecfd --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.md @@ -0,0 +1,15 @@ +### Example 1: Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules +```powershell +Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -AccessRuleName MyAccessRule -ProfileName profile -ResourceGroupName ResourceGroup-1 -NetworkSecurityPerimeterName nsp3 +``` + +Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules + +### Example 2: Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeterAccessRule -Name ar3 -ProfileName profile1 -ResourceGroupName ResourceGroup-1 -SecurityPerimeterName nsp3 + Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile -InputObject $GETObj +``` + +Invoke Reconcile of NetworkSecurityPerimeterNsp AccessRules by identity (using pipe) + diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md new file mode 100644 index 000000000000..c4c605d8f368 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.md @@ -0,0 +1,15 @@ +### Example 1: Reconcile NSP association +```powershell +Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -AssociationName association3 -NetworkSecurityPerimeterName nsp3 -ResourceGroupName ResourceGroup-1 +``` + +Reconcile NSP association + +### Example 2: Reconcile NSP association by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeterAssociation -Name association3 -ResourceGroupName ResourceGroup-1 -SecurityPerimeterName nsp3 + Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile -InputObject $GETObj +``` + +Reconcile NSP association by identity (using pipe) + diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/examples/Update-AzNetworkSecurityPerimeter.md b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Update-AzNetworkSecurityPerimeter.md new file mode 100644 index 000000000000..337e31cf3309 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/examples/Update-AzNetworkSecurityPerimeter.md @@ -0,0 +1,28 @@ +### Example 1: Updates a NetworkSecurityPerimeter +```powershell + +Update-AzNetworkSecurityPerimeter -Name nsp3 -ResourceGroupName ResourceGroup-1 + +``` + +```output +Location Name +-------- ---- + nsp3 +``` + +Updates a NetworkSecurityPerimeter + +### Example 2: Updates a NetworkSecurityPerimeter by identity (using pipe) +```powershell + $GETObj = Get-AzNetworkSecurityPerimeter -Name nsp3 -ResourceGroupName ResourceGroup-1 + Update-AzNetworkSecurityPerimeter -InputObject $GETObj +``` + +```output +Location Name +-------- ---- + nsp3 +``` + +Updates a NetworkSecurityPerimeter by identity (using pipe) \ No newline at end of file diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.Tests.ps1 b/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.Tests.ps1 new file mode 100644 index 000000000000..16b865719cee --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.Tests.ps1 @@ -0,0 +1,57 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile.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 'Invoke-AzNetworkSecurityPerimeterNspAccessRulesReconcile' { + It 'PostExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityProfileExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityProfile' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityNetworkSecurityPerimeterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityNetworkSecurityPerimeter' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Post' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.Tests.ps1 b/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.Tests.ps1 new file mode 100644 index 000000000000..d5e1fc5fafd5 --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/test/Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.Tests.ps1 @@ -0,0 +1,49 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile.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 'Invoke-AzNetworkSecurityPerimeterNspAssociationReconcile' { + It 'PostExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityNetworkSecurityPerimeterExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityNetworkSecurityPerimeter' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Post' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PostViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/Network/NetworkSecurityPerimeter.Autorest/test/Update-AzNetworkSecurityPerimeter.Tests.ps1 b/src/Network/NetworkSecurityPerimeter.Autorest/test/Update-AzNetworkSecurityPerimeter.Tests.ps1 new file mode 100644 index 000000000000..a8f2f8bf320e --- /dev/null +++ b/src/Network/NetworkSecurityPerimeter.Autorest/test/Update-AzNetworkSecurityPerimeter.Tests.ps1 @@ -0,0 +1,41 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzNetworkSecurityPerimeter')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzNetworkSecurityPerimeter.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 'Update-AzNetworkSecurityPerimeter' { + It 'PatchExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'Patch' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'PatchViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +}