Wednesday, November 9, 2022
Thursday, September 23, 2021
Azure: Resize VM : How to expand the OS drive of a virtual machine
Sunday, September 5, 2021
How to debug Azure VM Issues
https://www.hiroom2.com/2018/04/30/ubuntu-1804-serial-console-en/#sec-1
https://tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-boot-loader-grub.html
https://www.hiroom2.com/2018/04/30/ubuntu-1804-serial-console-en/
https://askubuntu.com/questions/924913/how-to-get-to-the-grub-menu-at-boot-time-using-serial-console
https://www.youtube.com/watch?v=sVMgZ9YW6i8
https://www.lcn.com/support/articles/how-to-show-hidden-files-in-ftp/
https://askubuntu.com/questions/391082/how-to-see-time-stamps-in-bash-history
SSH Not Getting Connected : Azure VM
Settings -> Disks
Settings -> Properties -> Agent status : Not Ready or Ready
TTY
Sys REQ
Grub Loader
Serial Console
sysctl -a |grep -i sysrq
https://www.youtube.com/watch?v=KevOc3d_SG4&t=147s
https://www.youtube.com/watch?v=HnvUxnNzbe4
https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
waagent
https://github.com/Azure/WALinuxAgent
The Microsoft Azure Linux Agent (waagent) manages Linux provisioning and VM interaction with the Azure Fabric Controller.
What is Azure fabric?
Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices and containers
Operations ->
Monitoring ->
Automation ->
Support + troubleshooting -> Resource health
Support + troubleshooting -> Boot diagnostics
Support + troubleshooting -> Performance diagnostics
Support + troubleshooting -> Serial console
Connect -> Connect with Bastion Host
https://docs.microsoft.com/en-us/azure/bastion/tutorial-create-host-portal
https://www.rebeladmin.com/2019/11/step-step-guide-access-azure-vms-securely-using-azure-bastion/
Role
https://docs.microsoft.com/en-us/azure/role-based-access-control/check-access
Azure VM -> Support + troubleshooting -> Boot diagnostics
Boot Diagnostics
https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/boot-diagnostics
GrubLoader Issue
https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-vm-boot-error
https://www.youtube.com/watch?v=KevOc3d_SG4
https://askubuntu.com/questions/266429/error-file-grub-i386-pc-normal-mod-not-found
10.79.202.5
fda
Rage@1234567
azureubuntu
azlinux
R....1......e2021
GRand Unified Bootloader (GRUB) is likely the first thing you see when you boot a virtual machine (VM). Because it's displayed before the operating system has started, GRUB isn't accessible via SSH. In GRUB, you can modify your boot configuration to boot into single-user mode, among other things.
REISUB
az vm start -g CORA-AI -n FDA-VEA
az vm restart -g CORA-AI -n FDA-VEA
az vm restart -g CORA-AI -n FDA-VEA --force --no-wait
az serial-console send reset -g CORA-AI -n FDA-VEA
az serial-console send reset -g CORA-AI -n FDA-VEA
az vm boot-diagnostics get-boot-log -g CORA-AI -n FDA-VEA
az serial-console connect -g CORA-AI -n FDA-VEA
az serial-console send reset -g CORA-AI -n FDA-VEA
az vm boot-diagnostics enable -g CORA-AI -n FDA-VEA
$subscriptionId=$(az account show --output=json | jq -r .id)
az resource show --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default" --output=json --api-version="2018-05-01" | jq .properties
Tuesday, August 3, 2021
Wednesday, July 7, 2021
Azure : Devops : Pipelines: Task ::: Cache Task
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops
https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops#maven
Maven
Maven has a local repository where it stores downloads and built artifacts. To enable, set the maven.repo.local
option to a path under $(Pipeline.Workspace)
and cache this folder.
Example:
variables:
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
steps:
- task: Cache@2
inputs:
key: 'maven | "$(Agent.OS)" | **/pom.xml'
restoreKeys: |
maven | "$(Agent.OS)"
maven
path: $(MAVEN_CACHE_FOLDER)
displayName: Cache Maven local repo
- script: mvn install -B -e
If you are using a Maven task, make sure to also pass the MAVEN_OPTS
variable because it gets overwritten otherwise:
Wednesday, June 30, 2021
Azure:Devops Stakeholder:Basic Access
Supported access levels
Assign users or groups of users to one of the following access levels:
- Stakeholder: Provides partial access, can be assigned to unlimited users for free. Assign to users with no license or subscriptions who need access to a limited set of features.
- Basic: Provides access to most features. Assign to users with a Visual Studio Professional subscription, an Azure DevOps Server CAL, and to users for whom you're paying for Basic access in an organization.
- Basic + Test Plans: Provides access to all features included in Basic, as well as Azure Test Plans. Assign to users with a Visual Studio Test Professional or MSDN Platforms subscription, and to users for whom you're paying for Basic + Test Plans access in an organization.
- Visual Studio subscription: Assign to users who already have a Visual Studio subscription. The system automatically recognizes the user's subscription—Visual Studio Enterprise, Visual Studio Professional, Visual Studio Test Professional, or MSDN Platform—and enables any other features that are included in their subscription level. If you assign Basic or Stakeholder, they also receive their Visual Studio subscription benefits upon sign-in.
Friday, June 25, 2021
Azure Agent - Configure As a Service Linux or Standalone or Nohup &
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=azure-devops
#Configure it as a linux process and using nohup &
./run.sh
ps -ef --sort=start_time |grep -E 'Agent|run.sh'
--------------------------------------------------------------------------------------------------------
#Configure Listener as a service in Linux, It actually, starts 3 Services
sudo ./svc.sh install #Creates a symlink under /etc/systemctl/system
sudo ./svc.sh start
sudo ./svc.sh status
sudo ./svc.sh uninstall #Uninstall Service(SystemD) ,You should stop before you uninstall.
ps -ef --sort=start_time |grep -E 'Agent|runsvc'
ps -ef --sort=start_time |grep -E 'vsts|Agent|run.sh'
sudo systemctl is-active 'vsts.agent.GenpactDigitalEngineering.eks\x2ddev.dev.service'
sudo systemctl is-enabled 'vsts.agent.GenpactDigitalEngineering.eks\x2ddev.dev.service'
sudo systemctl status 'vsts.agent.GenpactDigitalEngineering.eks\x2ddev.dev.service'
#Configure Listener as a service in Linux, It actually, starts 3 Services
Loaded: loaded (/etc/systemd/system/vsts.agent.GenpactDigitalEngineering.eks\x2ddev.dev.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-06-26 04:12:27 UTC; 17min ago
Main PID: 27333 (runsvc.sh)
Tasks: 21 (limit: 4915)
CGroup: /system.slice/vsts.agent.GenpactDigitalEngineering.eks\x2ddev.dev.service
├─27333 /bin/bash /home/eks/agent/runsvc.sh
├─27336 ./externals/node/bin/node ./bin/AgentService.js
└─27356 /home/eks/agent/bin/Agent.Listener run --startuptype service
Remove and re-configure an agent (Not Service) The Whole Agent
To remove the agent:
1) Stop and uninstall the service as explained above.
2) Remove the agent. [As it appears in Agent Pool]
./config.sh remove [Enter your credentials.]
After you've removed the agent, you can configure it again.
Sunday, June 20, 2021
SSL can be embedded in DNS - DNS is Network level , Not Http Level
DNS is LEVEL4 - N/W Layer
HTTPS/SSL is Layer 7(6) - Above 4
So, DNS is merely Server resolving , it does not know anything at SSL TLS HTTPS level
So, We direct DNS to Load Balancer
Load Balancer has a listener which redirects traffic internally
Load Balancer is at TCP Port 80
TCP Port 80 redirects to Port 443 at Load balancer Level
here at LB SSL offloading Happens
PFX File, CER File is issued to "DNS Name " and "Subject Alternative Names" to FQDN of Host Backends
DNS has Record Set Types:
A record
CNAME record
NS record
Saturday, June 19, 2021
Install Powershell for AZURE - Azure CLI
How to install Powershell for Azure
https://www.parallels.com/blogs/ras/azure-powershell/
Set-ExecutionPolicy RemoteSigned
Install-Module -Name Az -AllowClobber
Connect-AzAccount -DeviceCode [Enter Device Code on Browser after opening it]
Saturday, June 5, 2021
Azure Pipelines, YAML Schema
Monday, April 5, 2021
Azure Devops, Azure, YAML, Conditional Tasks
You can specify conditions under which a step, job, or stage will run.
Only when all previous dependencies have succeeded. This is the default if there is not a condition set in the YAML.
Even if a previous dependency has failed, unless the run was canceled. Use
succeededOrFailed()
in the YAML for this condition.Even if a previous dependency has failed, even if the run was canceled. Use
always()
in the YAML for this condition.Only when a previous dependency has failed. Use
failed()
in the YAML for this condition.
- Custom conditions
1 2 3 4 5 6 7 8 9 10 | jobs: - job: Foo steps: - script: echo Hello! condition: always() # this step will always run, even if the pipeline is canceled - job: Bar dependsOn: Foo condition: failed() # this job will only run if Foo fails |
Azure - Pipeline - Add Approver for Stage
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-featu...
-
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
The decision was made to block such external HTTP repositories by default https://stackoverflow.com/questions/66980047/maven-build-failure-d...