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