Tuesday, September 7, 2021
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #Provide the name of your resource group $resourceGroupName ='myResourceGroup' #Provide the name of the snapshot that will be used to create Managed Disks $snapshotName = 'mySnapshot' #Provide the name of theManaged Disk $diskName = 'newOSDisk' #Provide the size of the disks in GB. It should be greater than the VHD file size. In this sample, the size of the snapshot is 127 GB. So we set the disk size to 128 GB. $diskSize = '128' #Provide the storage type for Managed Disk. Premium_LRS or Standard_LRS. $storageType = 'Standard_LRS' #Provide the Azure region (e.g. westus) where Managed Disks will be located. #This location should be same as the snapshot location #Get all the Azure location using command below: #Get-AzLocation $location = 'westus' $snapshot = Get-AzSnapshot -ResourceGroupName $resourceGroupName -SnapshotName $snapshotName $diskConfig = New-AzDiskConfig -AccountType $storageType -Location $location -CreateOption Copy -SourceResourceId $snapshot.Id New-AzDisk -Disk $diskConfig -ResourceGroupName $resourceGroupName -DiskName $diskName |
Linux Mount Disk : blkid -o full and lsblk -f and lsblk and df -h
/dev/sda1: LABEL="cloudimg-rootfs" UUID="f89a10d0-2ae6-4411-9086-8ccd221055fd" TYPE="ext4" PARTUUID="b08788dd-af4a-4015-b7b0-f7b53b252ddd"
/dev/sda15: LABEL="UEFI" UUID="C4E4-E7F8" TYPE="vfat" PARTUUID="12798101-40c7-4dfe-8b16-58d8522bbbc0"
/dev/sdb1: LABEL="Temporary Storage" UUID="02BEE3C1BEE3AB7D" TYPE="ntfs" PARTUUID="29e34589-01"
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ext4 cloudimg-rootfs f89a10d0-2ae6-4411-9086-8ccd221055fd /
├─sda14
└─sda15 vfat UEFI C4E4-E7F8 /boot/efi
sdb
└─sdb1 ext4 43e815d5-3bed-4f3b-a218-89a068dddc2c /mnt
sdc ext4 204db14b-9657-49b9-8daf-35ba202e295c
sr0
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 30G 0 disk
├─sda1 8:1 0 29.9G 0 part /
├─sda14 8:14 0 4M 0 part
└─sda15 8:15 0 106M 0 part /boot/efi
sdb 8:16 0 32G 0 disk
└─sdb1 8:17 0 32G 0 part /mnt
sdc 8:32 0 150G 0 disk
sr0 11:0 1 628K 0 rom
Filesystem Size Used Avail Use% Mounted on
udev 7.9G 0 7.9G 0% /dev
tmpfs 1.6G 688K 1.6G 1% /run
/dev/sda1 29G 1.4G 28G 5% /
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda15 105M 6.6M 98M 7% /boot/efi
/dev/sdb1 32G 49M 30G 1% /mnt
tmpfs 1.6G 0 1.6G 0% /run/user/1000
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
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...