Skip to content

Commit

Permalink
Update Doc Issue Azure#20625 (Azure#21563)
Browse files Browse the repository at this point in the history
* Update Doc Issue

* Update ExampleIssues
  • Loading branch information
JoyerJin authored Apr 18, 2023
1 parent 4018513 commit 3866ed5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/ApiManagement/ApiManagement/help/Restore-AzApiManagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ This command restores an API Management service from Azure storage blob.

### Example 2: Restore an API Management service using Managed Identity Credentials
```powershell
PS D:> $storageContext=New-AzStorageContext -StorageAccountName apimbackupmsi
PS D:> $resourceGroupName="ContosoGroup02";
PS D:> $apiManagementName="contosoapi";
PS D:> $containerName="apimbackupcontainer";
PS D:> $backupName="test-sdk-backup-1";
PS D:> $msiClientId="a6270d0c-7d86-478b-8cbe-dc9047ba54f7"
PS D:> Restore-AzApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -SourceContainerName $containerName -SourceBlobName $backupName -AccessType "UserAssignedManagedIdentity" -IdentityClientId $msiClientId -PassThru
$storageContext=New-AzStorageContext -StorageAccountName apimbackupmsi
$resourceGroupName="ContosoGroup02";
$apiManagementName="contosoapi";
$containerName="apimbackupcontainer";
$backupName="test-sdk-backup-1";
$msiClientId="a6270d0c-7d86-478b-8cbe-dc9047ba54f7"
Restore-AzApiManagement -ResourceGroupName $resourceGroupName -Name $apiManagementName -StorageContext $storageContext -SourceContainerName $containerName -SourceBlobName $backupName -AccessType "UserAssignedManagedIdentity" -IdentityClientId $msiClientId -PassThru
```

```output
Expand Down
2 changes: 1 addition & 1 deletion src/Batch/Batch/help/Get-AzBatchTaskSlotCount.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Task slot counts provide a count of slots by active, running or completed task s

### Example 1: Get task counts by ID
```powershell
Get-AzBatchTaskSlotCounts -JobId "Job01" -BatchContext $Context
Get-AzBatchTaskSlotCount -JobId "Job01" -BatchContext $Context
```

```output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ New-AzFrontDoorBackendPoolsSettingObject [-EnforceCertificateNameCheck <PSEnable
```

## DESCRIPTION
The **New-AzFrontDoorBackendpoolsSettingObject** cmdlet creates a new PSBackendPoolsSettings object for Front Door creation.
The **New-AzFrontDoorBackendPoolsSettingObject** cmdlet creates a new PSBackendPoolsSettings object for Front Door creation.

## EXAMPLES

### Example 1: Create BackendPoolsSettings object using defaults
```powershell
New-AzFrontDoorBackendpoolsSettingObject
New-AzFrontDoorBackendPoolsSettingObject
```

```output
Expand All @@ -37,7 +37,7 @@ Type :

### Example 2: Create BackendPoolsSettings object with user specified values
```powershell
New-AzFrontDoorBackendpoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled
New-AzFrontDoorBackendPoolsSettingObject -SendRecvTimeoutInSeconds 60 -EnforceCertificateNameCheck Enabled
```

```output
Expand Down
6 changes: 3 additions & 3 deletions src/HPCCache/HPCCache/help/Get-AzHpcCache.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ The **Get-AzHpcCache** cmdlet gets a single cache, cache(s) in a specific resour

### Example 1
```powershell
Get-AzHPCCache -ResourceGroupName rgtest -CacheName cachetest
Get-AzHpcCache -ResourceGroupName rgtest -CacheName cachetest
```

### Example 2
```powershell
Get-AzHPCCache -ResourceGroupName rgtest
Get-AzHpcCache -ResourceGroupName rgtest
```

### Example 3
```powershell
Get-AzHPCCache
Get-AzHpcCache
```

## PARAMETERS
Expand Down
2 changes: 2 additions & 0 deletions tools/StaticAnalysis/Exceptions/Az.Batch/ExampleIssues.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation"
"Az.Batch","Remove-AzBatchJob","3","10","Unbinded_Expression","5014","1","Write-Host $element.Id is not explicitly assigned to a parameter.","$element.Id","Assign $element.Id explicitly to the parameter."

0 comments on commit 3866ed5

Please sign in to comment.