Skip to content

Commit e73af49

Browse files
committed
Explain role of codespace secrets
1 parent 22a7c12 commit e73af49

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

articles/iot-operations/includes/connect-cluster.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ To connect your cluster to Azure Arc:
2323
> * Open the codespace in VS Code desktop, and then return to the browser terminal and rerun `az login`.
2424
> * Or, after you get the localhost error on the browser, copy the URL from the browser and run `curl "<URL>"` in a new terminal tab. You should see a JSON response with the message "You have logged into Microsoft Azure!."
2525
26-
1. Set environment variables for the rest of the setup. Replace values in `<>` with valid values or names of your choice. A new cluster and resource group are created in your Azure subscription based on the names you provide:
26+
1. Set an environment variable for the cluster name as it will show up in your resource group.
27+
28+
```bash
29+
# Name of the Arc-enabled cluster to create in your resource group
30+
export CLUSTER_NAME=<NEW_CLUSTER_NAME>
31+
```
32+
33+
1. Set environment variables for your Azure subscription, location, and a new resource group. If you're using GitHub Codespaces and set these secrets when creating your codespace, you can skip this step.
2734

2835
```bash
2936
# Id of the subscription where your resource group and Arc-enabled cluster will be created
@@ -41,11 +48,6 @@ To connect your cluster to Azure Arc:
4148
export RESOURCE_GROUP=<NEW_RESOURCE_GROUP_NAME>
4249
```
4350

44-
```bash
45-
# Name of the Arc-enabled cluster to create in your resource group
46-
export CLUSTER_NAME=<NEW_CLUSTER_NAME>
47-
```
48-
4951
1. Set the Azure subscription context for all commands:
5052

5153
```azurecli

articles/iot-operations/includes/prepare-codespaces.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ To get started with your codespace:
2626

2727
[![Create an explore-iot-operations codespace](https://github.com/codespaces/badge.svg)](https://codespaces.new/Azure-Samples/explore-iot-operations?quickstart=1)
2828

29-
You don't have to provide the recommended secrets at this step. If you do, make sure that you use the same values here and in the CLI commands in the next section.
29+
You don't have to provide the recommended secrets at this step. If you do, they get saved on your GitHub account to be used in this and future codespaces. They're also added as environment variables in the codespace terminal, and you don't have to run the CLI commands in the next section that configure the subscription, resource group, or location variables.
30+
31+
| Parameter | Value |
32+
| --------- | ----- |
33+
| SUBSCRIPTION_ID | Your Azure subscription ID. |
34+
| RESOURCE_GROUP | A name for a new Azure resource group where your cluster will be created. |
35+
| LOCATION | An Azure region close to you. The following regions are supported in public preview: eastus, eastus2, westus, westus2, westus3, westeurope, or northeurope. |
3036

3137
1. Select **Create new codespace**.
3238

0 commit comments

Comments
 (0)