locked
Deployment - block users accessing the site RRS feed

  • Question

  • How do I block the users from accessing the site during deployment process.(I dont have any redirect page in my load balancer).

    It could create invalid records if the users access the site during deployment. One example is to load some data (part of deployment) by disabling a plugin.

    IIS can be shutdown for dotnet web applications during deploymnet. I believe IIS cannot be shutdown during a CRM deploymnet.

    Monday, August 22, 2011 1:26 PM

Answers

  • Hi,

    There is no such functionality supported by Dynamics CRM even plugin will not work and if you will shutdown the IIS then you will be even unable to access it form server, if you mean deploying CRM customizations, developments etc by deployment then i would suggest  you to change iis binding 

    In IIS you can bind it to a local-only address 127.0.0.1. This will only allow your access to the CRM website from the local IP 127.0.0.1.

    To make it available again just change the binding back to * or the specific IP address that you are using.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    • Proposed as answer by Jehanzeb.Javeed Monday, August 22, 2011 1:38 PM
    • Marked as answer by Shiju H Monday, August 22, 2011 3:10 PM
    Monday, August 22, 2011 1:34 PM

All replies

  • Hi,

    There is no such functionality supported by Dynamics CRM even plugin will not work and if you will shutdown the IIS then you will be even unable to access it form server, if you mean deploying CRM customizations, developments etc by deployment then i would suggest  you to change iis binding 

    In IIS you can bind it to a local-only address 127.0.0.1. This will only allow your access to the CRM website from the local IP 127.0.0.1.

    To make it available again just change the binding back to * or the specific IP address that you are using.


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    • Proposed as answer by Jehanzeb.Javeed Monday, August 22, 2011 1:38 PM
    • Marked as answer by Shiju H Monday, August 22, 2011 3:10 PM
    Monday, August 22, 2011 1:34 PM
  • Yes you cannot shut down IIS during deployment.

    There is no hard and fast rule for deployment.

    The best way to do is to send an email to users in advance to get off the system for deployment.

    You can do that after hours.

    I never tried this you can disable the users just before deployment. and enable them after deployment

     

     

    I hope this helps.


    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    • Proposed as answer by Amreek Singh Monday, August 22, 2011 1:37 PM
    Monday, August 22, 2011 1:37 PM
  • Sending emails won't work at all for sure(not all users would behave the same way)

    Changing the bindings may not be that easy in a production environment (as different team and companies are involved).

    Disabling the users is preactically possible if the number of users are less(or I have to write apps with SDK)

    I have been looking for microsoft recommendations for this.

    Monday, August 22, 2011 1:54 PM
  • Hi,

    Definitely you can also change the IIS binding and restore back via programatically

    http://forums.iis.net/t/1160837.aspx

    http://stackoverflow.com/questions/3321927/setting-server-bindings-of-iis-6-0-programmatically

     


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".


    • Edited by Jehanzeb.Javeed Monday, August 22, 2011 2:01 PM Corrected Type Error
    Monday, August 22, 2011 1:58 PM
  • If you have access to deploy CRM to a server, how do you not have access to change the IIS bindings?  The user you're deploying with must have access to IIS, as the CRM deployment directly communicates with IIS.  This is still your best bet if you can't do a redirect page in front of the server.


    The postings on this site are solely my own and do not represent or constitute Hitachi Consulting's positions, views, strategies or opinions.
    Monday, August 22, 2011 1:59 PM
  • You enable and disable the users in bulk. select the users and press disable in the ribbon. The maximum no of records you can have in a grid 250. Press select all and press disable.
    Amreek singh Senior CRM Consultant CDC Praxa Sydney,Australia http://mscrmshop.blogspot.com/
    Monday, August 22, 2011 2:09 PM
  • Hi,

    Just to add few comments that disabling the user will also deactivate user created system jobs and deactivate workflows.  


    Jehanzeb Javeed

    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile

    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".
    Monday, August 22, 2011 2:15 PM
  • Wayne - that is little political what you should change in IIS :) . I will be holding for a short while before I mark Javeed's reply as answer.

    Is there any microsoft documentation on this?

    Monday, August 22, 2011 2:18 PM