Skip to content

Instantly share code, notes, and snippets.

View hkboujrida's full-sized avatar

Haithem BOUJRIDA hkboujrida

View GitHub Profile
param (
[Parameter(Mandatory = $true)]
[string]$Organization,
[Parameter(Mandatory = $true)]
[string]$Project,
[Parameter(Mandatory = $true)]
[string]$ClientId,
curl -X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_DOCUMENT_INTELLIGENCE_SUBSCRIPTION_KEY" \
-H "Content-Type: multipart/form-data" \
-F "file=@c:/data/example.pdf" \
"YOUR_DOCUMENT_INTELLIGENCE_ENDPOINT/documentintelligence/rest/v1.0-preview/custom/models/YOUR_MODEL_GUID/analyze"
{
"Name": "Automation Jumpbox Manager",
"IsCustom": true,
"Description": "Allows an Automation Account to start, stop, and assess patches for VMs across a tenant.",
"Actions": [
"Microsoft.Resources/subscriptions/read",
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/deallocate/action",
"Microsoft.Compute/virtualMachines/assessPatches/action"