Skip to content

Commit

Permalink
Add troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
hknutsen committed Feb 20, 2024
1 parent c843ecd commit e681078
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/oidc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Example configuration:
> **Note:** Minimum scope required is what's defined for role assignment in the `oidc.json` config.
- GitHub repository role `Admin` - to set GitHub environment secrets
- If a federated credential is configured with subject `repo:${REPO}:environment:<environment>`, create GitHub environment `<environment>` and set appropriate deployment protection rules.
- If you meet error message that contains: `InvalidSchema: No connection adapters were found` when running in `BASH` use following fix `export MSYS_NO_PATHCONV=1`. [Read more about this here](https://github.com/Azure/azure-cli/issues/16317).

## Usage

Expand Down Expand Up @@ -114,6 +113,10 @@ For example:
- When adding, updating or removing federated credentials in the configuration file, you'll need to manually delete old federated credentials from the App Registration.
- When adding, updating or removing role assignments in the configuration file, you'll need to manually delete old role assignments.

## Troubleshooting

- If running the script in Git Bash, you might encounter the following error message: `InvalidSchema: No connection adapters were found`. To fix this error, set the following environment variable: `export MSYS_NO_PATHCONV=1`.

## References

- [Microsoft Docs](https://docs.microsoft.com/en-us/azure/developer/github/connect-from-azure)
Expand Down
4 changes: 4 additions & 0 deletions scripts/terraform-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ Example configuration:
./terraform-backend.sh dev.azurerm.tfbackend.json northeurope 42a1284c-b0b1-4a64-afab-1a89ec7d0ac9
```

## Troubleshooting

- If running the script in Git Bash, you might encounter the following error message: `The request did not have a subscription or a valid tenant level resource provider.`. To fix this error, set the following environment variable: `export MSYS_NO_PATHCONV=1`.

## References

- [Store Terraform state in Azure Storage](https://learn.microsoft.com/en-us/azure/developer/terraform/store-state-in-azure-storage?tabs=azure-cli)
Expand Down

0 comments on commit e681078

Please sign in to comment.