diff --git a/azure-cs-msi-keyvault-rbac/AppStack.cs b/azure-cs-msi-keyvault-rbac/AppStack.cs index 2f930c795..5add8ee1c 100644 --- a/azure-cs-msi-keyvault-rbac/AppStack.cs +++ b/azure-cs-msi-keyvault-rbac/AppStack.cs @@ -84,7 +84,7 @@ public AppStack() StorageAccountName = storageAccount.Name, StorageContainerName = storageContainer.Name, Type = "Block", - Source = new FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish"), + Source = new FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish"), }); var clientConfig = Output.Create(GetClientConfig.InvokeAsync()); diff --git a/azure-cs-msi-keyvault-rbac/webapp/Startup.cs b/azure-cs-msi-keyvault-rbac/webapp/Startup.cs index 6975b7e2c..e776e7fab 100644 --- a/azure-cs-msi-keyvault-rbac/webapp/Startup.cs +++ b/azure-cs-msi-keyvault-rbac/webapp/Startup.cs @@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; namespace webapp { @@ -26,7 +27,7 @@ public void ConfigureServices(IServiceCollection services) } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { diff --git a/azure-cs-msi-keyvault-rbac/webapp/webapp.csproj b/azure-cs-msi-keyvault-rbac/webapp/webapp.csproj index 66c323758..148e13e93 100644 --- a/azure-cs-msi-keyvault-rbac/webapp/webapp.csproj +++ b/azure-cs-msi-keyvault-rbac/webapp/webapp.csproj @@ -1,12 +1,10 @@ - netcoreapp2.2 + netcoreapp3.1 - - diff --git a/azure-py-msi-keyvault-rbac/__main__.py b/azure-py-msi-keyvault-rbac/__main__.py index fa97ec289..cb0583f98 100644 --- a/azure-py-msi-keyvault-rbac/__main__.py +++ b/azure-py-msi-keyvault-rbac/__main__.py @@ -72,7 +72,7 @@ def createFirewallRules(arg): storage_account_name=storage_account.name, storage_container_name=container.name, type="Block", - source=asset.FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish") + source=asset.FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish") ) client_config = core.get_client_config() diff --git a/azure-py-msi-keyvault-rbac/webapp/Startup.cs b/azure-py-msi-keyvault-rbac/webapp/Startup.cs index 6975b7e2c..e776e7fab 100644 --- a/azure-py-msi-keyvault-rbac/webapp/Startup.cs +++ b/azure-py-msi-keyvault-rbac/webapp/Startup.cs @@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; namespace webapp { @@ -26,7 +27,7 @@ public void ConfigureServices(IServiceCollection services) } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { diff --git a/azure-py-msi-keyvault-rbac/webapp/webapp.csproj b/azure-py-msi-keyvault-rbac/webapp/webapp.csproj index 66c323758..148e13e93 100644 --- a/azure-py-msi-keyvault-rbac/webapp/webapp.csproj +++ b/azure-py-msi-keyvault-rbac/webapp/webapp.csproj @@ -1,12 +1,10 @@ - netcoreapp2.2 + netcoreapp3.1 - - diff --git a/azure-ts-msi-keyvault-rbac/index.ts b/azure-ts-msi-keyvault-rbac/index.ts index 9c7aa9955..f426f70c2 100644 --- a/azure-ts-msi-keyvault-rbac/index.ts +++ b/azure-ts-msi-keyvault-rbac/index.ts @@ -64,7 +64,7 @@ const blob = new azure.storage.Blob("zip", { storageContainerName: storageContainer.name, type: "Block", - source: new pulumi.asset.FileArchive("./webapp/bin/Debug/netcoreapp2.2/publish"), + source: new pulumi.asset.FileArchive("./webapp/bin/Debug/netcoreapp3.1/publish"), }); const clientConfig = azure.core.getClientConfig({ async: true }); diff --git a/azure-ts-msi-keyvault-rbac/webapp/Startup.cs b/azure-ts-msi-keyvault-rbac/webapp/Startup.cs index 6975b7e2c..e776e7fab 100644 --- a/azure-ts-msi-keyvault-rbac/webapp/Startup.cs +++ b/azure-ts-msi-keyvault-rbac/webapp/Startup.cs @@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; namespace webapp { @@ -26,7 +27,7 @@ public void ConfigureServices(IServiceCollection services) } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, IHostingEnvironment env) + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { diff --git a/azure-ts-msi-keyvault-rbac/webapp/webapp.csproj b/azure-ts-msi-keyvault-rbac/webapp/webapp.csproj index 66c323758..148e13e93 100644 --- a/azure-ts-msi-keyvault-rbac/webapp/webapp.csproj +++ b/azure-ts-msi-keyvault-rbac/webapp/webapp.csproj @@ -1,12 +1,10 @@ - netcoreapp2.2 + netcoreapp3.1 - -