Blog-Kategorie
Cloud Solutions

Hier bloggen sepago Experten über: Cloud Solutions

| |

Deploy an Azure Functional App as an interface to Log Analytics / Azure Monitor

Introduction

Microsoft offers with Log Analytics a cloud-based big data service. Log Analytics is used by several services (including Azure itself) to log and analyze data. It’s a core component of Azure Monitor and Application Insights.

Log Analytics key facts:

  •  Cloud-based
  • No data aggregation
  • Pay per upload and data retention
  • Powerful query language (kql: <https://docs.microsoft.com/en-us/azure/kusto/>)
  • Direct support for visualization on portal.azure.com

I use Log Analytics for several projects where data aggregation and analyzation are main tasks.

| |

Creating devices for Azure IoT Hub with SAS token automatically

A few weeks ago, I started an IoT project with a company responsible for a huge amount of different buildings around the world. We deployed several virtual and physical sensors in Azure IoT Hub. Doing this we had three challenges:

  • Deploy new IoT devices in Azure IoT hub in a batch
  • Generate SAS tokens for these IoT devices
  • Generate SAS tokens even if a device still exist in Azure IoT Hub

The requirement of batch processing avoids the use of the Device Explorer to generate SAS token.

| |

OneDrive PowerShell Module – Added support for OneDrive for Business

More than two years ago, I created my PowerShell module to access OneDrive. This module can be installed with a one-liner from https://www.powershellgallery.com/packages/OneDrive

Again, I was asked to support OneDrive for Business and finally, I’m ready: From version 2.0.0 OneDrive for Business is supported.

 

I provide the complete documentation on GitHub, where I will maintain it: https://github.com/MarcelMeurer/PowerShellGallery-OneDrive

 

Here is the summary of version 2.0.0:

———————————————-

The OneDrive PowerShell module is available via PowerShellGallery.com.

| |

Win32 Application deployment with Microsoft Intune

In Orlando there have been many announcements as well as new functions in various cloud technologies regarding Microsoft Ignite. The announcement of Win32 App support was especially interesting for me. Until now it was possible to provide single MSI files for Windows 10 clients with Microsoft Intune, excluding .exe files. Unfortunately, only few hosts’ applications unpacked in MSI files exist. Also, the available .exe files could not be provided via MS Intune so far.

So far,

| |

Working with the OneDrive PowerShell Module

Recently I got some questions on how to work with my PowerShell module for OneDrive. Therefor, I put together some examples.

Remember: The OneDrive module is for OneDrive personal and doesn’t work with OneDrive business / Sharepoint.

First: Register an app (authentication) for OneDrive: https://www.sepago.de/blog/onedrive-powershell-module-new-version-with-improved-authentication/

Authenticate to OneDrive

Show files and folders

Create new folder in OneDrive

Copy files from local to OneDrive

Copy file from OneDrive to local disk

Delete file in OneDrive

| |

Windows Autopilot: Enrollment Status Page in Microsoft Intune

The Windows Autopilot, which was initially introduced by the Windows 10 Fall Creators Update (1703), enables IT departments to install a Windows 10 client for the staff’s usage. With Windows Autopilot users are able to arrange their computing devices just by a few clicks and administrators have no need to create custom Windows images any longer.

Some new features of the Windows Autopilot were added to Intune by the Windows 10 Update (1803).

| |

How to completely remote reset and redeploy Windows 10 Devices with Microsoft Intune

In my last article I introduced the automatic ReDeployment of Windows 10 devices via enrollment page. This feature is still available after the Windows 10 Update (1803), but is complimented by the opportunity to trigger a remote reinstallation of Windows 10 devices with Microsoft Intune in Windows Insider Preview Build 17672 or higher. With Windows Autopilot reset personal applications, data, and settings are removed by the reinstallation of the Windows device. However, the user keeps the Azure AD-Join and the Microsoft Intune registration.

| |

Logging Azure AD audit and sign-ins to Azure OMS Log Analytics

Azure OMS Log Analytics is often used by Azure services. Unfortunately, Azure AD audits and sign-ins are not configurable for log analytics now (I bet this will change soon). But for now, we must work around to archive this.

My favorite way is:

Sending audit logs and sign-ins to event-hubs -> collecting event-hub data from Logic Apps -> transferring data to Log Analytics

Step-by-step
Creating an Event Hub namespace

Create a new event hub namespace in Azure with the Azure Portal.

| |

Adding Guest Users to Azure AD from Excel with PowerShell

Sharing access across different tenants in one of the key benefits of Azure AD. My customers appreciate that they can provide Azure-based solution to their cooperated users and to guest users as well. Cooperated users include users from the group and subsidiaries. They all can access resources with one identity – on-premises and in the cloud (Same-sign-on, single-sign-on).

Guest users can be deployed manually via the Azure portal, via PowerShell or with a connector to another system (like SAP HR).

| |

Enumerating Azure AD administrative accounts with PowerShell

Users can have different administrative roles in Azure Ad. Azure Portal can show these roles and members. Sometimes it can be favorable to get roles and members in a PowerShell object list.

To login into your Azure AD tenant use:

Where xxx is your tenant id. The -TenantId is optional. But if your account member of different Azure ADs you can select the right one.

After login in with your credential you can show the different roles with:

Output:

Using PSCustomObject helps to build a list/array of custom objects to save all roles and users.