diff --git a/src/k8s-configuration/azext_k8s_configuration/_params.py b/src/k8s-configuration/azext_k8s_configuration/_params.py index 2a354d7a7f5..a562f6eb9a5 100644 --- a/src/k8s-configuration/azext_k8s_configuration/_params.py +++ b/src/k8s-configuration/azext_k8s_configuration/_params.py @@ -204,13 +204,13 @@ def load_arguments(self, _): c.argument( "sp_client_cert_password", arg_group="Azure Blob Auth", - options_list=["--sp-client-cert-password", "--service-principal-client-certificate-password"], + options_list=["--sp-cert-password", "--service-principal-client-certificate-password"], help="The password for the client certificate used to authenticate a service principal with Azure Blob", ) c.argument( - "sp_client_cert-send-chain", + "sp_client_cert_send_chain", arg_group="Azure Blob Auth", - options_list=["--sp-client-cert-send-chain", "--service-principal-client-certificate-send-chain"], + options_list=["--sp-cert-send-chain", "--service-principal-client-certificate-send-chain"], help="Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the client certificate", ) c.argument( diff --git a/src/k8s-configuration/azext_k8s_configuration/consts.py b/src/k8s-configuration/azext_k8s_configuration/consts.py index 9c1f687bf5c..e3613a2cc82 100644 --- a/src/k8s-configuration/azext_k8s_configuration/consts.py +++ b/src/k8s-configuration/azext_k8s_configuration/consts.py @@ -45,25 +45,25 @@ "Error! Service principal is invalid because it is missing value(s)" ) REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_VALUES_MISSING_HELP = ( - "Provide '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-certificate'" + "Provide '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-cert'" ) REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_ERROR = ( "Error! Too many authentication methods for service principal" ) REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_AUTH_HELP = ( - "Provide only one of '--sp-client-secret' or '--sp-client-certificate'" + "Provide only one of '--sp-client-secret' or '--sp-client-cert'" ) REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_ERROR = ( "Error! Service principal certificate password is invalid" ) REQUIRED_AZURE_BLOB_SERVICE_PRINCIPAL_CERT_VALUES_MISSING_HELP = ( - "Provide '--sp-client-id', '--sp-tenant-id', and '--sp-client-cert' with your '--sp-client-cert-password" + "Provide '--sp-client-id', '--sp-tenant-id', and '--sp-client-cert' with your '--sp-cert-password" ) REQUIRED_AZURE_BLOB_AUTH_ERROR = ( "Error! Too many authentication methods for Azure Blob" ) REQUIRED_AZURE_BLOB_AUTH_HELP = ( - "Specify one authentication method of '--local-auth-ref', '--account-key', '--mi-client-id', or service principal with '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-certificate'" + "Specify one authentication method of '--local-auth-ref', '--account-key', '--mi-client-id', or service principal with '--sp-client-id', '--sp-tenant-id', and one of '--sp-client-secret' or '--sp-client-cert'" ) EXTRA_VALUES_PROVIDED_ERROR = ( "Error! Invalid properties [{}] were specified for kind '{}'"