# Microsoft Intune Service Deployment With Storage Account This document provides a step-by-step guide for installing agents using Microsoft Intune and a Microsoft Azure Storage Account. By following these instructions, you can efficiently manage and deploy agents across your organization’s devices in an Azure Active Directory (Azure AD) environment. ## Table of Contents - [Prerequisites](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#prerequisites) - [Create a Storage Account](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#step1) - [Create a Blob and Upload Agent Files](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#step2) - [Modify the Installation Script](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#step3) - [Initiate Installation via Intune](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#step4) - [Conclusion](https://www.manageengine.com/products/desktop-central/intune_with_storage_account.html#conclusion) ## Prerequisites Before starting the installation process, ensure you have the following: - **Microsoft Intune Subscription**: To manage devices and deploy applications. - **Microsoft Storage Account**: To store agent installation files. ## Step 1: Create a Storage Account - **Access Azure Portal**: Sign in to the Azure portal. - **Select Storage Accounts**: In the left-hand menu, select "All services" and then click on "Storage Accounts." [![In the left-hand menu, select ](https://www.manageengine.com/products/desktop-central/images/intunewithstorage1.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage1.png) [![In the left-hand menu, select ](https://www.manageengine.com/products/desktop-central/images/intunewithstorage2.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage2.png) - **Create a New Storage Account**: - Click on the **Create Storage Account** option. [![Click on the Create Storage Account option.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage3.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage3.png) - Choose the appropriate **Subscription** for your storage account. - Under the **Resource group** field, select "Create New." If you have an existing resource group, choose it from the dropdown menu and enter a name for the new resource group. [![Under the Resource group field, select ](https://www.manageengine.com/products/desktop-central/images/intunewithstorage4.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage4.png) - **Advanced Settings**: - Navigate to the **Advanced** tab. - Ensure that the option "Allow enabling anonymous access on individual containers" is checked. [![Ensure that the option Allow enabling anonymous access on individual containers is checked.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage5.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage5.png) - **Create Storage Account**: Leave other fields at their default values and click **Review + Create** to finalize the creation of your storage account. [![Create Storage Account: Leave other fields at their default values and click Review + Create to finalize the creation of your storage account.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage6.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage6.png) ## Step 2: Create a Blob and Upload Agent Files - **Navigate to the Storage Account**: Go to the storage account you created. - **Access Blob Services**: Click on **Blob service**. [![Access Blob Services: Click on Blob service.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage7.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage7.png) - **Create a Container**: - Click on the **Containers** button. [![Click on the container button](https://www.manageengine.com/products/desktop-central/images/intunewithstorage8.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage8.png) - Click **+ Container** and provide a name for your container. [![Click + Container and provide a name for your container.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage9.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage9.png) - Set the access level to **Blob** and click **OK**. [![Set the access level to Blob and click OK.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage10.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage10.png) - **Upload Agent Files**: - Download the ZIP file from the Central Server by navigating to **Agent -> Agent Installation -> GPO** and selecting the respective remote office. [![Download the ZIP file from the Endpoint Central Server by navigating to Agent -> Agent Installation -> GPO and selecting the respective remote office.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage11.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage11.png) - Extract the **LocalOffice.zip** file. - Open the created Blob container and click on the **Upload** button to upload the following files: - **UEMSAgent.msi** - **UEMSAgent.mst** - **DCAgentServerInfo.json** [![Open the created Blob container and click on the Uploadbutton to upload the agent files](https://www.manageengine.com/products/desktop-central/images/intunewithstorage12.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage12.png) [![Open the created Blob container and click on the Uploadbutton to upload the agent files](https://www.manageengine.com/products/desktop-central/images/intunewithstorage13.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage13.png) [![Open the created Blob container and click on the Uploadbutton to upload the agent files](https://www.manageengine.com/products/desktop-central/images/intunewithstorage14.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage14.png) - In the upload dialog, select **Block blob** from the Advanced dropdown and then click **Upload**. [![In the upload dialog, select Block blob from the Advanced dropdown and then click Upload](https://www.manageengine.com/products/desktop-central/images/intunewithstorage15.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage15.png) ## Step 3: Modify the Installation Script - **Access the Uploaded Files**: - Go to the Blob container containing the uploaded files. [![Go to the Blob container containing the uploaded files.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage16.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage16.png) - Copy the URLs for **UEMSAgent.msi**, **UEMSAgent.mst**. [![Copy the URLs for UEMSAgent.msi, UEMSAgent.mst.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage17.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage17.png) [![Copy the URLs for UEMSAgent.msi, UEMSAgent.mst.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage18.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage18.png) - **Edit the Script**: - Copy and paste the given [Text File](https://www.manageengine.com/products/desktop-central/PSInstallAgent.txt) in a text editor and save it as **AgentInstall.ps1**. [![copy and paste the given Text File in a text editor and save it asAgentInstall.ps1.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage19.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage19.png) - For **Endpoint Central versions below 11.2.2309.01**: - Replace ``, ``, and `` with the copied URLs. - For **Endpoint Central version 11.2.2309.01 and above**: - Replace ``, ``, and `` with the copied URLs. [![replace the agent urls with copied urls](https://www.manageengine.com/products/desktop-central/images/intunewithstorage20.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage20.png) ## Step 4: Initiate Installation via Intune - **Access Microsoft Intune**: Navigate to the Microsoft Intune portal. - **Create a New Script**: - Go to **Devices** > **Scripts** and click on the **Create** button. [![Go to Devices > Scripts and click on the Create button.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage21.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage21.png) - Provide a name for the script and click **Next**. [![Provide a name for the script and click Next.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage22.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage22.png) - **Configure Script Settings**: - In the **Settings** section, browse to the location of the **AgentInstall.ps1** file and click **Open**. [![In the Settings section, browse to the location of the AgentInstall.ps1 file and click Open.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage23.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage23.png) - **Assign the Script**: - In the **Assignments** section, assign the script to all devices, users, or specific groups as needed. [![In the Assignments section, assign the script to all devices, users, or specific groups as needed.](https://www.manageengine.com/products/desktop-central/images/intunewithstorage24.png)](https://www.manageengine.com/products/desktop-central/images/intunewithstorage24.png) - Click **Next** and review the settings. - **Finalize the Task**: Click the **Add** button to execute the script. ## Conclusion You have successfully installed the agent on devices within a Microsoft Azure AD environment using Microsoft Intune and an Azure Storage Account. This process streamlines agent deployment, ensuring efficient management of your organization's devices. For any further assistance or troubleshooting, consult the Microsoft documentation or reach out to your IT support team.