Skip to content

Annonator/SFChatServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Status: alt text

SFChatServer

Chat Server Based on Service Fabric

#Deployment Information for Deployment

##Key Vault Using KeyVault as Secure Password provider for Deployment.

Open Powershell and Login to your Azure Account

Login-AzureRmAccount

Switch context to the Subscription you want to use for your KeyVault

Set-AzureRmContext -SubscriptionId <subscription-id>

If you dont allready have a Ressourcegroup you want to User for your KeyVault create a new one

New-AzureRmResourceGroup -Name '<ResourceGroupName>' -Location 'westeurope'

Now we are able to create a new KeyVault in Azure

New-AzureRmKeyVault -VaultName '<KeyVaultName>' -ResourceGroupName '<ResourceGroupName>' -Location 'westeurope'

Generate a new Secrete that contains your Password and add it to your KeyVault

$secretvalue = ConvertTo-SecureString '<PASSWORD>' -AsPlainText -Force
$secret = Set-AzureKeyVaultSecret -VaultName '<KeyVaultName>' -Name '<passwordName>' -SecretValue $secretvalue

Now we need to Enable the KeyVault for Deployment.

Set-AzureRmKeyVaultAccessPolicy -EnabledForDeployment -EnabledForTemplateDeployment -ResourceGroupName <ResourceGroupName>

Deploy the Service Fabric Chat Cluster

New-AzureRmResourceGroupDeployment -ResourceGroupName <ResourceGroupNameForCluster> -TemplateFile https://raw.githubusercontent.com/Annonator/SFChatServer/master/Deployment/ServiceFabricClusterTemplate.json -TemplateParameterFile "<LocalPathTo>\Parameter.json"

About

Chat Server Based on Service Fabric

Resources

Stars

Watchers

Forks

Packages

No packages published