Skip to content

Commit 82823a1

Browse files
committed
remove commented
1 parent b3e482c commit 82823a1

File tree

1 file changed

+0
-278
lines changed

1 file changed

+0
-278
lines changed

articles/azure-cache-for-redis/cache-manage-cli.md

Lines changed: 0 additions & 278 deletions
Original file line numberDiff line numberDiff line change
@@ -35,281 +35,3 @@ For Azure CLI sample scripts for Azure Cache for Redis, see the following articl
3535
>[!NOTE]
3636
>The current article contained content about the Azure classic CLI, an older version of Azure CLI that is no longer available. The Azure classic CLI could be used only with the discontinued Azure classic deployment model.
3737
38-
<!--## Prerequisites
39-
40-
To create and manage Azure Cache for Redis instances using Azure classic CLI, you must complete the following steps.
41-
42-
* You must have an Azure account. If you don't have one, you can create a [free account](https://azure.microsoft.com/pricing/free-trial/) in just a few moments.
43-
* [Install the Azure classic CLI](/cli/azure/install-classic-cli).
44-
* Connect your Azure CLI installation with a personal Azure account, or with a work or school Azure account, and sign in from the classic CLI using the `azure login` command.
45-
* Before running any of the following commands, switch the classic CLI into Resource Manager mode by running the `azure config mode arm` command. For more information, see [Use the Azure classic CLI to manage Azure resources and resource groups](../azure-resource-manager/management/manage-resources-cli.md).
46-
47-
## Azure Cache for Redis properties
48-
49-
The following properties are used when creating and updating Azure Cache for Redis instances.
50-
51-
| Property | Switch | Description |
52-
| --- | --- | --- |
53-
| name |-n, --name |Name of the Azure Cache for Redis. |
54-
| resource group |-g, --resource-group |Name of the Resource Group. |
55-
| location |-l, --location |Location to create cache. |
56-
| size |-z, --size |Size of the Azure Cache for Redis. Valid values: [C0, C1, C2, C3, C4, C5, C6, P1, P2, P3, P4] |
57-
| sku |-x, --sku |Redis SKU. Should be one of: [Basic, Standard, Premium] |
58-
| EnableNonSslPort |-e, --enable-non-ssl-port |EnableNonSslPort property of the Azure Cache for Redis. Add this flag if you want to enable the non-TLS/SSL Port for your cache |
59-
| Redis Configuration |-c, --redis-configuration |Redis Configuration. Enter a JSON formatted string of configuration keys and values here. Format:"{"":"","":""}" |
60-
| Redis Configuration |-f, --redis-configuration-file |Redis Configuration. Enter the path of a file containing configuration keys and values here. Format for the file entry: {"":"","":""} |
61-
| Shard Count |-r, --shard-count |Number of Shards to create on a Premium Cluster Cache with clustering. |
62-
| Virtual Network |-v, --virtual-network |When hosting your cache in a VNET, specifies the exact Resource Manager resource ID of the virtual network to deploy the Azure Cache for Redis in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1 |
63-
| key type |-t, --key-type |Type of key to renew. Valid values: [Primary, Secondary] |
64-
| StaticIP |-p, --static-ip \<static-ip\> |When hosting your cache in a VNET, specifies a unique IP address in the subnet for the cache. If not provided, one is chosen for you from the subnet. |
65-
| Subnet |t, --subnet \<subnet\> |When hosting your cache in a VNET, specifies the name of the subnet in which to deploy the cache. |
66-
| VirtualNetwork |-v, --virtual-network \<virtual-network\> |When hosting your cache in a VNET, specifies the exact Resource Manager resource ID of the virtual network to deploy the Azure Cache for Redis in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1 |
67-
| Subscription |-s, --subscription |The subscription identifier. |
68-
69-
## See all Azure Cache for Redis commands
70-
71-
To see all Azure Cache for Redis commands and their parameters, use the `azure rediscache -h` command.
72-
73-
```azurecli
74-
C:\>azure rediscache -h
75-
help: Commands to manage your Azure Cache for Redis(s)
76-
help:
77-
help: Create an Azure Cache for Redis
78-
help: rediscache create [--name <name> --resource-group <resource-group> --location <location> [options]]
79-
help:
80-
help: Delete an existing Azure Cache for Redis
81-
help: rediscache delete [--name <name> --resource-group <resource-group> ]
82-
help:
83-
help: List all Azure Cache for Redis within your Subscription or Resource Group
84-
help: rediscache list [options]
85-
help:
86-
help: Show properties of an existing Azure Cache for Redis
87-
help: rediscache show [--name <name> --resource-group <resource-group>]
88-
help:
89-
help: Change settings of an existing Azure Cache for Redis
90-
help: rediscache set [--name <name> --resource-group <resource-group> --redis-configuration <redis-configuration>/--redis-configuration-file <redisConfigurationFile>]
91-
help:
92-
help: Renew the authentication key for an existing Azure Cache for Redis
93-
help: rediscache renew-key [--name <name> --resource-group <resource-group> ]
94-
help:
95-
help: Lists Primary and Secondary key of an existing Azure Cache for Redis
96-
help: rediscache list-keys [--name <name> --resource-group <resource-group>]
97-
help:
98-
help: Options:
99-
help: -h, --help output usage information
100-
help:
101-
help: Current Mode: arm (Azure Resource Management)
102-
```
103-
104-
## Create an Azure Cache for Redis
105-
106-
To create an Azure Cache for Redis, use the following command:
107-
108-
```azurecli
109-
azure rediscache create [--name <name> --resource-group <resource-group> --location <location> [options]]
110-
```
111-
112-
For more information about this command, run the `azure rediscache create -h` command.
113-
114-
```azurecli
115-
C:\>azure rediscache create -h
116-
help: Create an Azure Cache for Redis
117-
help:
118-
help: Usage: rediscache create [--name <name> --resource-group <resource-group> --location <location> [options]]
119-
help:
120-
help: Options:
121-
help: -h, --help output usage information
122-
help: -v, --verbose use verbose output
123-
help: -vv more verbose with debug output
124-
help: --json use json output
125-
help: -n, --name <name> Name of the Azure Cache for Redis.
126-
help: -g, --resource-group <resource-group> Name of the Resource Group
127-
help: -l, --location <location> Location to create cache.
128-
help: -z, --size <size> Size of the Azure Cache for Redis. Valid values: [C0, C1, C2, C3, C4, C5, C6, P1, P2, P3, P4]
129-
help: -x, --sku <sku> Redis SKU. Should be one of : [Basic, Standard, Premium]
130-
help: -e, --enable-non-ssl-port EnableNonSslPort property of the Azure Cache for Redis. Add this flag if you want to enable the non-TLS/SSL Port for your cache
131-
help: -c, --redis-configuration <redis-configuration> Redis Configuration. Enter a JSON formatted string of configuration keys and values here. Format:"{"<key1>":"<value1>","<key2>":"<value2>"}"
132-
help: -f, --redis-configuration-file <redisConfigurationFile> Redis Configuration. Enter the path of a file containing configuration keys and values here. Format for the file entry: {"<key1>":"<value1>","<key2>":"<value2>"}
133-
help: -r, --shard-count <shard-count> Number of Shards to create on a Premium Cluster Cache
134-
help: -v, --virtual-network <virtual-network> The exact ARM resource ID of the virtual network to deploy the Azure Cache for Redis in. Example format: /subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft.ClassicNetwork/VirtualNetworks/vnet1
135-
help: -t, --subnet <subnet> Required when deploying an Azure Cache for Redis inside an existing Azure Virtual Network
136-
help: -p, --static-ip <static-ip> Required when deploying an Azure Cache for Redis inside an existing Azure Virtual Network
137-
help: -s, --subscription <id> the subscription identifier
138-
help:
139-
help: Current Mode: arm (Azure Resource Management)
140-
```
141-
142-
## Delete an existing Azure Cache for Redis
143-
144-
To delete an Azure Cache for Redis, use the following command:
145-
146-
```azurecli
147-
azure rediscache delete [--name <name> --resource-group <resource-group> ]
148-
```
149-
150-
For more information about this command, run the `azure rediscache delete -h` command.
151-
152-
```azurecli
153-
C:\>azure rediscache delete -h
154-
help: Delete an existing Azure Cache for Redis
155-
help:
156-
help: Usage: rediscache delete [--name <name> --resource-group <resource-group> ]
157-
help:
158-
help: Options:
159-
help: -h, --help output usage information
160-
help: -v, --verbose use verbose output
161-
help: -vv more verbose with debug output
162-
help: --json use json output
163-
help: -n, --name <name> Name of the Azure Cache for Redis.
164-
help: -g, --resource-group <resource-group> Name of the Resource Group under which the cache exists
165-
help: -s, --subscription <subscription> the subscription identifier
166-
help:
167-
help: Current Mode: arm (Azure Resource Management)
168-
```
169-
170-
## List all Azure Cache for Redis within your Subscription or Resource Group
171-
172-
To list all Azure Cache for Redis within your Subscription or Resource Group, use the following command:
173-
174-
```azurecli
175-
azure rediscache list [options]
176-
```
177-
178-
For more information about this command, run the `azure rediscache list -h` command.
179-
180-
```azurecli
181-
C:\>azure rediscache list -h
182-
help: List all Azure Cache for Redis within your Subscription or Resource Group
183-
help:
184-
help: Usage: rediscache list [options]
185-
help:
186-
help: Options:
187-
help: -h, --help output usage information
188-
help: -v, --verbose use verbose output
189-
help: -vv more verbose with debug output
190-
help: --json use json output
191-
help: -g, --resource-group <resource-group> Name of the Resource Group
192-
help: -s, --subscription <subscription> the subscription identifier
193-
help:
194-
help: Current Mode: arm (Azure Resource Management)
195-
```
196-
197-
## Show properties of an existing Azure Cache for Redis
198-
199-
To show properties of an existing Azure Cache for Redis, use the following command:
200-
201-
```azurecli
202-
azure rediscache show [--name <name> --resource-group <resource-group>]
203-
```
204-
205-
For more information about this command, run the `azure rediscache show -h` command.
206-
207-
```azurecli
208-
C:\>azure rediscache show -h
209-
help: Show properties of an existing Azure Cache for Redis
210-
help:
211-
help: Usage: rediscache show [--name <name> --resource-group <resource-group>]
212-
help:
213-
help: Options:
214-
help: -h, --help output usage information
215-
help: -v, --verbose use verbose output
216-
help: -vv more verbose with debug output
217-
help: --json use json output
218-
help: -n, --name <name> Name of the Azure Cache for Redis.
219-
help: -g, --resource-group <resource-group> Name of the Resource Group
220-
help: -s, --subscription <subscription> the subscription identifier
221-
help:
222-
help: Current Mode: arm (Azure Resource Management)
223-
```
224-
225-
<a name="scale"></a>
226-
227-
## Change settings of an existing Azure Cache for Redis
228-
229-
To change settings of an existing Azure Cache for Redis, use the following command:
230-
231-
```azurecli
232-
azure rediscache set [--name <name> --resource-group <resource-group> --redis-configuration <redis-configuration>/--redis-configuration-file <redisConfigurationFile>]
233-
```
234-
235-
For more information about this command, run the `azure rediscache set -h` command.
236-
237-
```azurecli
238-
C:\>azure rediscache set -h
239-
help: Change settings of an existing Azure Cache for Redis
240-
help:
241-
help: Usage: rediscache set [--name <name> --resource-group <resource-group> --redis-configuration <redis-configuration>/--redis-configuration-file <redisConfigurationFile>]
242-
help:
243-
help: Options:
244-
help: -h, --help output usage information
245-
help: -v, --verbose use verbose output
246-
help: -vv more verbose with debug output
247-
help: --json use json output
248-
help: -n, --name <name> Name of the Azure Cache for Redis.
249-
help: -g, --resource-group <resource-group> Name of the Resource Group
250-
help: -c, --redis-configuration <redis-configuration> Redis Configuration. Enter a JSON formatted string of configuration keys and values here.
251-
help: -f, --redis-configuration-file <redisConfigurationFile> Redis Configuration. Enter the path of a file containing configuration keys and values here.
252-
help: -s, --subscription <subscription> the subscription identifier
253-
help:
254-
help: Current Mode: arm (Azure Resource Management)
255-
```
256-
257-
## Renew the authentication key for an existing Azure Cache for Redis
258-
259-
To renew the authentication key for an existing Azure Cache for Redis, use the following command:
260-
261-
```azurecli
262-
azure rediscache renew-key [--name <name> --resource-group <resource-group> --key-type <key-type>]
263-
```
264-
265-
Specify `Primary` or `Secondary` for `key-type`.
266-
267-
For more information about this command, run the `azure rediscache renew-key -h` command.
268-
269-
```azurecli
270-
C:\>azure rediscache renew-key -h
271-
help: Renew the authentication key for an existing Azure Cache for Redis
272-
help:
273-
help: Usage: rediscache renew-key [--name <name> --resource-group <resource-group> ]
274-
help:
275-
help: Options:
276-
help: -h, --help output usage information
277-
help: -v, --verbose use verbose output
278-
help: -vv more verbose with debug output
279-
help: --json use json output
280-
help: -n, --name <name> Name of the Azure Cache for Redis.
281-
help: -g, --resource-group <resource-group> Name of the Resource Group under which cache exists
282-
help: -t, --key-type <key-type> type of key to renew. Valid values are: 'Primary', 'Secondary'.
283-
help: -s, --subscription <subscription> the subscription identifier
284-
help:
285-
help: Current Mode: arm (Azure Resource Management)
286-
```
287-
288-
## List Primary and Secondary keys of an existing Azure Cache for Redis
289-
290-
To list Primary and Secondary keys of an existing Azure Cache for Redis, use the following command:
291-
292-
```azurecli
293-
azure rediscache list-keys [--name <name> --resource-group <resource-group>]
294-
```
295-
296-
For more information about this command, run the `azure rediscache list-keys -h` command.
297-
298-
```azurecli
299-
C:\>azure rediscache list-keys -h
300-
help: Lists Primary and Secondary key of an existing Azure Cache for Redis
301-
help:
302-
help: Usage: rediscache list-keys [--name <name> --resource-group <resource-group>]
303-
help:
304-
help: Options:
305-
help: -h, --help output usage information
306-
help: -v, --verbose use verbose output
307-
help: -vv more verbose with debug output
308-
help: --json use json output
309-
help: -n, --name <name> Name of the Azure Cache for Redis.
310-
help: -g, --resource-group <resource-group> Name of the Resource Group under which Cache exists
311-
help: -s, --subscription <subscription> the subscription identifier
312-
help:
313-
help: Current Mode: arm (Azure Resource Management)
314-
-->
315-

0 commit comments

Comments
 (0)