def set_deployment_user(user_name, password=None): ''' Update deployment credentials.(Note, all webapps in your subscription will be impacted) ''' client = web_client_factory() user = User(location='not-really-needed') #TODO: open bug for this one is not needed user.publishing_user_name = user_name if password is None: import getpass password = getpass.getpass('Password: ') user.publishing_password = password result = client.provider.update_publishing_user(user) return result
def set_deployment_user(user_name, password=None): ''' Update deployment credentials.(Note, all webapps in your subscription will be impacted) ''' client = web_client_factory() user = User(location='not-really-needed') #TODO: open bug for this one is not needed user.publishing_user_name = user_name if password is None: import getpass password = getpass.getpass('Password: ') user.publishing_password = password result = client.provider.update_publishing_user(user) return result
def set_deployment_user(user_name, password=None): ''' Update deployment credentials.(Note, all webapps in your subscription will be impacted) ''' client = web_client_factory() user = User(location='not-really-needed') #TODO: open bug for this one is not needed user.publishing_user_name = user_name if password is None: try: password = prompt_pass(msg='Password: '******'Please specify both username and password in non-interactive mode.') user.publishing_password = password result = client.update_publishing_user(user) return result
def set_deployment_user(user_name, password=None): ''' Update deployment credentials.(Note, all webapps in your subscription will be impacted) ''' client = web_client_factory() user = User(location='not-really-needed') user.publishing_user_name = user_name if password is None: try: password = prompt_pass(msg='Password: '******'Please specify both username and password in non-interactive mode.') user.publishing_password = password result = client.update_publishing_user(user) return result