Monday, March 29, 2021

Meld - Reminder

 Hold down the Shift key to change the current action to delete. This action deletes the current change.

Hold down the Ctrl key to change the current action to insert. This action inserts the current change above or below (as selected) the corresponding change.

Thursday, March 18, 2021

Azure - Azcopy blobs guide

1. Make sure you are on the right account (read https://craigforrester.com/posts/azure-cli-basics-logging-in/)


2. Create sas token.

3. Make sure you are logged in with

azcopy login

4. now copy with for example the following command:

AZcopy copy "c:\App_Data\MyBlobs\*" "https://{{youraccount}}.blob.core.windows.net/vpp?{{your SAS TOKEN }}" --recursive

OR
az storage blob download-batch --account-name customerVPP --source vppnext --destination C:\Users\Downloads\vppnext


# List currently authenticated subscriptions

az account list # Log in to a subscription az login # Display subscriptions by Name and show which is selected az account list --query "[].{Name:name, IsDefault:isDefault}" # Select a specific subscription by name az account set --subscription "Visual Studio Enterprise" # Show usernames associated with specific subscriptions az account list --query "[].{Name:name, User:user.name}" # Show usernames associated with a specific subscription matching Name az account list --query "[?contains(name, 'Visual')].{Name:name, User:user.name}" # Log out of a specific subscription by username az logout --username "user@example.com" # List virtual machines for select account az vm list

az copy to pageblob type : --blob-type=PageBlob

--blob-type=BlockBlob (used in episerver)

Thursday, March 4, 2021