Skip to content

Commit 2a72533

Browse files
committed
Add sample output for Start-AzureBatchComputeNodeServiceLogUpload.md
1 parent f85d51a commit 2a72533

File tree

2 files changed

+28
-16
lines changed

2 files changed

+28
-16
lines changed

src/ResourceManager/AzureBatch/Commands.Batch/Pools/GetBatchPoolNodeCountsCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace Microsoft.Azure.Commands.Batch
2121
{
2222
[Cmdlet(VerbsCommon.Get,
2323
Constants.AzureBatchPoolNodeCounts,
24-
SupportsPaging = true,
2524
DefaultParameterSetName = Constants.AzureBatchPoolNodeCounts),
2625
OutputType(typeof(PSPoolNodeCounts))]
2726
public class GetBatchPoolNodeCountsCommand : BatchObjectModelCmdletBase

src/ResourceManager/AzureBatch/Commands.Batch/help/Start-AzureBatchComputeNodeServiceLogUpload.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,48 @@ This cmdlet gathers Azure Batch service log files from compute nodes if you are
4141
### Example 1
4242

4343
```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
4953
```
5054

5155
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.
5256

5357
### Example 2
5458

5559
```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
6169
```
6270

6371
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.
6472

6573
### Example 3
6674

6775
```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+
7386
```
7487

7588
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

Comments
 (0)