az hpc-cache nfs-storage-target

Note

This reference is part of the hpc-cache extension for the Azure CLI (version 2.3.0 or higher). The extension will automatically install the first time you run an az hpc-cache nfs-storage-target command. Learn more about extensions.

Commands to create hpc cache nfs storage target.

Commands

Name Description Type Status
az hpc-cache nfs-storage-target add

Create or update a nfs Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

Extension GA
az hpc-cache nfs-storage-target update

Create or update a nfs Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

Extension GA

az hpc-cache nfs-storage-target add

Create or update a nfs Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

az hpc-cache nfs-storage-target add --cache-name
                                    --junction
                                    --name
                                    --nfs3-target
                                    --nfs3-usage-model
                                    --resource-group

Examples

StorageTargets_CreateOrUpdate

az hpc-cache nfs-storage-target add --resource-group "scgroup" --cache-name "sc1" --name "st1" --nfs3-target 10.7.0.24 --nfs3-usage-model WRITE_AROUND --junction namespace-path="/nt2" nfs-export="/export/a" target-path="/1" --junction namespace-path="/nt3" nfs-export="/export/b"

Required Parameters

--cache-name

Name of Cache.

--junction

List of Cache namespace junctions to target for namespace associations.The sub parameters contains: (1) --namespace-path: Namespace path on a Cache for a Storage Target (2) --nfs-export: NFS export where targetPath exists (3) --target-path(Optional): Path in Storage Target to which namespacePath points.

--name

Name of the Storage Target.

--nfs3-target

IP address or host name of an NFSv3 host (e.g., 10.0.44.44).

--nfs3-usage-model

Identify the primary usage model to be used for this Storage Target. You can use command az hpc-cache usage-model list to see the names of usage models. For more details about usage models, please refer to https://docs.microsoft.com/azure/hpc-cache/hpc-cache-add-storage?tabs=azure-cli#choose-a-usage-model.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az hpc-cache nfs-storage-target update

Create or update a nfs Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

az hpc-cache nfs-storage-target update --cache-name
                                       --name
                                       --resource-group
                                       [--junction]
                                       [--nfs3-target]
                                       [--nfs3-usage-model]

Required Parameters

--cache-name

Name of Cache.

--name

Name of the Storage Target.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--junction

List of Cache namespace junctions to target for namespace associations.The sub parameters contains: (1) --namespace-path: Namespace path on a Cache for a Storage Target (2) --nfs-export: NFS export where targetPath exists (3) --target-path(Optional): Path in Storage Target to which namespacePath points.

--nfs3-target

IP address or host name of an NFSv3 host (e.g., 10.0.44.44).

--nfs3-usage-model

Identify the primary usage model to be used for this Storage Target. You can use command az hpc-cache usage-model list to see the names of usage models. For more details about usage models, please refer to https://docs.microsoft.com/azure/hpc-cache/hpc-cache-add-storage?tabs=azure-cli#choose-a-usage-model.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.