New-AzNetworkManagerScope
Creates a network manager scope.
Syntax
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.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagementGroup
Management Group Lists in Network Manager Scope
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Subscription
Subscription Lists in Network Manager Scope
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
String[]
Outputs
Related Links
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
Azure PowerShell