Skip to content

Commit c09d930

Browse files
edits
1 parent 47166cd commit c09d930

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

articles/container-registry/quickstart-connected-registry-arc-cli.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ By deploying the connected Registry Arc extension, you can synchronize container
8989
9090
For secure deployment of the connected registry extension, generate the connection string, including a new password, transport protocol, and create the `protected-settings-extension.json` file required for the extension deployment with [az acr connected-registry get-settings][az-acr-connected-registry-get-settings] command:
9191
92-
```Linux
92+
```[Linux][#tab/linux]
9393
cat << EOF > protected-settings-extension.json
9494
{
9595
"connectionString": "$(az acr connected-registry get-settings \
@@ -102,7 +102,30 @@ By deploying the connected Registry Arc extension, you can synchronize container
102102
EOF
103103
```
104104
105-
```Windows
105+
```[Windows][#tab/windows]
106+
cat << EOF > protected-settings-extension.json
107+
{
108+
"connectionString": "$(az acr connected-registry get-settings \
109+
--name myconnectedregistry \
110+
--registry myacrregistry \
111+
--parent-protocol https \
112+
--generate-password 1 \
113+
--query ACR_REGISTRY_CONNECTION_STRING --output tsv --yes)"
114+
}
115+
EOF
116+
```
117+
118+
```[PowerShell][#tab/powershell]
119+
echo "{\"connectionString\":\"$(az acr connected-registry get-settings \
120+
--name myconnectedregistry \
121+
--registry myacrregistry \
122+
--parent-protocol https \
123+
--generate-password 1 \
124+
--query ACR_REGISTRY_CONNECTION_STRING \
125+
--output tsv \
126+
--yes | tr -d '\r')\" }" > settings.json
127+
```
128+
106129
echo "{\"connectionString\":\"$(az acr connected-registry get-settings \
107130
--name myconnectedregistry \
108131
--registry myacrregistry \

0 commit comments

Comments
 (0)