Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » Deploy Legacy App to Azure Fileshare
  • Opswork blog 1440x800 1
    Get Started with OpsWorks for Chef Automate AWS/Azure/OpenShift
  • screenshot 2020 05 11 at 20.03.56
    How to remove printers from HP Utility Mac
  • banner
    How to Back Up and Restore the Windows Registry Windows
  • Webp.net resizeimage 2
    Add or Remove Network Interface from a VM in Azure AWS/Azure/OpenShift
  • How to Install Winget on Windows Server
    How to Install Winget on Windows Server Windows Server
  • AWS Budgets
    How to create AWS Budget AWS/Azure/OpenShift
  • Banner
    How to Deploy GitHub Repositories to cPanel using GitHub Actions Automation
  • Computer policy could not be updated
    How to fix Computer Policy could not be updated successfully Windows

Deploy Legacy App to Azure Fileshare

Posted on 28/03/202330/05/2023 Raphael Gab-Momoh By Raphael Gab-Momoh No Comments on Deploy Legacy App to Azure Fileshare
azure-file-share-feature-image

In this guide, we shall look at what is required to deploy legacy app to Azure file share and set up all the necessary azure services that will make it possible to deploy legacy apps to Azure file share. A legacy app is a piece of software that has been around for a while but is still in use today despite newer technologies and systems being available. An older programming language, operating system, or hardware platform is typically used to create a legacy app, which may not be compatible with more recent designs. Deploying using file share is a good option because file share is a simple and versatile way to store and retrieve files in the cloud that is straightforward to set up in Azure.

Also, because legacy apps frequently rely on file-based storage, file share offers these apps a well-known and suitable storage alternative. Other similar articles can be found here: How to Control Cloud Cost Using Azure VM and How to create Confidential VMs in Azure also Ways to Run PowerShell remotely on Azure VMs and How to work with Azure Cognitive Service also How to use Azure Compute Gallery and Azure Hybrid Use Cases and Benefits.

Deploy Azure Fileshare: The Processes Involved in the Deployment

To deploy legacy app Azure fileshare, several steps must be taken: the application and its dependencies must be evaluated; the fileshare must be set up and configured; files must be copied to the fileshare; the application must be tested and validated; the application must be deployed to production; and the application and fileshare must be monitored and maintained. However, we shall look at the processes in detail with the steps below:

1. Assess your App before deploying Legacy App to Azure Fileshare

To deploy a legacy program utilizing fileshare, it is crucial to examine the application’s design and potential difficulties, test the application in a staging environment, check file permissions, prepare for scalability, and plan for backups and disaster recovery. By following these steps, you can ensure a smooth and successful deployment process. Here are some exciting articles: How to create and configure a Shared Folder on Windows Server, “Network File System: How to install NFS Server on Windows Server“, and Generation 2 VM: How to set up a Hyper-V Virtual Machine.

2. Create an Azure Storage Account

You must set up a premium performance tier Azure storage account. NFS 4.1 shares are currently only accessible as premium file shares.

a)Enter your credentials in the Azure portal @ https://portal.azure.com.

b) in the search resource, service, and document field, type storage account

Legacy App to Azure using Fileshare type-in-search-field
Search field

c) From the search options, select the storage accounts option as shown below

Legacy App to Azure using Fileshare
select-from-search-results
Select from the search options

d) Click on either of the create buttons

Legacy App to Azure using Fileshare
click-on-either-of-the-create-button
Click the Create button to begin
Project Details

d) Fill in your project details, this would usually include your subscription and your resource group

Legacy App to Azure using Fileshare
fill in your project-details-1
Note: This is actually the most important step

e)Instance details – for the instance details, give your storage account a name and select the region that you wish to host your workload. However, for For solid-state SSDs to store your data, choose the Premium performance tier (SSD). Choose File sharing from the list of Premium account types as file sharing only works with premium.

Legacy App to Azure using Fileshare
instance-details-choose-premium-performance
Review to begin validation

f) Click on the review button

review-to-begin-validation

g) click on the create button to create the storage account take note of the items pointed at with the arrow before you create

create-the-storage-account
Create the account

h) Click on go resource to access the storage account

Go-to-Resource
Go to Resource
Final step

I) view the created account

storage-account-with-file-share
Storage account view

Deploy Legacy App to Azure Fileshare

