@@ -41,35 +41,48 @@ This cmdlet gathers Azure Batch service log files from compute nodes if you are
41
41
### Example 1
42
42
43
43
``` powershell
44
- $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
45
- $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
46
- $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
47
- $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
48
- Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -PoolId "contosopool" -ComputeNodeId "tvm-1612030122_1-20180405t234700z" -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z"
44
+ PS C:\> $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
45
+ PS C:\> $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
46
+ PS C:\> $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
47
+ PS C:\> $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
48
+ PS C:\> Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -PoolId "contosopool" -ComputeNodeId "tvm-1612030122_1-20180405t234700z" -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z"
49
+
50
+ NumberOfFilesUploaded VirtualDirectoryName
51
+ --------------------- --------------------
52
+ 4 contosobatch-22F48D278AD60CC2/contosopool/tvm-1612030122_1-20180405t234700z/bc3dd583-19a5-4665-aa83-87e4e1237d35
49
53
```
50
54
51
55
Upload compute node service logs written on or after January 1, 2018 midnight, which were obtained from the compute node, given pool id of the pool in which the compute node resides, and compute node id.
52
56
53
57
### Example 2
54
58
55
59
``` powershell
56
- $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
57
- $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
58
- $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
59
- $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
60
- Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -PoolId "contosopool" -ComputeNodeId "tvm-1612030122_1-20180405t234700z" -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z" -EndTime "2018-01-10 00:00:00Z"
60
+ PS C:\> $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
61
+ PS C:\> $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
62
+ PS C:\> $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
63
+ PS C:\> $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
64
+ PS C:\> Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -PoolId "contosopool" -ComputeNodeId "tvm-1612030122_1-20180405t234700z" -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z" -EndTime "2018-01-10 00:00:00Z"
65
+
66
+ NumberOfFilesUploaded VirtualDirectoryName
67
+ --------------------- --------------------
68
+ 2 contosobatch-22F48D278AD60CC2/contosopool/tvm-1612030122_1-20180405t234700z/bc3dd583-19a5-4665-aa83-87e4e1237d35
61
69
```
62
70
63
71
Upload compute node service logs written on or after January 1, 2018 midnight and before January 10, 2018 midnight, which were obtained from the compute node, given pool id of the pool in which the compute node resides, and compute node id.
64
72
65
73
### Example 3
66
74
67
75
``` powershell
68
- $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
69
- $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
70
- $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
71
- $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
72
- Get-AzureBatchComputeNode -BatchContext $batchContext -Id "tvm-1612030122_1-20180405t234700z" -PoolId "contosopool" | Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z" -EndTime "2018-01-10 00:00:00Z"
76
+ PS C:\> $storageContext = New-AzureStorageContext -StorageAccountName "contosogeneral" -StorageAccountKey "<Storage Key for ContosoGeneral ends with ==>"
77
+ PS C:\> $sasToken = New-AzureStorageContainerSASToken -Name "contosocontainer" -Context $storageContext
78
+ PS C:\> $containerUrl = "https://contosogeneral.blob.core.windows.net/contosocontainer" + $sasToken
79
+ PS C:\> $batchContext = Get-AzureRmBatchAccountKeys -AccountName "contosobatch"
80
+ PS C:\> Get-AzureBatchComputeNode -BatchContext $batchContext -Id "tvm-1612030122_1-20180405t234700z" -PoolId "contosopool" | Start-AzureBatchComputeNodeServiceLogUpload -BatchContext $batchContext -ContainerUrl $containerUrl -StartTime "2018-01-01 00:00:00Z" -EndTime "2018-01-10 00:00:00Z"
81
+
82
+ NumberOfFilesUploaded VirtualDirectoryName
83
+ --------------------- --------------------
84
+ 2 contosobatch-22F48D278AD60CC2/contosopool/tvm-1612030122_1-20180405t234700z/bc3dd583-19a5-4665-aa83-87e4e1237d35
85
+
73
86
```
74
87
75
88
Upload compute node service logs written on or after January 1, 2018 midnight and before January 10, 2018 midnight, which were obtained from the compute node object.
0 commit comments