echo "" > /etc/machine-id
Wednesday, April 12, 2023
Generalizing ubuntu for vmware
Tuesday, April 11, 2023
Using Azure Lighthouse for Monitoring Other Tenant.
Azure Lighthouse is a service provided by Microsoft Azure that allows service providers to manage multiple customers’ Azure services from a single control plane. It provides a centralized portal to manage multiple Azure tenants, customers or subscriptions, giving the service provider a single view of all Azure resources across different customer environments. Azure Lighthouse provides several features including delegated resource management, multi-tenant management, and cross-tenant management, which help service providers to manage resources across their entire customer base in a secure and efficient manner. It simplifies and streamlines the management of Azure services, provides greater visibility into customers’ environments, and enables service providers to deliver better services to their customers.
In Short, we give access to a subscription or resource to a User/Group in another tenant with specific Roles.
Sample ARM Template for adding a Customer account to Service Providers Lighthouse.
"managedByTenantId": "a86bc255-XXXX-CCCC-VVVV-51fba84872aa"
Above is the Tenant ID of the Managed Services Provider.
"defaultValue": "XXXXXXXXXXXXXXXXXXXXXXX"
defaultValue": "YYYYYYYYYYYYYYYYYYYYYYYYYY"
Above is the Description of the Offering.
"principalId": "9d45cb5e-4682-4a4d-b54a-a89e3fa7bc84",
Above is the Object ID of the User or the Group we are selecting for this Offering.
"roleDefinitionId": "acdd72a7-3385-48ef-bd42-f606fba81ae7",
Above is the ID of the Role we are selecting.
"principalIdDisplayName": "Azure Reader Access"
Above is the Name of the Role we are selecting.
Sample ARM
Monday, April 10, 2023
NextCloud Setup with Docker
docket-compose up -f
docker-compose down
===========
version: '2'
#volumes:
# nextcloud: /root/nextcloud/ncdata
# db: /root/nextcloud/mysql
services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /root/nextcloud/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=XXXXXXXXX
- MYSQL_PASSWORD=XXXXXXXX
- MYSQL_DATABASE=XXXXXXXX
- MYSQL_USER=XXXXXXXX
app:
image: nextcloud
restart: always
links:
- db
volumes:
- /root/nextcloud/ncdata:/var/www/html
environment:
- MYSQL_PASSWORD=XXXXXXXX
- MYSQL_DATABASE=XXXXXXXX
- MYSQL_USER=XXXXXXXX
- MYSQL_HOST=XXXXXXXX
- NEXTCLOUD_TRUSTED_DOMAINS=abc.xyz.aa
- OVERWRITEHOST=abc.xyz.aa:XXXX
- OVERWRITEPROTOCOL=https
web:
image: nginx
restart: always
ports:
- 8082:8080
links:
- app
volumes:
- /root/nextcloud/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- /root/nextcloud/cert:/etc/cert
===========
Nginx Configuration file
===========
server {
listen 80;
server_name abc.xyz.aa;
return 301 https://$server_name:8080$request_uri;
add_header X-Content-Type-Options "nosniff";
}
server {
listen 8080 ssl;
server_name abc.xyz.aa;
ssl_certificate /etc/cert/abc.xyz.aa.crt;
ssl_certificate_key /etc/cert/abc.xyz.aa.key;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://app;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
===========