diff --git a/src/Elastic/help/Get-AzElasticDeploymentInfo.md b/src/Elastic/help/Get-AzElasticDeploymentInfo.md index e3ccc97d6070..8dfdcddcdf0e 100644 --- a/src/Elastic/help/Get-AzElasticDeploymentInfo.md +++ b/src/Elastic/help/Get-AzElasticDeploymentInfo.md @@ -24,8 +24,10 @@ Fetch information regarding Elastic cloud deployment corresponding to the Elasti ### Example 1: Fetch information regarding Elastic cloud deployment corresponding to the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticDeploymentInfo -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +Get-AzElasticDeploymentInfo -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +``` +```output DiskCapacity MemoryCapacity Status Version ------------ -------------- ------ ------- 491520 16384 Healthy 7.14.1 diff --git a/src/Elastic/help/Get-AzElasticDetailVMIngestion.md b/src/Elastic/help/Get-AzElasticDetailVMIngestion.md index f3df2125247d..9d30d5fb4ae6 100644 --- a/src/Elastic/help/Get-AzElasticDetailVMIngestion.md +++ b/src/Elastic/help/Get-AzElasticDetailVMIngestion.md @@ -31,8 +31,10 @@ List the vm ingestion details that will be monitored by the Elastic monitor reso ### Example 1: List the vm ingestion details that will be monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticDetailVMIngestion -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +Get-AzElasticDetailVMIngestion -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v +``` +```output CloudId IngestionKey ------- ------------ elastic-rhqz1v:xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxx @@ -42,8 +44,10 @@ This command lists the vm ingestion details that will be monitored by the Elasti ### Example 2: List the vm ingestion details that will be monitored by the Elastic monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v | Get-AzElasticDetailVMIngestion +Get-AzElasticMonitor -ResourceGroupName elastic-rg-3eytki -Name elastic-rhqz1v | Get-AzElasticDetailVMIngestion +``` +```output CloudId IngestionKey ------- ------------ elastic-rhqz1v:xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxx diff --git a/src/Elastic/help/Get-AzElasticMonitor.md b/src/Elastic/help/Get-AzElasticMonitor.md index 41c2bd89c0ec..8f7c85420cdd 100644 --- a/src/Elastic/help/Get-AzElasticMonitor.md +++ b/src/Elastic/help/Get-AzElasticMonitor.md @@ -41,8 +41,10 @@ Get the properties of a specific monitor resource. ### Example 1: List all elastic monitors under a subscription ```powershell -PS C:\> Get-AzElasticMonitor +Get-AzElasticMonitor +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- kk-elastictest02 ess-monthly-consumption_Monthly Enabled westus2 kk-rg @@ -56,8 +58,10 @@ This command lists all elastic monitors under a subscription. ### Example 2: List all elastic monitors under a resource group ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-portal01 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test @@ -70,8 +74,10 @@ This command lists all elastic monitors under a resource group. ### Example 3: Get the properties of a specific monitor resource ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test @@ -81,8 +87,10 @@ This command gets the properties of a specific monitor resource. ### Example 4: Get the properties of a specific monitor resource by pipeline ```powershell -PS C:\> New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' | Get-AzElasticMonitor +New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' | Get-AzElasticMonitor +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test diff --git a/src/Elastic/help/Get-AzElasticMonitoredResource.md b/src/Elastic/help/Get-AzElasticMonitoredResource.md index be4d96f4c335..95459aabf209 100644 --- a/src/Elastic/help/Get-AzElasticMonitoredResource.md +++ b/src/Elastic/help/Get-AzElasticMonitoredResource.md @@ -24,8 +24,7 @@ List the resources currently being monitored by the Elastic monitor resource. ### Example 1: List the resources currently being monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticMonitoredResource -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 - +Get-AzElasticMonitoredResource -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 ``` This command lists the resources currently being monitored by the Elastic monitor resource. diff --git a/src/Elastic/help/Get-AzElasticTagRule.md b/src/Elastic/help/Get-AzElasticTagRule.md index d9a4e3975816..c9baddabfe40 100644 --- a/src/Elastic/help/Get-AzElasticTagRule.md +++ b/src/Elastic/help/Get-AzElasticTagRule.md @@ -30,8 +30,10 @@ Get a tag rule set for a given monitor resource. ### Example 1: Get a tag rule set for a given monitor resource ```powershell -PS C:\> Get-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 +Get-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 +``` +```output Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- default Succeeded azure-elastic-test @@ -41,8 +43,10 @@ This command gets a tag rule set for a given monitor resource. ### Example 2: Get a tag rule set for a given monitor resource by pipeline ```powershell -PS C:\> New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 | Get-AzElasticTagRule +New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 | Get-AzElasticTagRule +``` +```output Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- default Succeeded azure-elastic-test diff --git a/src/Elastic/help/Get-AzElasticVMHost.md b/src/Elastic/help/Get-AzElasticVMHost.md index 0a30325d8472..37bf8602e22e 100644 --- a/src/Elastic/help/Get-AzElasticVMHost.md +++ b/src/Elastic/help/Get-AzElasticVMHost.md @@ -24,8 +24,10 @@ List the vm resources currently being monitored by the Elastic monitor resource. ### Example 1: List the vm resources currently being monitored by the Elastic monitor resource ```powershell -PS C:\> Get-AzElasticVMHost -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +Get-AzElasticVMHost -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 +``` +```output VMResourceId ------------ /subscriptions/xxxxxx-xxxxx-xxxx-xxxxxx/resourceGroups/vidhi-rg/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS diff --git a/src/Elastic/help/New-AzElasticFilteringTagObject.md b/src/Elastic/help/New-AzElasticFilteringTagObject.md index e24b6cdc693f..e90c369c1a24 100644 --- a/src/Elastic/help/New-AzElasticFilteringTagObject.md +++ b/src/Elastic/help/New-AzElasticFilteringTagObject.md @@ -23,9 +23,11 @@ Create a in-memory object for FilteringTag ### Example 1: Create a in-memory object for FilteringTag used when creating tag rules ```powershell -PS C:\> $ft = New-AzElasticFilteringTagObject -Action Include -Name key -Value '1' -PS C:\> New-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 -LogRuleFilteringTag $ft +$ft = New-AzElasticFilteringTagObject -Action Include -Name key -Value '1' +New-AzElasticTagRule -ResourceGroupName azure-elastic-test -MonitorName elastic-pwsh02 -LogRuleFilteringTag $ft +``` +```output Name Type ---- ---- default microsoft.elastic/monitors/tagrules diff --git a/src/Elastic/help/New-AzElasticMonitor.md b/src/Elastic/help/New-AzElasticMonitor.md index 3456d9a65291..a1afc7e7a0c9 100644 --- a/src/Elastic/help/New-AzElasticMonitor.md +++ b/src/Elastic/help/New-AzElasticMonitor.md @@ -28,8 +28,10 @@ Create a monitor resource. ### Example 1: Create a monitor resource ```powershell -PS C:\> New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' +New-AzElasticMonitor -ResourceGroupName azps-elastic-test -Name elastic-pwsh02 -Location "westus2" -SkuName "ess-monthly-consumption_Monthly" -UserInfoEmailAddress 'xxx@microsoft.com' +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test diff --git a/src/Elastic/help/New-AzElasticTagRule.md b/src/Elastic/help/New-AzElasticTagRule.md index 9865ab51596e..f952b2e0d636 100644 --- a/src/Elastic/help/New-AzElasticTagRule.md +++ b/src/Elastic/help/New-AzElasticTagRule.md @@ -25,8 +25,10 @@ Create or update a tag rule set for a given monitor resource. ### Example 1: Create or update a tag rule set for a given monitor resource ```powershell -PS C:\> New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 -LogRuleSendActivityLog +New-AzElasticTagRule -ResourceGroupName azps-elastic-test -MonitorName elastic-pwsh02 -LogRuleSendActivityLog +``` +```output Name ProvisioningState ResourceGroupName ---- ----------------- ----------------- default Succeeded azps-elastic-test diff --git a/src/Elastic/help/Remove-AzElasticMonitor.md b/src/Elastic/help/Remove-AzElasticMonitor.md index 913236bcaec9..2b882bed6764 100644 --- a/src/Elastic/help/Remove-AzElasticMonitor.md +++ b/src/Elastic/help/Remove-AzElasticMonitor.md @@ -31,16 +31,14 @@ Delete a monitor resource. ### Example 1: Delete a monitor resource ```powershell -PS C:\> Remove-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 - +Remove-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh02 ``` This command delete a monitor resource. ### Example 2: Delete a monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh03 | Remove-AzElasticMonitor - +Get-AzElasticMonitor -ResourceGroupName azure-elastic-test -Name elastic-pwsh03 | Remove-AzElasticMonitor ``` This command delete a monitor resource by pipeline. diff --git a/src/Elastic/help/Update-AzElasticMonitor.md b/src/Elastic/help/Update-AzElasticMonitor.md index d69982373f12..480ca6c619bd 100644 --- a/src/Elastic/help/Update-AzElasticMonitor.md +++ b/src/Elastic/help/Update-AzElasticMonitor.md @@ -31,8 +31,10 @@ Update a monitor resource. ### Example 1: Update a monitor resource ```powershell -PS C:\> Update-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +Update-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test @@ -42,8 +44,10 @@ This command updates a monitor resource. ### Example 2: Update a monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticMonitor -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticMonitor -Tag @{'key01' = '1'; 'key2' = '2'; 'key3' = '3'} +``` +```output Name SkuName MonitoringStatus Location ResourceGroupName ---- ------- ---------------- -------- ----------------- elastic-pwsh02 ess-monthly-consumption_Monthly Enabled westus2 azure-elastic-test diff --git a/src/Elastic/help/Update-AzElasticVMCollection.md b/src/Elastic/help/Update-AzElasticVMCollection.md index e564f9a2f7a2..7ef3bb741f71 100644 --- a/src/Elastic/help/Update-AzElasticVMCollection.md +++ b/src/Elastic/help/Update-AzElasticVMCollection.md @@ -32,16 +32,14 @@ Update the vm details that will be monitored by the Elastic monitor resource. ### Example 1: Update the vm details that will be monitored by the Elastic monitor resource ```powershell -PS C:\> Update-AzElasticVMCollection -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -OperationName Add -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' - +Update-AzElasticVMCollection -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 -OperationName Add -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' ``` This command updates the vm details that will be monitored by the Elastic monitor resource ### Example 2: Update the vm details that will be monitored by the Elastic monitor resource by pipeline ```powershell -PS C:\> Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticVMCollection -OperationName Delete -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' - +Get-AzElasticMonitor -ResourceGroupName lucas-elastic-test -Name elastic-pwsh02 | Update-AzElasticVMCollection -OperationName Delete -VMResourceId '/subscriptions/xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/VIDHI-RG/providers/Microsoft.Compute/virtualMachines/vidhi-linuxOS' ``` This command updates the vm details that will be monitored by the Elastic monitor resource by pipeline.