skip to Main Content

Why doesn't "run-command" return any response in Azure?

I'm trying to start a ping in Linux VM in Azure. I would like to use API to do that. I have a blank response with status : 202 accepted. `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand?api-version=2023-07-01 JSON body : { "commandId": "RunShellScript", "script": [ "ping…

VIEW QUESTION

incremental backup on azure

At 08:00 AM we take a disk snapshot with this azure cli command: az snapshot create -g RG1 -n snapshot_0800 --source DISK1 Can you help me to understand how I can create a snapshot at 09:00 AM to provide an…

VIEW QUESTION

python script running through php (cli and mod-php differences)

here some difficulties with running python script through apache mod-php fname='/tmp/catalog.xml' http=urllib3.PoolManager() response=http.request('GET','https://xxxx/xxxxx.xml') doc=response.data.decode('UTF-8') print('Saving xml...') with open(fname,'w') as catalog: catalog.write(doc) print('Parsing...') this code executed from php script and perfectly works when i execute it from cli like that :…

VIEW QUESTION
Back To Top
Search