Share via

How to set disableLocalAuth property while creating AML compute using Azure Cli ML v2

2023-02-28T16:56:59.4133333+00:00

Hi,

I want to set disableLocalAuth property while creating AMLCompute type compute using Azure CLI ML v2. I couldnt find any argument to set this property or value to this in

"az ml compute create" command.

without setting this property to true i am not able to create the amlcompute in my workspace as in our organization adminstrator has set this policy. I am getting following error :

Additional Information:Type: PolicyViolation
Info: {
    "evaluationDetails": {
        "evaluatedExpressions": [
            {
                "result": "True",
                "expressionKind": "Field",
                "expression": "type",
                "path": "type",
                "expressionValue": "Microsoft.MachineLearningServices/workspaces/computes",
                "targetValue": "Microsoft.MachineLearningServices/workspaces/computes",
                "operator": "Equals"
            },
            {
                "result": "True",
                "expressionKind": "Field",
                "expression": "Microsoft.MachineLearningServices/workspaces/computes/disableLocalAuth",
                "path": "properties.disableLocalAuth",
                "targetValue": "True",
                "operator": "NotEquals"
            }
        ]
    },

Please help me with proper guidance on this issue.

Azure Machine Learning

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.