You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/data/create-data-controller-direct-cli.md
+74-2Lines changed: 74 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,82 @@ You can create them individually or in a unified experience.
36
36
37
37
In the unified experience, you can create the Arc data controller extension, custom location, and Arc data controller all in one command as follows:
38
38
39
-
```az
40
-
az arcdata dc create -n <name> -g <resource-group> --custom-location <custom-location> --cluster-name <cluster> --connectivity-mode direct --profile <the-deployment-profile>
39
+
40
+
##### [Linux](#tab/linux)
41
+
42
+
```console
43
+
## variables for Azure subscription, resource group, cluster name, location, extension, and namespace.
44
+
export resourceGroup=<Your resource group>
45
+
export clusterName=<name of your connected Kubernetes cluster>
46
+
export customLocationName=<name of your custom location>
47
+
48
+
## variables for logs and metrics dashboard credentials
49
+
export AZDATA_LOGSUI_USERNAME=<username for Kibana dashboard>
50
+
export AZDATA_LOGSUI_PASSWORD=<password for Kibana dashboard>
51
+
export AZDATA_METRICSUI_USERNAME=<username for Grafana dashboard>
52
+
export AZDATA_METRICSUI_PASSWORD=<password for Grafana dashboard>
53
+
```
54
+
55
+
##### [Windows (PowerShell)](#tab/windows)
56
+
57
+
```PowerShell
58
+
## variables for Azure location, extension and namespace
59
+
$ENV:resourceGroup="<Your resource group>"
60
+
$ENV:clusterName="<name of your connected Kubernetes cluster>"
61
+
$ENV:customLocationName="<name of your custom location>"
62
+
63
+
## variables for Metrics and Monitoring dashboard credentials
64
+
$ENV:AZDATA_LOGSUI_USERNAME="<username for Kibana dashboard>"
65
+
$ENV:AZDATA_LOGSUI_PASSWORD="<password for Kibana dashboard>"
66
+
$ENV:AZDATA_METRICSUI_USERNAME="<username for Grafana dashboard>"
67
+
$ENV:AZDATA_METRICSUI_PASSWORD="<password for Grafana dashboard>"
41
68
```
42
69
70
+
---
71
+
72
+
Deploy the Azure Arc data controller using released profile
73
+
##### [Linux](#tab/linux)
74
+
75
+
```azurecli
76
+
az arcdata dc create -name <name> -g ${resourceGroup} --custom-location ${customLocationName} --cluster-name ${clusterName} --connectivity-mode direct --profile-name <the-deployment-profile> --auto-upload-metrics true --auto-upload-logs true --storage-class <storageclass>
77
+
78
+
# Example
79
+
az arcdata dc create --name arc-dc1 --resource-group my-resource-group ----custom-location cl-name --connectivity-mode direct --profile-name azure-arc-aks-premium-storage --auto-upload-metrics true --auto-upload-logs true --storage-class mystorageclass
80
+
```
81
+
82
+
##### [Windows (PowerShell)](#tab/windows)
83
+
84
+
```azurecli
85
+
az arcdata dc create -name <name> -g $ENV:resourceGroup --custom-location $ENV:customLocationName --cluster-name $ENV:clusterName --connectivity-mode direct --profile-name <the-deployment-profile> --auto-upload-metrics true --auto-upload-logs true --storage-class <storageclass>
86
+
87
+
# Example
88
+
az arcdata dc create --name arc-dc1 --g $ENV:resourceGroup --custom-location $ENV:customLocationName --cluster-name $ENV:clusterName --connectivity-mode direct --profile-name azure-arc-aks-premium-storage --auto-upload-metrics true --auto-upload-logs true --storage-class mystorageclass
89
+
90
+
```
91
+
92
+
---
93
+
If you want to create the Azure Arc data controller using a custom configuration template, follow the steps described in [Create custom configuration profile](create-custom-configuration-template.md) and provide the path to the file as follows:
94
+
##### [Linux](#tab/linux)
95
+
96
+
```azurecli
97
+
az arcdata dc create --name -g ${resourceGroup} --custom-location ${customLocationName} --cluster-name ${clusterName} --connectivity-mode direct --path ./azure-arc-custom --auto-upload-metrics true --auto-upload-logs true
98
+
99
+
# Example
100
+
az arcdata dc create --name arc-dc1 --resource-group my-resource-group ----custom-location cl-name --connectivity-mode direct --path ./azure-arc-custom --auto-upload-metrics true --auto-upload-logs true
101
+
```
102
+
103
+
##### [Windows (PowerShell)](#tab/windows)
104
+
105
+
```azurecli
106
+
az arcdata dc create --name <name> -g $ENV:resourceGroup --custom-location $ENV:customLocationName --cluster-name $ENV:clusterName --connectivity-mode direct --path ./azure-arc-custom --auto-upload-metrics true --auto-upload-logs true --storage-class <storageclass>
107
+
108
+
# Example
109
+
az arcdata dc create --name arc-dc1 --resource-group $ENV:resourceGroup --custom-location $ENV:customLocationName --cluster-name $ENV:clusterName --connectivity-mode direct --path ./azure-arc-custom --auto-upload-metrics true --auto-upload-logs true --storage-class mystorageclass
110
+
111
+
```
112
+
113
+
---
114
+
43
115
## Deploy - individual experience
44
116
45
117
### Step 1: Create an Azure Arc-enabled data services extension
0 commit comments