Hi Kumar Shanu,
Firstly get an azure subscription if you don't have one, create a free trial, then install azure CLI in your system.
Login to ur azure ACC.
az login
Create a new resource group (replace ResourceGroupName and Region with your preferred values).
az group create --name ResourceGroupName --location Region
Create a serviceplan
az appservice plan create --name PlanName --resource-group ResourceGroupName --sku B1 --is-linux
Now create a webapp
az webapp create --name AppName --resource-group ResourceGroupName --plan PlanName --runtime "python|3.8"
Streamlit's default configuration is for development. Modify your Streamlit app to include the following lines at the end:
# app.py import streamlit as st # Your Streamlit app code here if __name__ == '__main__': st.set_option('server.enableCORS', True)
Deploy your Streamlit app to Azure using Git. Initialize a Git repository in your Streamlit project if you haven't already.
git init
git remote add azure <git-url-from-azure>
Now finally push your code to azure.
git add .
git commit -m "Initial commit"
git push azure master
That's it! Your Streamlit app should now be deployed.
If this helps kindly accept the answer thanks much.