Skip to content

Commit b6636a3

Browse files
Merge pull request #208204 from mikhailalmeida/mialmei-bug-fix
Updating docs for automatic mode
2 parents 8952ca4 + 6e17f53 commit b6636a3

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

articles/azure-arc/data/deploy-active-directory-connector-cli.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.subservice: azure-arc-data-sqlmi
77
author: mikhailalmeida
88
ms.author: mialmei
99
ms.reviewer: mikeray
10-
ms.date: 05/05/2022
10+
ms.date: 08/16/2022
1111
ms.topic: how-to
1212
---
1313

@@ -37,7 +37,7 @@ To know further details about how to set up OU and AD account, go to [Deploy Azu
3737
#### Create an AD connector instance
3838

3939
> [!NOTE]
40-
> Make sure the password of provided domain service AD account here doesn't contain `!` as special characters.
40+
> Make sure to wrap your password for the domain service AD account with single quote `'` to avoid the expansion of special characters such as `!`.
4141
>
4242
4343
To view available options for create command for AD connector instance, use the following command:
@@ -57,7 +57,7 @@ az arcdata ad-connector create
5757
--k8s-namespace < Kubernetes namespace >
5858
--realm < AD Domain name >
5959
--nameserver-addresses < DNS server IP addresses >
60-
--account-provisioning < account provisioning mode : manual or auto >
60+
--account-provisioning < account provisioning mode : manual or automatic >
6161
--prefer-k8s-dns < whether Kubernetes DNS or AD DNS Server for IP address lookup >
6262
--use-k8s
6363
```
@@ -75,6 +75,22 @@ az arcdata ad-connector create
7575
--use-k8s
7676
```
7777

78+
```azurecli
79+
# Setting environment variables needed for automatic account provisioning
80+
DOMAIN_SERVICE_ACCOUNT_USERNAME='sqlmi'
81+
DOMAIN_SERVICE_ACCOUNT_PASSWORD='arc@123!!'
82+
83+
# Deploying active directory connector with automatic account provisioning
84+
az arcdata ad-connector create
85+
--name arcadc
86+
--k8s-namespace arc
87+
--realm CONTOSO.LOCAL
88+
--nameserver-addresses 10.10.10.11
89+
--account-provisioning automatic
90+
--prefer-k8s-dns false
91+
--use-k8s
92+
```
93+
7894
##### Directly connected mode
7995

8096
```azurecli
@@ -83,7 +99,7 @@ az arcdata ad-connector create
8399
--dns-domain-name < The DNS name of AD domain >
84100
--realm < AD Domain name >
85101
--nameserver-addresses < DNS server IP addresses >
86-
--account-provisioning < account provisioning mode : manual or auto >
102+
--account-provisioning < account provisioning mode : manual or automatic >
87103
--prefer-k8s-dns < whether Kubernetes DNS or AD DNS Server for IP address lookup >
88104
--data-controller-name < Arc Data Controller Name >
89105
--resource-group < resource-group >
@@ -103,6 +119,23 @@ az arcdata ad-connector create
103119
--resource-group arc-rg
104120
```
105121

122+
```azurecli
123+
# Setting environment variables needed for automatic account provisioning
124+
DOMAIN_SERVICE_ACCOUNT_USERNAME='sqlmi'
125+
DOMAIN_SERVICE_ACCOUNT_PASSWORD='arc@123!!'
126+
127+
# Deploying active directory connector with automatic account provisioning
128+
az arcdata ad-connector create
129+
--name arcadc
130+
--realm CONTOSO.LOCAL
131+
--dns-domain-name contoso.local
132+
--nameserver-addresses 10.10.10.11
133+
--account-provisioning automatic
134+
--prefer-k8s-dns false
135+
--data-controller-name arcdc
136+
--resource-group arc-rg
137+
```
138+
106139
### Update an AD connector instance
107140

108141
To view available options for update command for AD connector instance, use the following command:

0 commit comments

Comments
 (0)