Skip to content
Open

demo #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0b960aa
Add or update the App Service deployment workflow configuration from …
shaktiazure Apr 10, 2021
53ed5c9
Add or update the App Service deployment workflow configuration from …
shaktiazure Apr 10, 2021
59b65b3
Remove the App Service deployment workflow configuration from Azure P…
invalid-email-address Apr 10, 2021
95f9f07
Add or update the App Service deployment workflow configuration from …
shaktiazure Apr 10, 2021
61427d6
Add files via upload
shaktiazure Apr 13, 2021
c6f162c
Merge pull request #1 from shaktiazure/shaktiazure-New-Branch
shaktiazure Apr 13, 2021
17dddea
Update Index.cshtml
shaktiazure Apr 13, 2021
7215e4c
Update Index.cshtml
shaktiazure Apr 13, 2021
b670d60
Update Index.cshtml
shaktiazure Apr 13, 2021
21a4f09
Update Web.config
shaktiazure Apr 13, 2021
8ac960a
Update Web.config
shaktiazure Apr 13, 2021
deb56f6
Add or update the App Service deployment workflow configuration from …
shaktiazure Apr 13, 2021
29aeed8
Update Index.cshtml
shaktiazure Apr 14, 2021
8da7f19
Update Web.config
shaktiazure Apr 14, 2021
16f6f2f
Update Web.config
shaktiazure Apr 14, 2021
2deb132
Update Web.config
shaktiazure Apr 14, 2021
7b1f1cd
Update Web.config
shaktiazure Apr 14, 2021
a1a2abe
Update Web.config
shaktiazure Apr 14, 2021
94c6b6f
Update Web.config
shaktiazure Apr 14, 2021
78911a8
Update Web.config
shaktiazure Apr 14, 2021
bfeaa6f
Update Web.config
shaktiazure Apr 14, 2021
aa55789
Update Web.config
shaktiazure Apr 15, 2021
2c56672
Update Web.config
shaktiazure Apr 15, 2021
02613f9
Update Web.config
shaktiazure Apr 15, 2021
447bd60
Update Web.config
shaktiazure Apr 15, 2021
f9840eb
Update Web.config
shaktiazure Apr 15, 2021
6eab4a1
Update Web.config
shaktiazure Apr 15, 2021
d376593
Update Web.config
shaktiazure Apr 16, 2021
64851ad
Update Web.config
shaktiazure Apr 16, 2021
0d0e71a
Update Web.config
shaktiazure Nov 29, 2021
16b892f
Update Web.config
shaktiazure Nov 29, 2021
263d34e
Update Index.cshtml
shaktiazure May 7, 2022
767b6bc
Update Index.cshtml
shaktiazure May 7, 2022
7e3f525
Update Web.config
shaktiazure May 7, 2022
ffb8a10
Update Web.config
shaktiazure May 7, 2022
13bbed4
Add or update the Azure App Service build and deployment workflow config
shaktiazure Dec 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/master_ntmsapp1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP app to Azure Web App - ntmsapp1

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: 'windows-latest'

steps:
- uses: actions/checkout@v2

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2

- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Restore NuGet packages
run: nuget restore

- name: Publish to folder
run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\"

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: ASP-app
path: '/published/**'

deploy:
runs-on: 'windows-latest'
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: ASP-app

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'ntmsapp1'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_d3e6d0e9799c4fc3a3aed4a0309cb36c }}
package: .
65 changes: 65 additions & 0 deletions .github/workflows/master_ntmsrgwebspp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - ntmsrgwebspp

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
permissions:
contents: read #This is required for actions/checkout

steps:
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'

- name: Build with dotnet
run: dotnet build --configuration Release

- name: dotnet publish
run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp"

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp

deploy:
runs-on: windows-latest
needs: build
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_01B60186335A4BE099007E6983625622 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_02AC62A9D04640CAA2FD23E4B3DB4DAB }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CD250659E98A4741BF037146385F2C9E }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'ntmsrgwebspp'
slot-name: 'Production'
package: .

57 changes: 57 additions & 0 deletions .github/workflows/master_shaktiapp2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP app to Azure Web App - shaktiapp2

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: 'windows-latest'

steps:
- uses: actions/checkout@v2

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2

- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Restore NuGet packages
run: nuget restore

- name: Publish to folder
run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\"

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: ASP-app
path: '/published/**'

deploy:
runs-on: 'windows-latest'
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: ASP-app

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'shaktiapp2'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_5e262f6564f64a94866dadd55ef71a5a }}
package: .
2 changes: 1 addition & 1 deletion Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
}

<div class="jumbotron">
<h1>NTMS Azure Batch Sample web App1 Sunday April</h1>
<h1>NTMS Azure Batch Sample web App1 Page May 2022 April</h1>
<img src="Azure 3tier app with fw and ag1.png" alt="NTMS" style="width:900px;height:600px;">
</div>
2 changes: 1 addition & 1 deletion Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</configSections>
<connectionStrings>

<add name="DefaultConnection" connectionString="Data Source=ntmssql21.database.windows.net;Initial Catalog=ntmsdb1;User ID=sqladmin;Password=123#ntms123#;Integrated Security=False" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=ntmssanjay.database.windows.net;Initial Catalog=ntmsdb1;User ID=sqladmin;Password=123#ntms123#;Integrated Security=False" providerName="System.Data.SqlClient" />
<!--<add name="DefaultConnection" connectionString="Data Source=.;Initial Catalog=Clinic;User ID=ContosoClinicApplication;Password={Some Strong Password};Column Encryption Setting=Enabled" providerName="System.Data.SqlClient" />

Column Encryption Setting=Enabled
Expand Down
17 changes: 17 additions & 0 deletions test1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<table style="width:100%">
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>