diff --git a/src/Accounts/Accounts/help/Add-AzEnvironment.md b/src/Accounts/Accounts/help/Add-AzEnvironment.md index 471cac704d34..497670526b19 100644 --- a/src/Accounts/Accounts/help/Add-AzEnvironment.md +++ b/src/Accounts/Accounts/help/Add-AzEnvironment.md @@ -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 @@ -161,6 +161,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 diff --git a/src/Accounts/Accounts/help/Clear-AzConfig.md b/src/Accounts/Accounts/help/Clear-AzConfig.md index db35d1d16abb..64da8fea51bd 100644 --- a/src/Accounts/Accounts/help/Clear-AzConfig.md +++ b/src/Accounts/Accounts/help/Clear-AzConfig.md @@ -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 ``` diff --git a/src/Accounts/Accounts/help/Connect-AzAccount.md b/src/Accounts/Accounts/help/Connect-AzAccount.md index 6e837e54f0a0..b6f37bc8c739 100644 --- a/src/Accounts/Accounts/help/Connect-AzAccount.md +++ b/src/Accounts/Accounts/help/Connect-AzAccount.md @@ -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 diff --git a/src/Accounts/Accounts/help/Disable-AzContextAutosave.md b/src/Accounts/Accounts/help/Disable-AzContextAutosave.md index 206557574fd1..3e2ac7de9f6f 100644 --- a/src/Accounts/Accounts/help/Disable-AzContextAutosave.md +++ b/src/Accounts/Accounts/help/Disable-AzContextAutosave.md @@ -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 diff --git a/src/Accounts/Accounts/help/Enable-AzureRmAlias.md b/src/Accounts/Accounts/help/Enable-AzureRmAlias.md index 26e300c3591a..be6d0b268f26 100644 --- a/src/Accounts/Accounts/help/Enable-AzureRmAlias.md +++ b/src/Accounts/Accounts/help/Enable-AzureRmAlias.md @@ -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/enable-azurermalias schema: 2.0.0 ---- +--- # Enable-AzureRmAlias diff --git a/src/Accounts/Accounts/help/Get-AzDefault.md b/src/Accounts/Accounts/help/Get-AzDefault.md index e179c3844a17..140525c1e22e 100644 --- a/src/Accounts/Accounts/help/Get-AzDefault.md +++ b/src/Accounts/Accounts/help/Get-AzDefault.md @@ -24,7 +24,7 @@ user has set as default in the current context. ### Example 1 ```powershell -Get-AzDefault +get-aZdeFault ``` ```Output diff --git a/src/Accounts/Accounts/help/Invoke-AzRestMethod.md b/src/Accounts/Accounts/help/Invoke-AzRestMethod.md index bac59a3b3c51..0a9e48500f23 100644 --- a/src/Accounts/Accounts/help/Invoke-AzRestMethod.md +++ b/src/Accounts/Accounts/help/Invoke-AzRestMethod.md @@ -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 diff --git a/src/Accounts/Accounts/help/Set-AzContext.md b/src/Accounts/Accounts/help/Set-AzContext.md index ba2f82fbcd59..fe689416de0f 100644 --- a/src/Accounts/Accounts/help/Set-AzContext.md +++ b/src/Accounts/Accounts/help/Set-AzContext.md @@ -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/set-azcontext schema: 2.0.0 ---- +--- # Set-AzContext diff --git a/src/AlertsManagement/AlertsManagement/help/Get-AzAlert.md b/src/AlertsManagement/AlertsManagement/help/Get-AzAlert.md index b6186a1e6a5b..dfc4062a5fe6 100644 --- a/src/AlertsManagement/AlertsManagement/help/Get-AzAlert.md +++ b/src/AlertsManagement/AlertsManagement/help/Get-AzAlert.md @@ -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. - ```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 diff --git a/src/ApiManagement/ApiManagement/help/Add-AzApiManagementApiToGateway.md b/src/ApiManagement/ApiManagement/help/Add-AzApiManagementApiToGateway.md index dc3d018381a8..e1cc449c29b0 100644 --- a/src/ApiManagement/ApiManagement/help/Add-AzApiManagementApiToGateway.md +++ b/src/ApiManagement/ApiManagement/help/Add-AzApiManagementApiToGateway.md @@ -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 @@ -181,4 +192,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## RELATED LINKS -[Remove-AzApiManagementApiFromGateway](./Remove-AzApiManagementApiFromGateway.md) \ No newline at end of file +[Remove-AzApiManagementApiFromGateway](./Remove-AzApiManagementApiFromGateway.md) diff --git a/src/ApiManagement/ApiManagement/help/Remove-AzApiManagement.md b/src/ApiManagement/ApiManagement/help/Remove-AzApiManagement.md index 75b252b23b02..dab920dcfe9b 100644 --- a/src/ApiManagement/ApiManagement/help/Remove-AzApiManagement.md +++ b/src/ApiManagement/ApiManagement/help/Remove-AzApiManagement.md @@ -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. diff --git a/src/Compute/Compute/help/Add-AzVMDataDisk.md b/src/Compute/Compute/help/Add-AzVMDataDisk.md index 0a80c53c19c5..7490c89ebaa0 100644 --- a/src/Compute/Compute/help/Add-AzVMDataDisk.md +++ b/src/Compute/Compute/help/Add-AzVMDataDisk.md @@ -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 ``` diff --git a/src/ConfidentialLedger/help/New-AzConfidentialLedger.md b/src/ConfidentialLedger/help/New-AzConfidentialLedger.md index e23c4c1caa98..e317c549233c 100644 --- a/src/ConfidentialLedger/help/New-AzConfidentialLedger.md +++ b/src/ConfidentialLedger/help/New-AzConfidentialLedger.md @@ -3,7 +3,7 @@ external help file: Module Name: Az.ConfidentialLedger online version: https://docs.microsoft.com/powershell/module/az.confidentialledger/new-azconfidentialledger schema: 2.0.0 ---- +--- # New-AzConfidentialLedger diff --git a/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md b/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md index cf7bfea9e985..6d32498dcbac 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md @@ -4,7 +4,7 @@ Module Name: Az.Storage ms.assetid: FA98E64B-D589-4653-9ACC-86573FAF4550 online version: https://docs.microsoft.com/powershell/module/az.storage/set-azstoragefilecontent schema: 2.0.0 ---- +--- # Set-AzStorageFileContent