зеркало из https://github.com/Azure/ipam.git
Added a troubleshooting section to the documentation
This commit is contained in:
Родитель
0a24b1ce2b
Коммит
982c837396
|
@ -4,6 +4,7 @@
|
|||
|
||||
* [Welcome](/README.md)
|
||||
* [Deployment](/deployment/README.md)
|
||||
* [Troubleshooting](/troubleshooting/README.md)
|
||||
* [How-To](/how-to/README.md)
|
||||
* [API](/api/README.md)
|
||||
* [Questions/Comments](/questions-comments/README.md)
|
||||
|
|
|
@ -0,0 +1,52 @@
|
|||
# Troubleshooting
|
||||
|
||||
## Cosmos DB DisableKeyBasedMetadataWriteAccess
|
||||
|
||||
#### <u>Symptoms</u>
|
||||
|
||||
- Spaces, Blocks, Virtual Networks, Subnets, and Endpoints fail to load
|
||||
- HTTP 502 responses are visible for the "me" call in the Developer Tools networking view
|
||||
|
||||
![Data Fails To Load & HTTP 502 Responses](./images/fail_to_load_me_502.png)
|
||||
|
||||
- An error in the Application Log for the App Service stating that the *Operation is not allow through the Azure Cosmos DB endpoint*.
|
||||
|
||||
![Cosmos DB Not Allowed Though Endpoint](./images/cosmos_db_not_allowed.png)
|
||||
|
||||
#### <u>Verify</u>
|
||||
|
||||
You can check to see if the flag ```DisableKeyBasedMetadataWriteAccess``` is set on your Cosmos DB resource by running one of the following commands:
|
||||
|
||||
**Azure PowerShell**
|
||||
|
||||
```powershell
|
||||
Get-AzCosmosDBAccount -ResourceGroupName <ResourceGroupName> -Name <CosmosDBAccountName>
|
||||
```
|
||||
|
||||
![disableKeyBasedMetadataWriteAccess Azure PowerShell](./images/disableKeyBasedMetadataWriteAccess_powershell.png)
|
||||
|
||||
**Azure CLI**
|
||||
```bash
|
||||
az cosmosdb show --resource-group <ResourceGroupName> --name <CosmosDBAccountName>
|
||||
```
|
||||
|
||||
![disableKeyBasedMetadataWriteAccess Azure CLI](./images/disableKeyBasedMetadataWriteAccess_cli.png)
|
||||
|
||||
#### <u>Resolve</u>
|
||||
|
||||
Set the ```DisableKeyBasedMetadataWriteAccess``` flag to ```false``` using one of the following commands:
|
||||
|
||||
**Azure PowerShell**
|
||||
|
||||
```powershell
|
||||
Update-AzCosmosDBAccount -ResourceGroupName <ResourceGroupName> -Name <CosmosDBAccountName> -DisableKeyBasedMetadataWriteAccess $false
|
||||
```
|
||||
|
||||
**Azure CLI**
|
||||
```bash
|
||||
az cosmosdb update --resource-group <ResourceGroupName> --name <CosmosDBAccountName> --disable-key-based-metadata-write-access false
|
||||
```
|
||||
|
||||
#### <u>Notes</u>
|
||||
|
||||
This flag may have been set by [Azure Policy](https://learn.microsoft.com/en-us/azure/governance/policy/overview). You can find more details about this policy [here](https://learn.microsoft.com/en-us/azure/cosmos-db/policy-reference#azure-cosmos-db) under *Azure Cosmos DB key based metadata write access should be disabled*. You may need to contact your policy administrator to request an exception for Azure IPAM.
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 140 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 32 KiB |
Двоичные данные
docs/troubleshooting/images/disableKeyBasedMetadataWriteAccess_powershell.png
Normal file
Двоичные данные
docs/troubleshooting/images/disableKeyBasedMetadataWriteAccess_powershell.png
Normal file
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 32 KiB |
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 153 KiB |
Загрузка…
Ссылка в новой задаче