Please see How to remove Remote Desktop Services Role on Windows Server, and how to fix Git is not recognized as an internal or external command

3. Create a Linux Virtual Machine that will host the Legacy App in Azure File Share

Before proceeding with these steps, these articles might be interesting to you: Why does the legacy PXE not does work on Generation 2 VM, How to set up a VM via PXE boot on a Generation 1 VM, How to create and configure a Shared Folder on Windows Server, and How to create and configure a Shared Folder on Windows Server.

Creating a Linux VM is standard you can check this link for other methods of creating a Virtual Machine How to Create a Linux Virtual Machine Via Azure CLI. Let’s quickly create one with the steps below.

a) search and select a virtual machine from the search options

search-and-select-Virtual-machine-from-search-options-for-Legacy-App-to-Azure-Fileshare
Search and select Virtual Machine from the search options

b) fill in the project & instance details

project-instance-detail-for-Legacy-App-to-fileshare
project details & instance detail

c) Add administrative account and inbound port rules

add-admin-account-and-inbound-port-rules-for-legacy-apps-to-fileshare
admin account and inbound port rule
Note: Important part

d) Create a Virtual Network

create-virtual-network-for-legacy-app-to-fileshare
create virtual network

f) click on the review and create button to begin validation

review-and-create
Review and create to begin validation

g) Click on the create button to begin deployment

create-to-begin-deployment-2

click create to begin

h) view the running VM

virtual-machine-running
VM running

4. Add file share to the storage account created in step 2

a) Go to home and select the storage accounts created earlier from recent resource

select-the-storage-account

b) create a file share and assign it a throughput of 10GB

legacyfileshare-1
Create a new file share

5. Create a private endpoint for accessing the file share

create a private endpoint for your storage account. As a result, your storage account receives a private IP address from your virtual network’s address space.

a) select the file share ( legacyfileshare) created in step No.4 A dialog box stating Connect to this NFS share from Linux should appear. Review options can be found under Network configuration.

network-configuration-review-options-deploying-a-legacy-file-to-Azure-FileShare
Review options

b) Click Establish a private endpoint next.

click-setup-a-private-endpoint-deploy-legacyapp-to-Azure-file-share

Setup private endpoint

c) Enter project & instance detail for the endpoint

projectinstance-details-deploy-a-legacy-app-to-azure-file-share
project & instance details

d) Resource: confirm that you are connecting to the right resource, and make sure that the target sub-resource brings out file

create-a-private-endpoint-deploy-legacy-app-to-fileshare
resource tab

e) Virtual Network: Select the virtual network connected to your VM under Networking, leaving the preset subnet alone. Keep the checkbox next to Dynamically assign IP address checked under Private IP configuration. Select DNS Next.

virtual-network-deploy-a-legacy-app-to-azure-file-share
Vnet

f) DNS: To integrate with a private DNS zone, select Yes. Select Next: Tags after ensuring that the appropriate membership and resource group are chosen.

dns-deploy-legacy-app-to-azure-fileshare
DNS

g) Tag: You can use tags to classify your resources; for example, you could give all of your testing resources the name Environment and the value Test but in our example, we have chosen to give the name techdirectarchive and value as legacy app-migration. If necessary, enter name/value combinations before choosing Next: Review + Create.

tag-legacy-app-to-file-share
tag
Review to Validate

Azure makes an effort to confirm the private endpoint. After confirmation is finished, choose to Create. An alert letting you know that distribution is happening will appear. You ought to see a notice that the deployment is finished after a short while.

validate-deploy-a-legacy-app-to-fileshare
Validate

Deploy the endpoint by clicking the create button

endpoint-deployed-1
endpoint

6. Turn off secure Transfer for the file share

With the NFS protocol, Azure Files does not currently support encryption-in-transit and instead depends on network-level security. As a result, you must turn off secure transfer.

Steps:

  1. Go to Home
  2. Search for storage accounts and look for the storage account you created for the project
  3. Select file share from the storage account pane under the data storage section
  4. Select the NFS file share that you created. Under the Secure transfer setting, select Change setting.

secure-transfer-setting.jpg-deploy-legacy-app-to-file-share
secure transfer

Next, click on the disabled button

disabled-secure-transfer-deploy-legacy-app-to-fileshare-1
Disabled

7. Connect to the VM created in step 3.

