Forum Discussion
How to serve multiple customers with one Storage?
- Oct 30, 2021
MichalKala1991 there are a couple of things you could do here:
1. Generate a SAS token from within the Storage Account or Container that will allow the application to retrieve the installation files; you can control the level of permissions however there is a built in expiry for the SAS token so you'd need to deploy a new version to clients with a new SAS token before the expiry date
[1] https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview2. You can store the account keys for your storage account in a Key Vault, and then programatically generate SAS tokens. This obfuscates the credentials and you can set the SAS token expiry to be a lot shorter if you generate at runtime, but does require connectivity to the key vault to accomplish:
[1] https://docs.microsoft.com/en-us/azure/key-vault/secrets/overview-storage-keys
[2] https://docs.microsoft.com/en-us/azure/key-vault/secrets/storage-keys-sas-tokens-code
[3] https://docs.microsoft.com/en-us/azure/storage/common/storage-account-sas-create-dotnet?tabs=dotnet#use-an-account-sas-from-a-client
You'd then just need to append the URL to the installer blob with ?[SAS Token]
https://docs.microsoft.com/en-us/uwp/schemas/appinstallerschema/element-appinstaller
MichalKala1991 there are a couple of things you could do here:
1. Generate a SAS token from within the Storage Account or Container that will allow the application to retrieve the installation files; you can control the level of permissions however there is a built in expiry for the SAS token so you'd need to deploy a new version to clients with a new SAS token before the expiry date
[1] https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
2. You can store the account keys for your storage account in a Key Vault, and then programatically generate SAS tokens. This obfuscates the credentials and you can set the SAS token expiry to be a lot shorter if you generate at runtime, but does require connectivity to the key vault to accomplish:
[1] https://docs.microsoft.com/en-us/azure/key-vault/secrets/overview-storage-keys
[2] https://docs.microsoft.com/en-us/azure/key-vault/secrets/storage-keys-sas-tokens-code
[3] https://docs.microsoft.com/en-us/azure/storage/common/storage-account-sas-create-dotnet?tabs=dotnet#use-an-account-sas-from-a-client
You'd then just need to append the URL to the installer blob with ?[SAS Token]