New-AzNetworkManagerScope
Creates a network manager scope.
Syntax
Default (Default)
New-AzNetworkManagerScope
[-ManagementGroup <String[]>]
[-Subscription <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzNetworkManagerScope cmdlet creates a network manager scope.
Examples
Example 1
$subgroup = @("/subscriptions/00000000-0000-0000-0000-000000000000")
$mggroup = @("/providers/Microsoft.Management/managementGroups/PowerShellTest")
New-AzNetworkManagerScope -Subscription $subgroup -ManagementGroup $mggroup
ManagementGroups Subscriptions
---------------- -------------
{/providers/Microsoft.Management/managementGroups/PowerShellTest} {/subscriptions/00000000-0000-0000-0000-000000000000}
Creates a network manager scope with management group and subscription.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagementGroup
Management Group Lists in Network Manager Scope
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Subscription
Subscription Lists in Network Manager Scope
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.