You can do this by clicking on the connect button on the virtual machine’s overview page and selecting connect. copy item number 4 of the ssh tab

vm-running
VM running
ssh -i <private key path> techdirectarchive@20.127.162.142

since we are connecting using a password and not a private key the command below will just do

ssh techdirectarchive@20.127.162.142
connected-to-the-VM-for-deploying-legacy-app
connected

8. Mount the NFS share

We will mount the NFS fileshare created in an earlier step on the Linux client that we connected to in step 7

Steps:

  1. Go to Home and look for the storage account you created earlier
  2. Under the Data storage option select Fileshare
  3. Select the file NFS file share you created earlier
  4. click on connect from Linux
  5. Copy all the commands and past in the running Linux terminal from step 7
connect-to-fileshare
connect

The sample code to input in the terminal window is below

sudo apt-get -y update
sudo apt-get install nfs-common

and

sudo mkdir -p /mount/legacyapp1/legacyfileshare
sudo mount -t nfs legacyapp1.file.core.windows.net:/legacyapp1/legacyfileshare /mount/legacyapp1/legacyfileshare -o vers=4,minorversion=1,sec=sys
nfs-mounted-on-vertual-machine
NFS mounted on vm

If you have done all these, then you have now mounted your NFS share, and it’s ready to store your legacy app files.

Summary: Deploy Legacy App to Azure Fileshare

In this article, we went through all the steps necessary to set up what is required before we can successfully start deploying our legacy files to Azure file share. We created a storage account, we created a file share in the storage account, we created a virtual machine, we created a private endpoint, we disabled secure transmission, and made the storage account ready for the transfer by installing all the necessary NFS files. Following the steps in the article to get your files are ready for transfer.

If you have any questions concerning this process on how to Deploy Legacy App to Azure Fileshare. Please leave them in the comments section below.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift

Post navigation

Previous Post: How to use Netstat.exe to confirm which Program uses or blocks a port
Next Post: How to Remove Remote Desktop Services Role on Windows Server

Related Posts

  • Commvault Docker Images
    Pull and Push Commvault Images to Azure Container Registry AWS/Azure/OpenShift
  • Remove Custom Domain from Entra ID and Azure tenant
    Delete Azure Tenant: Remove Custom Domain from Entra ID AWS/Azure/OpenShift
  • Simple Notification Service AWS SNS
    Create Simple Notification Service (SNS) Notification on AWS AWS/Azure/OpenShift
  • Slide1 3
    Azure Virtual Networks: Preparing Azure and On-Premises Virtual Networks with Azure CLI Commands AWS/Azure/OpenShift
  • WCD
    Join Bulk Devices using a Provisioning Package to Azure AWS/Azure/OpenShift
  • adfs
    Guide on federating ADFS with Azure Active Directory AWS/Azure/OpenShift

More Related Articles

Commvault Docker Images Pull and Push Commvault Images to Azure Container Registry AWS/Azure/OpenShift
Remove Custom Domain from Entra ID and Azure tenant Delete Azure Tenant: Remove Custom Domain from Entra ID AWS/Azure/OpenShift
Simple Notification Service AWS SNS Create Simple Notification Service (SNS) Notification on AWS AWS/Azure/OpenShift
Slide1 3 Azure Virtual Networks: Preparing Azure and On-Premises Virtual Networks with Azure CLI Commands AWS/Azure/OpenShift
WCD Join Bulk Devices using a Provisioning Package to Azure AWS/Azure/OpenShift
adfs Guide on federating ADFS with Azure Active Directory AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Opswork blog 1440x800 1
    Get Started with OpsWorks for Chef Automate AWS/Azure/OpenShift
  • screenshot 2020 05 11 at 20.03.56
    How to remove printers from HP Utility Mac
  • banner
    How to Back Up and Restore the Windows Registry Windows
  • Webp.net resizeimage 2
    Add or Remove Network Interface from a VM in Azure AWS/Azure/OpenShift
  • How to Install Winget on Windows Server
    How to Install Winget on Windows Server Windows Server
  • AWS Budgets
    How to create AWS Budget AWS/Azure/OpenShift
  • Banner
    How to Deploy GitHub Repositories to cPanel using GitHub Actions Automation
  • Computer policy could not be updated
    How to fix Computer Policy could not be updated successfully Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,832 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.