你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzDevCenterUserEnvironmentAction
检索特定环境作。
语法
Get-AzDevCenterUserEnvironmentAction
-Endpoint <String>
-EnvironmentName <String>
-ProjectName <String>
[-UserId <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
-Endpoint <String>
-EnvironmentName <String>
-ProjectName <String>
[-UserId <String>]
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
-Endpoint <String>
-InputObject <IDevCenterdataIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
-DevCenterName <String>
-InputObject <IDevCenterdataIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
-DevCenterName <String>
-EnvironmentName <String>
-ProjectName <String>
[-UserId <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
-DevCenterName <String>
-EnvironmentName <String>
-ProjectName <String>
[-UserId <String>]
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
检索特定环境作。
示例
示例 1:按终结点列出环境上的作
Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject
此命令列出环境“myEnvironment”上的作。
示例 2:按开发人员中心列出环境上的作
Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject
此命令列出环境“myEnvironment”上的作。
示例 3:按终结点获取环境上的作
Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete"
此命令获取环境“myEnvironment-Delete”的作“myEnvironment”。
示例 4:通过开发人员中心获取环境上的作
Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete"
此命令获取环境“myEnvironment-Delete”的作“myEnvironment”。
示例 5:按终结点和 InputObject 获取环境中的作
$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"}
Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput
此命令获取环境“myEnvironment-Delete”的作“myEnvironment”。
示例 6:通过开发人员中心和 InputObject 获取环境中的作
$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"}
Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput
此命令获取环境“myEnvironment-Delete”的作“myEnvironment”。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DevCenterName
要对其执行作的 DevCenter。
类型: | String |
别名: | DevCenter |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Endpoint
要运行的特定于 DevCenter 的 URI。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-EnvironmentName
环境名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | IDevCenterdataIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
唯一标识作。
类型: | String |
别名: | ActionName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProjectName
项目的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-UserId
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
类型: | String |
Position: | Named |
默认值: | "me" |
必需: | False |
接受管道输入: | False |
接受通配符: | False |