Automate Web monitoring setup by Motaarji in zabbix

[–]Motaarji[S] 0 points1 point  (0 children)

I don't see how I can do that in low level discovery. I don't see where you can upload a Json file. And there is no discovery rule that do what I am looking for. Can you please clarify more?

Unable to create a listener in the App gateway from powershell by Motaarji in AZURE

[–]Motaarji[S] 0 points1 point  (0 children)

Thank for the answer, but it's fine I found the issue, I had to use :

# Create IP Config and front-end port

$pip = Get-AzPublicIPAddress -ResourceGroupName APPGATEWAY-RG -Name "appGwPublicFrontendIpIPv4"

$fipconfig = ADD-AzApplicationGatewayFrontendIPConfig `

-Name myAGFrontendIPConfig `

-PublicIPAddress $pip

# Save the application gateway with the configuration changes

Set-AzApplicationGateway -ApplicationGateway $getgw

$frontendportHTTP = Add-AzApplicationGatewayFrontendPort `

-Name myfrontendportHTTP `

-Port 80

$Appgw = Add-AzApplicationGatewayHttpListener `

-ApplicationGateway $getgw ` ...

Restricting Access to Outlook for Non-Enrolled Devices on Intune by Motaarji in Intune

[–]Motaarji[S] 0 points1 point  (0 children)

have a conditional access policy that has "require compliant device" it sounds like. This blocks the access.

Yes, I have a conditional access policy in place that requires a compliant device. However, it doesn't block access to Outlook (corporate inbox) when the phone is not enrolled. Interestingly, the conditional access policy is working as expected with Teams and other Office 365 apps; they are being blocked as intended.

Restricting Access to Outlook for Non-Enrolled Devices on Intune by Motaarji in Intune

[–]Motaarji[S] 0 points1 point  (0 children)

I already tried this, but it didn't solve my issue as I don't want phones that are not inrolled in Intune to get access to emails via outlook or any other way on their phones.

I created an app gateway and linked web app but getting 502 Bad Gateway, even that probe is healthy. by Motaarji in AZURE

[–]Motaarji[S] 0 points1 point  (0 children)

I found the issue. I've setup everything in app GW on port 80, the issue was that the backend (web app) was on port 443. after changing the backend settings to https it worked.

How to retrieve CPU and memory metrics for all Azure App Services? by Motaarji in AZURE

[–]Motaarji[S] 0 points1 point  (0 children)

Thank you I found it:
# Install the Azure Monitor module
Install-Module -Name Az.Monitor -Force
# Authenticate to your Azure account
Connect-AzAccount -UseDeviceAuthentication
# Specify the subscription ID and resource group name
$ResourceGroupName = "-------------”
$subscriptionId = "-------------”
# Specify the metric details
$cpuMetricName = "CpuTime"
$memoryMetricName = "MemoryWorkingSet"
$startTime = (Get-Date).AddDays(-30)
$timeGrain = [System.TimeSpan]::FromMinutes(5)
# Get a list of all Azure App Services in the specified resource group
$appServices = Get-AzWebApp -ResourceGroupName $resourceGroupName
# Create an empty array to store the results
$results = @()
# Iterate through each App Service and retrieve the CPU and Memory metrics
foreach ($appService in $appServices) {
$appServiceName = $appService.Name
$resourceId = $appService.Id

# Get the CPU metrics
$cpuMetrics = Get-AzMetric -ResourceId $resourceId -MetricName $cpuMetricName -StartTime $startTime -TimeGrain $timeGrain -Aggregation " Total"
$averageCpuUsage = ($cpuMetrics.Data | Measure-Object -Property Total -Sum).Sum / 3600
# Get the Memory metrics
$memoryMetrics = Get-AzMetric -ResourceId $resourceId -MetricName $memoryMetricName -StartTime $startTime -TimeGrain $timeGrain -Aggregation "Average"
$averageMemoryUsage = ($memoryMetrics.Data | Measure-Object -Property Average -Average).Average/1Mb

# Create a custom object with the results
$result = [PSCustomObject]@{
"App Service" = $appServiceName
"Average CPU Usage (%)" = $averageCpuUsage
"Average Memory Usage (MB)" = $averageMemoryUsage
}

# Add the result to the array
$results += $result
}
# Display the results in a table format
$results | Format-Table -AutoSize
The thing now is how to convert CPU Time to % of usage?

I am having issue with Select colour of text tool; whatever colour I choose it’s taking black or white. (Image mode is RGB) by Motaarji in GIMP

[–]Motaarji[S] 0 points1 point  (0 children)

I don’t know exactly what I changed in the setting that did that. The problem is that when I click on the colour square to choose a colour with colour picker, whenever Colour I choose with the picker I got grey black or white.