Azure / azure-cli

Azure Command-Line Interface
MIT License
3.96k stars 2.94k forks source link

--kerberos5i-rw and others missing option #19798

Closed elfcounsel closed 2 weeks ago

elfcounsel commented 2 years ago

--kerberos5i-rw --kerberos5i-r and all the other kerberos options look like they need a false | true set for them and the docs don't indicate that. If you don't indicate true | false you get error: "argument --kerberos5i-rw: expected one argument"

Would be nice to have an example of how to configure a krb encrypted volume from the CLI. There are a lot of dependencies for the commands that aren't noted.

"Parameter allowed-clients needs to be set when protocol-type is NFSv4.1" So I set the allowed-clients to 0.0.0.0/0

Parameter rule-index needs to be set when protocol-type is NFSv4.1 So i set the --rule-index to 1

(BadRequest) Mismatch between KerberosEnabled flag value and ExportPolicyRule's access type parameter values. I'm stuck here. I don't know wht "ExportPolicyRule" is. I guessed and set "--policy-enforced true" but that didn't work.

As it stands now the command I am issuing is: az netappfiles volume create -g $rg --account-name $account --pool-name $pool --name $volname --location $region --usage-threshold 100 --file-path $volname --vnet $vnet --subnet $subnet --protocol-types NFSv4.1 --allowed-clients 0.0.00/0 --rule-index 1 --kerberos-enabled true --kerberos5i-rw true --policy-enforced true

...but it's failing and I am stuck with whatever this ExportPolicyRule setting is. Nothing in the docs indicating what that is.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

yonzhan commented 2 years ago

route to service team

audunn commented 2 years ago

There appears to be an issue in the Azure CLI command, we aim to issue a fix in in the next release.

audunn commented 2 weeks ago

Issues has been fixed