11 lines
400 B
Bash
Executable File
11 lines
400 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
AZURE_ACCESS_TOKEN=$(az account get-access-token --query accessToken -o tsv)
|
|
curl -X POST \
|
|
"https://management.azure.com/subscriptions/a2e2b55c-a568-402b-a953-5b7337e49473/resourceGroups/sk1bk/providers/Microsoft.Web/sites/sk1bk/restart?api-version=2022-03-01" \
|
|
-H "Authorization: Bearer $AZURE_ACCESS_TOKEN" \
|
|
-H "Content-Length: 0" \
|
|
-H "Content-Type: application/json" \
|
|
-d ""
|
|
|