{
    "$schema": "http://json-schema.org/schema",
    "cli": "nx",
    "$id": "CreateEnvironmentServicePrincipal",
    "title": "",
    "type": "object",
    "properties": {
        "environmentName": {
            "type": "string",
            "description": "The name of the environment to add.",
            "alias": "e",
            "x-prompt": "What is the name of the environment you want to add?"
        },
        "project": {
            "type": "string",
            "description": "The name of the project the environment is associated with, used for project specific environments."
        },
        "role": {
            "type": "string",
            "description": "The role of the service principal.",
            "alias": "r",
            "default": "Contributor"
        },
        "name": {
            "type": "string",
            "description": "The name of the service principal (default gh-actions-${azureResourcePrefix}-${environmentName}-sp).",
            "alias": "n"
        }
    },
    "required": [
        "environmentName"
    ]
}
