Skip to content

Commit

Permalink
Update Azure Functions SDK (#73)
Browse files Browse the repository at this point in the history
* Update Azure Functions SDK

* Update Function SDK 3.0.5

* Update Durable Functions v2.2.0
  • Loading branch information
shibayan authored Mar 21, 2020
1 parent 9a6f372 commit 37a424a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion KeyVault.Acmebot/AddCertificateFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<IActionResult> AddCertificate_HttpStart(
{
if (!req.HttpContext.User.Identity.IsAuthenticated)
{
return new UnauthorizedObjectResult("Need to activate EasyAuth.");
return new UnauthorizedResult();
}

var request = JsonConvert.DeserializeObject<AddCertificateRequest>(await req.ReadAsStringAsync());
Expand Down
2 changes: 1 addition & 1 deletion KeyVault.Acmebot/GetDnsZonesFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task<IActionResult> GetDnsZones_HttpStart(
{
if (!req.HttpContext.User.Identity.IsAuthenticated)
{
return new UnauthorizedObjectResult("Need to activate EasyAuth.");
return new UnauthorizedResult();
}

// Function input comes from the request content.
Expand Down
6 changes: 3 additions & 3 deletions KeyVault.Acmebot/KeyVault.Acmebot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ACMESharpCore" Version="2.1.0.113" />
<PackageReference Include="DnsClient" Version="1.2.0" />
<PackageReference Include="DnsClient" Version="1.3.0" />
<PackageReference Include="DurableTask.TypedProxy" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.0.0" />
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.5" />
<PackageReference Include="Microsoft.Azure.Management.Dns" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.4.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.1.1" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.2" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.3" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.5" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
Expand Down
2 changes: 1 addition & 1 deletion KeyVault.Acmebot/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public override void Configure(IFunctionsHostBuilder builder)
{
builder.Services.AddHttpClient();

builder.Services.AddSingleton(new LookupClient { UseCache = false });
builder.Services.AddSingleton(new LookupClient(new LookupClientOptions { UseCache = false }));

builder.Services.AddSingleton(provider =>
new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(new AzureServiceTokenProvider().KeyVaultTokenCallback)));
Expand Down
22 changes: 11 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ stages:
pool:
vmImage: 'windows-latest'
steps:
- checkout: none
- download: current
- checkout: none
- download: current

- task: AzureFileCopy@3
inputs:
sourcePath: '$(Pipeline.Workspace)/**/latest.zip'
azureSubscription: 'Visual Studio Enterprise'
destination: 'AzureBlob'
storage: 'shibayan'
containerName: 'azure-keyvault-letsencrypt'
blobPrefix: 'v3'
displayName: 'Deploy to Storage Blob'
- task: AzureFileCopy@3
inputs:
sourcePath: '$(Pipeline.Workspace)/**/latest.zip'
azureSubscription: 'Visual Studio Enterprise'
destination: 'AzureBlob'
storage: 'shibayan'
containerName: 'azure-keyvault-letsencrypt'
blobPrefix: 'v3'
displayName: 'Deploy to Storage Blob'

0 comments on commit 37a424a

Please sign in to comment.