c# - Azure Cloud Service deployment without changing existing configuration -
is possible deploy cloud service without changing existing configuration?
what want deploy cloud service package dev cloud service , take same package , upload production cloud service.
any ideas?
if understand question correctly, yes possible. configuration settings you'd different between 2 environments (like connection strings, app settings, etc.) should defined in service definition file , set in service configuration file. when visual studio uploads package uploads package , service configuration file separately (the service definition inside package). when update or deployment command line or portal provide package , service configuration file separately well. allows push same package, provide different configuration. if don't have differences between deployments, rare think, deploy same package , configuration file.
if performing update production system , don't want "override" configuration there production need upload same file previouly uploaded. why important keep track of deployments on time, rollback purposes or want push same configuration before.
the msdn documentation covers how upload portal, includes selecting configuration file separately: https://www.windowsazure.com/en-us/manage/services/cloud-services/how-to-create-and-deploy-a-cloud-service/#deploy. may want @ doing via command line tool powershell or other windows azure cli tools.
note, if have settings in web.config or app.config of web role must different per environment, need research way move settings either service configuration or @ runtime pull them specific location based on environment.
Comments
Post a Comment