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: 4 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 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T17:08:42.000Z (over 3 years ago)
- Last Synced: 2025-06-01T08:33:32.687Z (about 1 year ago)
- Topics: azure-app-service, azure-msi
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 0
- Watchers: 1
- 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
```