def create_container_service(access_token, subscription_id, resource_group, service_name,agent_count, agent_vm_size, agent_dns, master_dns, admin_user, location, public_key=None,master_count=<NUM_LIT:3>, orchestrator='<STR_LIT>', app_id=None, app_secret=None, admin_password=None,ostype='<STR_LIT>'):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', resource_group,<EOL>'<STR_LIT>', service_name,<EOL>'<STR_LIT>', ACS_API])<EOL>acs_body = {'<STR_LIT:location>': location}<EOL>properties = {'<STR_LIT>': {'<STR_LIT>': orchestrator}}<EOL>properties['<STR_LIT>'] = {'<STR_LIT:count>': master_count, '<STR_LIT>': master_dns}<EOL>ap_profile = {'<STR_LIT:name>': '<STR_LIT>'}<EOL>ap_profile['<STR_LIT:count>'] = agent_count<EOL>ap_profile['<STR_LIT>'] = agent_vm_size<EOL>ap_profile['<STR_LIT>'] = agent_dns<EOL>properties['<STR_LIT>'] = [ap_profile]<EOL>if ostype == '<STR_LIT>':<EOL><INDENT>linux_profile = {'<STR_LIT>': admin_user}<EOL>linux_profile['<STR_LIT>'] = {'<STR_LIT>': [{'<STR_LIT>': public_key}]}<EOL>properties['<STR_LIT>'] = linux_profile<EOL><DEDENT>else: <EOL><INDENT>windows_profile = {'<STR_LIT>': admin_user, '<STR_LIT>': admin_password}<EOL>properties['<STR_LIT>'] = windows_profile<EOL><DEDENT>if orchestrator == '<STR_LIT>':<EOL><INDENT>sp_profile = {'<STR_LIT>': app_id}<EOL>sp_profile['<STR_LIT>'] = app_secret<EOL>properties['<STR_LIT>'] = sp_profile<EOL><DEDENT>acs_body['<STR_LIT>'] = properties<EOL>body = json.dumps(acs_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create a new container service - include app_id and app_secret if using Kubernetes.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        service_name (str): Name of container service.
        agent_count (int): The number of agent VMs.
        agent_vm_size (str): VM size of agents, e.g. Standard_D1_v2.
        agent_dns (str): A unique DNS string for the agent DNS.
        master_dns (str): A unique string for the master DNS.
        admin_user (str): Admin user name.
        location (str): Azure data center location, e.g. westus.
        public_key (str): RSA public key (utf-8).
        master_count (int): Number of master VMs.
        orchestrator (str): Container orchestrator. E.g. DCOS, Kubernetes.
        app_id (str): Application ID for Kubernetes.
        app_secret (str): Application secret for Kubernetes.
        admin_password (str): Admin user password.
        ostype (str): Operating system. Windows of Linux.

    Returns:
        HTTP response. Container service JSON model.