Add-CloudResource
将云资源添加到 VMM。
语法
Add-CloudResource
-ResourceName <String>
[-Description <String>]
-CloudService <CloudService>
[-ResourceConfiguration <System.Collections.Generic.Dictionary`2[System.String,System.Object]>]
[-DeploymentCloud <Cloud>]
[-VMMServer <ServerConnection>]
-ResourceDefinition <System.Collections.Generic.Dictionary`2[System.String,System.Object]>
[-RunREST]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
说明
Add-CloudResource cmdlet 将云资源添加到 Virtual Machine Manager(VMM)。
参数
-CloudService
指定云服务对象。
类型: | CloudService |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-DeploymentCloud
指定云对象。
类型: | Cloud |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Description
指定云资源的说明。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-JobVariable
指定在此参数命名的变量中跟踪和存储作业进度。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OnBehalfOfUser
指定用户名。 此 cmdlet 代表此参数指定的用户运行。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-OnBehalfOfUserRole
指定用户角色。 若要获取用户角色,请使用 Get-SCUserRole cmdlet。 此 cmdlet 代表此参数指定的用户角色运行。
类型: | UserRole |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceConfiguration
指定资源配置对象。
类型: | System.Collections.Generic.Dictionary`2[System.String,System.Object] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceDefinition
指定资源定义对象。
类型: | System.Collections.Generic.Dictionary`2[System.String,System.Object] |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceName
指定云资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-RunREST
指示运行 REST API。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-VMMServer
指定 VMM 服务器对象。
类型: | ServerConnection |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | True |
接受通配符: | False |