-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80d3c98
commit 67e473e
Showing
13 changed files
with
114 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
AZ204-DocumentVault/AZ204-DocumentVault/Services/Models/AzureConfig.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
namespace AZ204_DocumentVault.Services.Models; | ||
|
||
public class AzureConfig | ||
public sealed class AzureConfig | ||
{ | ||
public string StorageAccountName { get; set; } = string.Empty; | ||
public string StorageAccountKey { get; set; } = string.Empty; | ||
public string ContainerName { get; set; } = string.Empty; | ||
public string KeyVaultUri { get; set; } = string.Empty; | ||
public string CosmosDbUri { get; set; } = string.Empty; | ||
public string Test { get; set; } = string.Empty; | ||
public FunctionApp FunctionApp { get; set; } | ||
} |
9 changes: 9 additions & 0 deletions
9
AZ204-DocumentVault/AZ204-DocumentVault/Services/Models/DownloadLink.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace AZ204_DocumentVault.Services.Models; | ||
|
||
public class DownloadLink | ||
{ | ||
[JsonPropertyName("DownloadLink")] | ||
public string Value { get; set; } = string.Empty; | ||
} |
9 changes: 9 additions & 0 deletions
9
AZ204-DocumentVault/AZ204-DocumentVault/Services/Models/FunctionApp.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace AZ204_DocumentVault.Services.Models; | ||
|
||
public sealed class FunctionApp | ||
{ | ||
public string BaseUrl { get; set; } | ||
public string GenerateDownloadFunctionLink { get; set; } | ||
|
||
public string GenerateDownloadMethodFunctionKey { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Parameters | ||
param parKeyVaultName string | ||
param parAppServiceObjectId string | ||
param parFunctionAppObjectId string | ||
|
||
// Variables | ||
var varTenantId = subscription().tenantId | ||
|
||
resource resAccessPolicies 'Microsoft.KeyVault/vaults/accessPolicies@2023-07-01' = { | ||
name: '${parKeyVaultName}/add' | ||
properties: { | ||
accessPolicies: [ | ||
{ | ||
objectId: parAppServiceObjectId | ||
tenantId: varTenantId | ||
permissions: { | ||
secrets: [ | ||
'get' | ||
] | ||
} | ||
} | ||
{ | ||
objectId: parFunctionAppObjectId | ||
tenantId: varTenantId | ||
permissions: { | ||
secrets: [ | ||
'get' | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters