- az login --use-device-code
- az vm list
- az vm list --query '[].{name:name, resourceGroup:resourceGroup, tags:tags}' -o json
- az vm update -g 1-3EA18CD3-PLAYGROUND-SANDBOX -n sathish-tags-testvm --set tags.MarkForDeletion=Yes
- az network vnet list --query '[].{name:name, resourceGroup:resourceGroup, tags:tags}' -o json
- az resource tag --tags "Dept=IT" "Environment=Production" "CreatedBy=Sathish" --resource-group playground-sandbox -n sathish-tags-testvm-vnet --resource-type "Microsoft.Network/VirtualNetworks"
-
- az webapp config appsettings set --resource-group --name --settings WEBSITES_PORT=8080
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
#Required Terraform version | |
required_version = "~>1.3.1" | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = ">=3.0, <=3.24.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* With the mac OS Monterey, there is an issue when Docker startup from a startup, which is not a one-off issue for me. With the latest docker desktop, when Docker tries to startup, this is the error that I get. | |
Creating "rootNode" subnodes: constructing "BackendServices" in "rootNode": doing migrations: migrating daemon.json: invalid character '{' after top-level value | |
* There was no specific issue/answer I could get from the community, so I looked up the daemon.json file, and there that led me to this folder in my machine, /Users/<mymacid>/Library/Group Containers/group.com.docker. | |
* To start the daemon, I deleted the folder | |
* Restart the Docker desktop. | |
Things are working well. Hopefully, this gist helps. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
class Scratch { | |
private static final Logger logger = LoggerFactory.getLogger(Scratch.class); |
- docker pull artifactory.company.com:portnumber/postgres
- docker container ls --format "table {{.ID}}\t{{.Image}}\t{{.Names}}" (awesome output)
- docker container ls --filter "status=paused" (paused container)
- docker container ls (Running Containers)
- docker container ls -a (all running containers)
- docker container ls -n 2 (last two containers)
- docker container ls -q (quiet mode)
- docker container ls --latest -s (container size)
- docker rm 8b17532f30c6 (remove container)
- docker rm -f mycontainer (forcefully remove container)
OlderNewer