|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "api-version": "2023-08-01", |
| 4 | + "subscriptionId": "00000000-0000-0000-0000-000000000000", |
| 5 | + "resourceGroupName": "script-rg", |
| 6 | + "scriptName": "MyDeploymentScript", |
| 7 | + "deploymentScript": { |
| 8 | + "kind": "AzurePowerShell", |
| 9 | + "location": "westus", |
| 10 | + "identity": { |
| 11 | + "type": "UserAssigned", |
| 12 | + "userAssignedIdentities": { |
| 13 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} |
| 14 | + } |
| 15 | + }, |
| 16 | + "properties": { |
| 17 | + "azPowerShellVersion": "1.7.0", |
| 18 | + "scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", |
| 19 | + "containerSettings": { |
| 20 | + "containerGroupName": "contoso-aci" |
| 21 | + }, |
| 22 | + "arguments": "-Location 'westus' -Name \"*rg2\"", |
| 23 | + "supportingScriptUris": [ |
| 24 | + "https://uri1.to.supporting.script", |
| 25 | + "https://uri2.to.supporting.script" |
| 26 | + ], |
| 27 | + "retentionInterval": "P7D", |
| 28 | + "timeout": "PT1H", |
| 29 | + "cleanupPreference": "Always" |
| 30 | + } |
| 31 | + } |
| 32 | + }, |
| 33 | + "responses": { |
| 34 | + "201": { |
| 35 | + "body": { |
| 36 | + "kind": "AzurePowerShell", |
| 37 | + "location": "westus", |
| 38 | + "identity": { |
| 39 | + "type": "UserAssigned", |
| 40 | + "userAssignedIdentities": { |
| 41 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} |
| 42 | + } |
| 43 | + }, |
| 44 | + "systemData": { |
| 45 | + "createdBy": "string", |
| 46 | + "createdByType": "Application", |
| 47 | + "createdAt": "2020-02-01T01:01:01.1075056Z", |
| 48 | + "lastModifiedBy": "string", |
| 49 | + "lastModifiedByType": "Application", |
| 50 | + "lastModifiedAt": "2020-02-01T01:01:01.1075056Z" |
| 51 | + }, |
| 52 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript", |
| 53 | + "properties": { |
| 54 | + "provisioningState": "Creating", |
| 55 | + "azPowerShellVersion": "1.7.0", |
| 56 | + "scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", |
| 57 | + "arguments": "-Location 'westus' -Name \"*rg2\"", |
| 58 | + "supportingScriptUris": [ |
| 59 | + "https://uri1.to.supporting.script", |
| 60 | + "https://uri2.to.supporting.script" |
| 61 | + ], |
| 62 | + "retentionInterval": "P7D", |
| 63 | + "timeout": "PT1H", |
| 64 | + "containerSettings": { |
| 65 | + "containerGroupName": "contoso-aci" |
| 66 | + }, |
| 67 | + "cleanupPreference": "Always", |
| 68 | + "status": { |
| 69 | + "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", |
| 70 | + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", |
| 71 | + "startTime": "2018-11-13T15:19:45-08:00", |
| 72 | + "endTime": "2018-11-13T15:19:45-08:00", |
| 73 | + "expirationTime": "2018-11-13T15:19:45-08:00" |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | + }, |
| 78 | + "200": { |
| 79 | + "body": { |
| 80 | + "kind": "AzurePowerShell", |
| 81 | + "location": "westus", |
| 82 | + "identity": { |
| 83 | + "type": "UserAssigned", |
| 84 | + "userAssignedIdentities": { |
| 85 | + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai": {} |
| 86 | + } |
| 87 | + }, |
| 88 | + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/script-rg/providers/Microsoft.Resources/deployments/MyDeploymentScript", |
| 89 | + "properties": { |
| 90 | + "provisioningState": "Succeeded", |
| 91 | + "azPowerShellVersion": "1.7.0", |
| 92 | + "scriptContent": "Param([string]$Location,[string]$Name) $deploymentScriptOutputs['test'] = 'value' Get-AzResourceGroup -Location $Location -Name $Name", |
| 93 | + "arguments": "-Location 'westus' -Name \"*rg2\"", |
| 94 | + "supportingScriptUris": [ |
| 95 | + "https://uri1.to.supporting.script", |
| 96 | + "https://uri2.to.supporting.script" |
| 97 | + ], |
| 98 | + "retentionInterval": "P7D", |
| 99 | + "timeout": "PT1H", |
| 100 | + "containerSettings": { |
| 101 | + "containerGroupName": "contoso-aci" |
| 102 | + }, |
| 103 | + "cleanupPreference": "Always", |
| 104 | + "status": { |
| 105 | + "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.ContainerInstance/containerGroups/scriptContainer", |
| 106 | + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scriptRG/providers/Microsoft.Storage/storageAccounts/scriptStorage", |
| 107 | + "startTime": "2018-11-13T15:19:45-08:00", |
| 108 | + "endTime": "2018-11-13T15:19:45-08:00", |
| 109 | + "expirationTime": "2018-11-13T15:19:45-08:00" |
| 110 | + }, |
| 111 | + "outputs": { |
| 112 | + "additionalProperties": { |
| 113 | + "output1": "value1" |
| 114 | + } |
| 115 | + } |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | +} |
0 commit comments