Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StaticAnalysis] CI ExampleAnalysis (test for md) #18481

Closed
wants to merge 16 commits into from
Closed
8 changes: 7 additions & 1 deletion src/Accounts/Accounts/help/Add-AzEnvironment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external help file: Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml
Module Name: Az.Accounts
online version: https://docs.microsoft.com/powershell/module/az.accounts/add-azenvironment
schema: 2.0.0
---
---

# Add-AzEnvironment

Expand Down Expand Up @@ -160,6 +160,12 @@ TestEnvironment TestRMEndpoint TestADEndpoint/

In this example, we are discovering a new Azure environment from the `https://configuredmetadata.net` Uri.


### Example 3: Test
```powershell
PS C:\>Add-AzEnvironment -Name Test
```

## PARAMETERS

### -ActiveDirectoryEndpoint
Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/help/Clear-AzConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Clears the values of configs that are set by the user. By default all the config

### Example 1
```powershell
$null = gal
Clear-AzConfig -Force
```

Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/help/Connect-AzAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external help file: Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml
Module Name: Az.Accounts
online version: https://docs.microsoft.com/powershell/module/az.accounts/connect-azaccount
schema: 2.0.0
---
---

# Connect-AzAccount

Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/help/Disable-AzContextAutosave.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external help file: Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml
Module Name: Az.Accounts
online version: https://docs.microsoft.com/powershell/module/az.accounts/disable-azcontextautosave
schema: 2.0.0
---
---

# Disable-AzContextAutosave

Expand Down
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/help/Get-AzDefault.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ user has set as default in the current context.

### Example 1
```powershell
Get-AzDefault
get-aZdeFault
```

```Output
Expand Down
20 changes: 19 additions & 1 deletion src/Accounts/Accounts/help/Invoke-AzRestMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ external help file: Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll-Help.xml
Module Name: Az.Accounts
online version: https://docs.microsoft.com/powershell/module/az.accounts/invoke-azrestmethod
schema: 2.0.0
---
---

# Invoke-AzRestMethod

Expand Down Expand Up @@ -98,6 +98,24 @@ Content : {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users

Get current signed in user via MicrosoftGraph API. This example is equivalent to `Get-AzADUser -SignedIn`.

### Example 3
```powershell
Invoke-AzRestMethod -Name "test" -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}?api-version={API}"
```

```output
{{Add Output Here}}
```

### Example 4
```powershell
```

### Example 5
```powershell
Invoke-AzRestMethod "test" -Path "/subscriptions/{subscription}/resourcegroups/{resourcegroup}/providers/microsoft.operationalinsights/workspaces/{workspace}?api-version={API}"
```

## PARAMETERS

### -ApiVersion
Expand Down
11 changes: 8 additions & 3 deletions src/AlertsManagement/AlertsManagement/help/Get-AzAlert.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ Get Alert details by Id (GUID) or Resource Id (Complete ARM Id)

### Example 3

Get Alerts Information. (autogenerated)
Get Alerts Information.

<!-- Aladdin Generated Example -->
```powershell
Get-AzAlert -IncludeContext $true -TimeRange '1h'
Get-AzAlert -IncludeContext $true -TimeRange '1h' -TimeRange '2h'
```

### Example 4

```powershell
Get-AzAlert -IncludeContext $true -PageCount {} -TimeRange '1h'
```

## PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ Add-AzApiManagementApiToGateway -Context $ApiMgmtContext -GatewayId "0123456789"

This command adds the specified API to the specified Gateway.


### Example 2
```powershell
Add-AzApiManagementApiToGateway -Context $ApiMgmtContext -GatewayId "0123456789" -ApiId "0001"
```

### Example 3
```powershell
Add-AzApiManagementApiToGateway -Context -GatewayId "0123456789" -ApiId "0001"
```

## PARAMETERS

### -ApiId
Expand Down Expand Up @@ -181,4 +192,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

[Remove-AzApiManagementApiFromGateway](./Remove-AzApiManagementApiFromGateway.md)
[Remove-AzApiManagementApiFromGateway](./Remove-AzApiManagementApiFromGateway.md)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The **Remove-AzApiManagement** cmdlet removes an Azure API Management service.

### Example 1: Remove an API Management service
```powershell
Remove-AzApiManagement -ResourceGroupName "ContosoGroup02" -Name "ContosoApi"
Remove-AzApiManagement -ResourceGroupName "ContosoGroup02" -Name "ContosoApi" -Test
```

This command removes the API Management service named ContosoApi.
Expand Down
2 changes: 1 addition & 1 deletion src/Compute/Compute/help/Add-AzVMDataDisk.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $VirtualMachine = New-AzVMConfig -VMName "VirtualMachine07" -VMSize "Standard_A1
$DataDiskVhdUri01 = "https://contoso.blob.core.windows.net/test/data1.vhd"
$DataDiskVhdUri02 = "https://contoso.blob.core.windows.net/test/data2.vhd"
$DataDiskVhdUri03 = "https://contoso.blob.core.windows.net/test/data3.vhd"
$VirtualMachine = Add-AzVMDataDisk -VM $VirtualMachine -Name 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri01 -CreateOption Empty
$VirtualMachine = Add-AzVMDataDisk $VirtualMachine 'DataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 0 -VhdUri $DataDiskVhdUri01 -CreateOption Empty
$VirtualMachine = Add-AzVMDataDisk -VM $VirtualMachine -Name 'DataDisk2' -Caching 'ReadOnly' -DiskSizeInGB 11 -Lun 1 -VhdUri $DataDiskVhdUri02 -CreateOption Empty
$VirtualMachine = Add-AzVMDataDisk -VM $VirtualMachine -Name 'DataDisk3' -Caching 'ReadOnly' -DiskSizeInGB 12 -Lun 2 -VhdUri $DataDiskVhdUri03 -CreateOption Empty
```
Expand Down