We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pcsouzafv/azure-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
configure-permissions.ps1•2.36 KiB
# Script para configurar permissões do Service Principal
# Execute este script como administrador no Portal Azure ou com permissões adequadas
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host "Configurando Permissões do Azure MCP Server" -ForegroundColor Cyan
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host ""
$subscriptionId = "c559ba89-2224-4b9c-8890-b24510a8f82b"
$servicePrincipalId = "3fa4c4df-6091-4073-ae17-6a35f4c168c1"
Write-Host "Subscription ID: $subscriptionId" -ForegroundColor Yellow
Write-Host "Service Principal ID: $servicePrincipalId" -ForegroundColor Yellow
Write-Host ""
# Opção 1: Atribuir Reader na subscription inteira
Write-Host "Opção 1: Atribuir permissão Reader na subscription inteira" -ForegroundColor Green
Write-Host "Comando:" -ForegroundColor White
Write-Host "az role assignment create --assignee $servicePrincipalId --role 'Reader' --scope '/subscriptions/$subscriptionId'" -ForegroundColor Gray
Write-Host ""
# Opção 2: Atribuir Reader em um resource group específico
Write-Host "Opção 2: Atribuir permissão Reader em um Resource Group específico" -ForegroundColor Green
Write-Host "Comando:" -ForegroundColor White
Write-Host "az role assignment create --assignee $servicePrincipalId --role 'Reader' --scope '/subscriptions/$subscriptionId/resourceGroups/NOME-DO-SEU-RG'" -ForegroundColor Gray
Write-Host ""
# Opção 3: Via Portal Azure
Write-Host "Opção 3: Configurar via Portal Azure" -ForegroundColor Green
Write-Host "1. Acesse: https://portal.azure.com" -ForegroundColor White
Write-Host "2. Vá em 'Subscriptions' > 'Assinatura do Azure 1'" -ForegroundColor White
Write-Host "3. Clique em 'Access control (IAM)'" -ForegroundColor White
Write-Host "4. Clique em '+ Add' > 'Add role assignment'" -ForegroundColor White
Write-Host "5. Selecione a role 'Reader'" -ForegroundColor White
Write-Host "6. Em 'Members', busque por 'azure-mcp-server'" -ForegroundColor White
Write-Host "7. Clique em 'Review + assign'" -ForegroundColor White
Write-Host ""
Write-Host "==================================================" -ForegroundColor Cyan
Write-Host "Após configurar as permissões, teste o servidor:" -ForegroundColor Cyan
Write-Host "npm start" -ForegroundColor Yellow
Write-Host "==================================================" -ForegroundColor Cyan