https://github.com/lenisha/node-msi
Demo Azure MSI for Node app on the Azure App Service
https://github.com/lenisha/node-msi
azure-app-service azure-msi
Last synced: 2 months ago
JSON representation
Demo Azure MSI for Node app on the Azure App Service
- Host: GitHub
- URL: https://github.com/lenisha/node-msi
- Owner: lenisha
- Created: 2019-04-04T15:54:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:08:42.000Z (over 2 years ago)
- Last Synced: 2024-10-18T06:16:16.039Z (8 months ago)
- Topics: azure-app-service, azure-msi
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## node-msi
To add the group to DB
```
CREATE USER [msiadtest] FROM EXTERNAL PROVIDER;SELECT * FROM SYS.DATABASE_PRINCIPALS;
EXEC sp_addrolemember 'db_datareader', 'msiadtest';
```## K8S
Update `k8s.yaml` the `aadpodidbinding: demoidentity` to point to azureidentity you have created, and environment variable to point to the SQL Database and SQL Server
```
az acr build --image node-msi --registry acraccess --resource-group aks-tests --file Dockerfile .kubectl apply -f k8s.yaml
kubectl port-forward deployment/node-msi 8080:8080
```