Stop a remote service running in linux server using powershell runbook in azure
Hi Team, I need to stop a application service running on a Linux server from PowerShell runbook in azure. Is there a way to use ssh keys to login and create New-PSSession session? After stopping the application, i need to run another runbook. What…
Automate Azure VM shutdown from Powershell runbook not working and no error
Hi Team, I created a runbook for automating the shutdown of Azure VM the same is working for another VM but not working for others. $connectionName = "AzureRunAsConnection" try { # Get the connection…
unable to add linux vm into hybrid worker groups
i am unable to add ubuntu 16.04 vm / Rhel 7 into hybrid worker group , i have followed the article recommended seems module refers to be not available once the omsagent got registered in workspace. …
![](https://techprofile.blob.core.windows.net/images/REvKe9i1Lk-IL_Eoahe21Q.png?8D8768)
Retreiving MOF file from Azure Automation Account
Hi, Does anybody know if it's possible to retrieve an Azure DSC MOF file from an Azure Automation account? I don't even know if this is possible, but compiling the dsc config locally is not a great option for us so we were looking for easier routes to…
![](https://techprofile.blob.core.windows.net/images/7cf6691bae6447c5b0921cd1cb443d13.png)
Azure Automation - Jobs stuck in running and stopped after 3 hours
Hi Team, I have scheduled an automation job to suspend/delete users based on their last sign-in. I am fetching last Sign-ins from Azure Log analytics. I am getting below error intermittently. Some times it completes within 32 mins without any…
List of all domains called from Azure portal
Is there a list of all domains called from Azure portal? Currently unblocking websites whack-a-mole style.
Dynamically cast a string to an integer in a runbook
I am trying to create a script that updates an IP address in a NSG in Azure using a webhook connected to a runbook. My powershell script contains the webhook which I run locally: Write-Output "Changing IP Address..." $uri =…
![](https://techprofile.blob.core.windows.net/images/as_Tu4nfLUeUI0EOf39xtg.png?8D9529)
Direct url to Azure Runbook job result
I have an Azure runbook job id, how can I send a colleague a url that links DIRECTLY to the job result in the Azure portal At moment only way is to send link to runbook then they must search by job id
azure python sdk error urllib3.exceptions.MaxRetryError
I'm working with a python sdk for azure and it gives me an error sometimes, and works without the error the other times. Can someone please help me out? Im using a registered application and service principal and key to login to azure via python. The…
![](https://techprofile.blob.core.windows.net/images/REvKe9i1Lk-IL_Eoahe21Q.png?8D8768)
Automate Maintenance jobs in Azure SQL Database
Hi Team, I am planning to implement Index maintenance job on 5 Azure SQL Db's Options: Using Rubook Elastic Jobs feature. My question is ,which option is best for cost ($$$) point of view?
Azure automation Runbook loads all modules and shows them in "All logs"
Hi, when running Azure automation Powershell Runbook it importing all modules and are logging them to "All logs". That means that important logs are lost in to mass. As you can see in this picture what am I talking about and there is about…
How to trigger an alert when a binary file is created in a path on an Azure VM
I have an Azure VM which is connected to a log analytics workspace. A third party application (no control on its behavior) is running on the vm and creates a binary file in a folder (like d:\app\bin) in specific circumstances. I would like to raise an…
Azure Cloud Shell - How to export cmdlet output to a file that I can download?
In Azure Cloud Shell, how can I export the the cmdlet output to a file that I can download?
Get-AzConsumptionUsageDetail - How to sum all PretaxCost rows returned and save to an excel or csv file?
Is there an example for how to sum the PretaxCost property for all objects returned by Get-AzConsumptionUsageDetail?
how to calculate historical usage of resources in azure
Hi guys, Hope you all are doing well. I need a help in calculating historical usage of azure resources like increase in data in adls with respect to time, processing time of databricks cluster, adf, syanapse resources for last 30 days in azure…
Azure Runbook - [AzureAD] Get-AzureADUser -All
We are implementing a Runbook which has to get all AzureAD Users - The code seems running successful and we are getting the right count of users (6453) - however, while getting the output in a JSON format, it throws the following error: the runbook job…
![](https://techprofile.blob.core.windows.net/images/as_Tu4nfLUeUI0EOf39xtg.png?8D9529)
There has been inconsistency in Azure log analytics results
Hi team, This question has 2 problems. first problem: We are querying log analytics every minute, when we invoke the query from power shell, we are seeing the data. But one instance showed only one record, but when see it in the portal in…
![](https://techprofile.blob.core.windows.net/images/7cf6691bae6447c5b0921cd1cb443d13.png)
Why i cant delete resource group and resources inside of the group -Terraform
I try do remove this in many ways : az group delete -n rg-terraexample Are you sure you want to perform this operation? (y/n): y Deployment failed. Correlation ID: 45329dc5-27e0-4c7e-86ed-4a05bbb27ba2. Operation failed with status: 'Conflict'.…
![](https://techprofile.blob.core.windows.net/images/7cf6691bae6447c5b0921cd1cb443d13.png)
Unable to list subscription under a management group
I am trying to list all subscriptions under a specific Management group, and i need to exclude these subscriptions from my activity targeting all subscriptions under my Azure Tenant. I can't find any documentation about it but its really important to…
![](https://techprofile.blob.core.windows.net/images/KSfULWXgvEi_AXpGS230AA.png?8D862D)
![](https://techprofile.blob.core.windows.net/images/7cf6691bae6447c5b0921cd1cb443d13.png)
Azure Update Management fails for servers behind Log Analytics Gateway
Hello, Since a few days we can't use Update Management anymore on our on-premise servers that they are using a Log analytic Gateway to connect to Azure. The Update Agent readiness shows "Disconnected" for those servers and any update…
![](https://techprofile.blob.core.windows.net/images/REvKe9i1Lk-IL_Eoahe21Q.png?8D8768)