你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzDevCenterUserEnvironmentLog
获取环境中作的日志。
语法
Get-AzDevCenterUserEnvironmentLog
-Endpoint <String>
-EnvironmentName <String>
-OperationId <String>
-ProjectName <String>
[-UserId <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDevCenterUserEnvironmentLog
-DevCenterName <String>
-EnvironmentName <String>
-OperationId <String>
-ProjectName <String>
[-UserId <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取环境中作的日志。
示例
示例 1:按终结点获取环境日志
Get-AzDevCenterUserEnvironmentLog -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd"
此命令获取作 ID 为“d0954a94-3550-4919-bcbe-1c94ed79e0cd”的环境“myEnvironment”上的日志,并将日志输出到文件“output_logs.txt”。
示例 2:按开发人员中心获取环境日志
Get-AzDevCenterUserEnvironmentLog -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -OperationId "d0954a94-3550-4919-bcbe-1c94ed79e0cd"
此命令获取作 ID 为“d0954a94-3550-4919-bcbe-1c94ed79e0cd”的环境“myEnvironment”上的日志,并将日志输出到文件“output_logs.txt”。
参数
-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 |
-OperationId
环境中作的 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProjectName
要对其执行作的 DevCenter 项目。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-UserId
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
类型: | String |
Position: | Named |
默认值: | "me" |
必需: | False |
接受管道输入: | False |
接受通配符: | False |