Add-SCNetworkGateway
添加网络网关。
语法
Add-SCNetworkGateway
[-VMMServer <ServerConnection>]
[-ConnectionString] <String>
-Manufacturer <String>
-Model <String>
-RunAsAccount <RunAsAccount>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-LogicalNetwork <LogicalNetwork>]
-Name <String>
[-Description <String>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
Add-SCNetworkGateway
[-VMMServer <ServerConnection>]
[-ConnectionString] <String>
-RunAsAccount <RunAsAccount>
[-IPv4Address <String>]
[-IPv6Address <String>]
[-LogicalNetwork <LogicalNetwork>]
-Name <String>
[-Description <String>]
-ConfigurationProvider <ConfigurationProvider>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[<CommonParameters>]
说明
Add-SCNetworkGateway cmdlet 将网络网关添加到 Virtual Machine Manager (VMM) 。
参数
-ConfigurationProvider
指定配置提供程序对象。 配置提供程序是 VMM 的插件,用于将 VMM PowerShell 命令转换为特定于某个类型的负载均衡器的 API 调用。 如果未指定配置提供程序,VMM 将使用制造商和模型信息来选择可用的配置提供程序。 如果未找到配置提供程序,则不会添加负载均衡器。
Type: | ConfigurationProvider |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ConnectionString
指定连接到虚拟交换机扩展管理器所需的信息。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
指定网络网关的说明。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPv4Address
指定 IPv4 地址。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPv6Address
指定 IPv6 地址。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
指定跟踪作业进度,并将其存储在此参数命名的变量中。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LogicalNetwork
指定逻辑网络。 逻辑网络是 IP 子网和 VLAN 的命名分组,用于组织和简化网络分配。
Type: | LogicalNetwork |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Manufacturer
指定生产物理设备的公司的名称。 有效字符包括:
- a-z) (字母
- 数字 (0-9)
- 下划线 (_)
- 连字符 (-)
- 点 (.)
- 单引号 (')
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Model
指定物理设备的模型。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定 VMM 对象的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
指定触发此操作 (PRO 提示) 的性能和资源优化提示的 ID。 此参数允许审核 PRO 提示。
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsAccount
指定一个运行方式帐户,该帐户包含具有执行此操作权限的凭据。
Type: | RunAsAccount |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
指示作业异步运行,以便控件立即返回到命令 shell。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
指定VMM 服务器对象。
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |