Skip to content

Commit c375af1

Browse files
Merge pull request #220504 from RoseHJM/main
Added troubleshooting section for creating environments
2 parents 3602532 + ef62556 commit c375af1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/deployment-environments/quickstart-create-access-environments.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,20 @@ Complete the following steps in the Azure CLI to create an environment and confi
114114
> [!NOTE]
115115
> You can use `--help` to view more details about any command, accepted arguments and examples. For example, use `az devcenter dev environment create --help` to view more details about creating an environment.
116116
117+
### Troubleshoot permission error
118+
119+
You must have the [Deployment Environments User](how-to-configure-deployment-environments-user.md) role, the [DevCenter Project Admin](how-to-configure-project-admin.md) role, or a [built-in role](../role-based-access-control/built-in-roles.md) that has appropriate permissions can create an environment.
120+
121+
If you don't have the correct permissions, creation of the environment will fail, and you may receive an error message like this:
122+
123+
```
124+
(EnvironmentNotFound) The environment resource was not found.
125+
Code: EnvironmentNotFound
126+
Message: The environment resource was not found.
127+
```
128+
129+
To resolve the issue, assign the correct permissions: [Give project access to the development team](quickstart-create-and-configure-projects.md#give-project-access-to-the-development-team).
130+
117131
## Access an environment
118132

119133
To access an environment:
@@ -122,7 +136,7 @@ To access an environment:
122136

123137
```azurecli
124138
az devcenter dev environment list --dev-center <devcenter-name> --project-name <project-name>
125-
```
139+
```
126140

127141
1. View the access endpoints to various resources as defined in the ARM template outputs.
128142
1. Access the specific resources by using the endpoints.

0 commit comments

Comments
 (0)