automation and dsc
12 Topics- PowerShell: Find VNet of an ARM VMHi everyone, it took me quite some time to find a way to get the VNet an ARM VM belongs to by using PowerShell. I don't think this is the perfect solution, but I would like to share it in order someone else needs to find out. I would be interested in better ways of getting attached networks. I will start the discussion with this code snippet $vnets= Get-AzureRmVirtualNetwork $vm = Get-AzureRmVM -name $newVm.Name -ResourceGroupName $newRG $vmIPId = $vm.NetworkProfile.NetworkInterfaces.Id foreach ($vnet in $vnets){ $vnetIPId = $vnet.Subnets.IpConfigurations.Id if ($vnetIPId.Startswith($vmIPId) ){ $vnetName = $vnet.Name return } } Cheers Christian9.7KViews3likes6Comments
- What is Log Analytics?Log Analytics is a service in Operations Management Suite (OMS) that helps you collect and analyze data generated by resources in your cloud and on-premises environments. It gives you real-time insights using integrated search and custom dashboards to readily analyze millions of records across all of your workloads and servers regardless of their physical location. Take a lok at the following resources: What is Log Analytics Data Security Get Started with Log Analytics14KViews3likes1Comment
- Azure Automation overviewMicrosoft Azure Automation provides a way for users to automate the manual, long-running, error-prone, and frequently repeated tasks that are commonly performed in a cloud and enterprise environment. It saves time and increases the reliability of regular administrative tasks and even schedules them to be automatically performed at regular intervals. You can automate processes using runbooks or automate configuration management using Desired State Configuration. This article provides brief overview of Azure Automation and answers some common questions about automation and Desired State Configuration (DSC) .3.8KViews1like0Comments
- PowerShell script for stop application in remote server, which is domain joined. Not workgrou serverHello Team, I am working one of the customer enterprise environment azure cloud automation tasks. From azure perspective past couple of days working and trying to setup lot of things including Azure Runbook. I am trying to create a powershell script/workflow to place in Azure Runbooks and then execute. The Runbook(script) will be scheduled, once executed it's need to stop running application inside remote server. The remote server is domain joined not an work group. Similar way in coming days decided to create disk space cleanup using script through Runbook. I have searched many articles and not able to find any sample scripts and there is no proper guidance with steps to follow and create. So can you please check and let me know, this kind of functionality is available in azure Runbooks or not?. If the answer is YES then share me exact scripts which ever available from your team. Otherwise share some ideas with sample commands to connect the machine and stop running application .exe. Other one cleaning temporary files in C:\ drive, Let me know this post is not understandable or any clarification required. Thanks Jaga3.3KViews1like2Comments