skip to Main Content

Formatting golang time for Azure SDK

Consider the following golang today := time.Now().Format("2006-01-02T03:04:05.9999999Z") t, _ := time.Parse(time.RFC3339Nano, today) Why isn't that equivalent to the much simpler t := time.Now() ? I would like to confirm whether the above code is equivalent, as I believe it is,…

VIEW QUESTION

How to upload file from local python script to Azure container?

I'm trying to upload a json file directly from my python script (VSC) to an Azure blob container. Here is what I've tried: account_url = "https://containerxyz.blob.core.windows.net" default_credential = DefaultAzureCredential() blob_service_client = BlobServiceClient(account_url, credential=default_credential) container_name = 'https://containerxyz.blob.core.windows.net/a/b/raw/' file = 'test.txt' contents…

VIEW QUESTION
Back To Top
Search