|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "api-version": "2025-03-01-preview", |
| 4 | + "subscriptionId": "a0a37f63-7183-4e86-9ac7-ce8036a3ed31", |
| 5 | + "resourceGroupName": "resourceGroup1", |
| 6 | + "iacProfileName": "profile1", |
| 7 | + "parameters": { |
| 8 | + "location": "location1", |
| 9 | + "tags": { |
| 10 | + "appname": "testApp" |
| 11 | + }, |
| 12 | + "properties": { |
| 13 | + "githubProfile": { |
| 14 | + "repositoryOwner": "owner", |
| 15 | + "repositoryName": "localtest", |
| 16 | + "repositoryMainBranch": "main" |
| 17 | + }, |
| 18 | + "terraformProfile": { |
| 19 | + "storageAccountSubscription": "subscription", |
| 20 | + "storageAccountResourceGroup": "hybrid-iac", |
| 21 | + "storageAccountName": "hybridiac", |
| 22 | + "storageContainerName": "hybridiac" |
| 23 | + }, |
| 24 | + "stages": [ |
| 25 | + { |
| 26 | + "stageName": "dev", |
| 27 | + "dependencies": [], |
| 28 | + "gitEnvironment": "Terraform" |
| 29 | + }, |
| 30 | + { |
| 31 | + "stageName": "qa", |
| 32 | + "dependencies": [ |
| 33 | + "dev" |
| 34 | + ], |
| 35 | + "gitEnvironment": "Terraform" |
| 36 | + }, |
| 37 | + { |
| 38 | + "stageName": "prod", |
| 39 | + "dependencies": [ |
| 40 | + "qa" |
| 41 | + ], |
| 42 | + "gitEnvironment": "Terraform" |
| 43 | + } |
| 44 | + ], |
| 45 | + "templates": [ |
| 46 | + { |
| 47 | + "templateName": "base", |
| 48 | + "sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", |
| 49 | + "instanceStage": "dev", |
| 50 | + "instanceName": "contoso", |
| 51 | + "templateDetails": [ |
| 52 | + { |
| 53 | + "productName": "HCI", |
| 54 | + "count": 1, |
| 55 | + "namingConvention": "$sitid-hci" |
| 56 | + }, |
| 57 | + { |
| 58 | + "productName": "AKSarc", |
| 59 | + "count": 1, |
| 60 | + "namingConvention": "$sitid-aks" |
| 61 | + } |
| 62 | + ] |
| 63 | + } |
| 64 | + ] |
| 65 | + } |
| 66 | + } |
| 67 | + }, |
| 68 | + "responses": { |
| 69 | + "200": { |
| 70 | + "body": { |
| 71 | + "id": "/subscriptions/a0a37f63-7183-4e86-9ac7-ce8036a3ed31/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/iacProfiles/profile1", |
| 72 | + "location": "location1", |
| 73 | + "name": "profile1", |
| 74 | + "type": "Micfosoft.DevHub/iacProfiles", |
| 75 | + "tags": { |
| 76 | + "appname": "testapp" |
| 77 | + }, |
| 78 | + "systemData": { |
| 79 | + |
| 80 | + "createdByType": "User", |
| 81 | + "createdAt": "2024-01-16T09:56:23.933651400Z", |
| 82 | + "lastModifiedBy": "[email protected]", |
| 83 | + "lastModifiedByType": "User", |
| 84 | + "lastModifiedAt": "2024-01-16T09:56:30.783361300Z" |
| 85 | + }, |
| 86 | + "properties": { |
| 87 | + "githubProfile": { |
| 88 | + "repositoryName": "localtest", |
| 89 | + "repositoryMainBranch": "main", |
| 90 | + "repositoryOwner": "owner", |
| 91 | + "authStatus": "Unspecified", |
| 92 | + "pullNumber": 8, |
| 93 | + "prStatus": "submitted", |
| 94 | + "branchName": "aks-devhub-ybvmw" |
| 95 | + }, |
| 96 | + "terraformProfile": { |
| 97 | + "storageAccountSubscription": "subscription", |
| 98 | + "storageAccountResourceGroup": "hybrid-iac", |
| 99 | + "storageAccountName": "hybridiac", |
| 100 | + "storageContainerName": "hybridiac" |
| 101 | + }, |
| 102 | + "stages": [ |
| 103 | + { |
| 104 | + "stageName": "dev", |
| 105 | + "dependencies": [], |
| 106 | + "gitEnvironment": "Terraform" |
| 107 | + }, |
| 108 | + { |
| 109 | + "stageName": "qa", |
| 110 | + "dependencies": [ |
| 111 | + "dev" |
| 112 | + ], |
| 113 | + "gitEnvironment": "Terraform" |
| 114 | + }, |
| 115 | + { |
| 116 | + "stageName": "prod", |
| 117 | + "dependencies": [ |
| 118 | + "qa" |
| 119 | + ], |
| 120 | + "gitEnvironment": "Terraform" |
| 121 | + } |
| 122 | + ], |
| 123 | + "templates": [ |
| 124 | + { |
| 125 | + "templateName": "base", |
| 126 | + "sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", |
| 127 | + "instanceStage": "dev", |
| 128 | + "instanceName": "contoso", |
| 129 | + "templateDetails": [ |
| 130 | + { |
| 131 | + "productName": "HCI", |
| 132 | + "count": 1, |
| 133 | + "namingConvention": "$sitid-hci" |
| 134 | + }, |
| 135 | + { |
| 136 | + "productName": "AKSarc", |
| 137 | + "count": 1, |
| 138 | + "namingConvention": "$sitid-aks" |
| 139 | + } |
| 140 | + ] |
| 141 | + } |
| 142 | + ] |
| 143 | + } |
| 144 | + } |
| 145 | + }, |
| 146 | + "201": { |
| 147 | + "body": { |
| 148 | + "id": "/subscriptions/a0a37f63-7183-4e86-9ac7-ce8036a3ed31/resourceGroups/resourceGroup1/providers/Microsoft.DevHub/iacProfiles/profile1", |
| 149 | + "location": "location1", |
| 150 | + "name": "profile1", |
| 151 | + "type": "Micfosoft.DevHub/iacProfiles", |
| 152 | + "tags": { |
| 153 | + "appname": "testapp" |
| 154 | + }, |
| 155 | + "systemData": { |
| 156 | + |
| 157 | + "createdByType": "User", |
| 158 | + "createdAt": "2024-01-16T09:56:23.933651400Z", |
| 159 | + "lastModifiedBy": "[email protected]", |
| 160 | + "lastModifiedByType": "User", |
| 161 | + "lastModifiedAt": "2024-01-16T09:56:30.783361300Z" |
| 162 | + }, |
| 163 | + "properties": { |
| 164 | + "githubProfile": { |
| 165 | + "repositoryName": "localtest", |
| 166 | + "repositoryMainBranch": "main", |
| 167 | + "repositoryOwner": "owner", |
| 168 | + "authStatus": "Unspecified", |
| 169 | + "pullNumber": 8, |
| 170 | + "prStatus": "submitted", |
| 171 | + "branchName": "aks-devhub-ybvmw" |
| 172 | + }, |
| 173 | + "terraformProfile": { |
| 174 | + "storageAccountSubscription": "subscription", |
| 175 | + "storageAccountResourceGroup": "hybrid-iac", |
| 176 | + "storageAccountName": "hybridiac", |
| 177 | + "storageContainerName": "hybridiac" |
| 178 | + }, |
| 179 | + "stages": [ |
| 180 | + { |
| 181 | + "stageName": "dev", |
| 182 | + "dependencies": [], |
| 183 | + "gitEnvironment": "Terraform" |
| 184 | + }, |
| 185 | + { |
| 186 | + "stageName": "qa", |
| 187 | + "dependencies": [ |
| 188 | + "dev" |
| 189 | + ], |
| 190 | + "gitEnvironment": "Terraform" |
| 191 | + }, |
| 192 | + { |
| 193 | + "stageName": "prod", |
| 194 | + "dependencies": [ |
| 195 | + "qa" |
| 196 | + ], |
| 197 | + "gitEnvironment": "Terraform" |
| 198 | + } |
| 199 | + ], |
| 200 | + "templates": [ |
| 201 | + { |
| 202 | + "templateName": "base", |
| 203 | + "sourceResourceId": "/subscriptions/xxxx/resourceGroups/xxxx", |
| 204 | + "instanceStage": "dev", |
| 205 | + "instanceName": "contoso", |
| 206 | + "templateDetails": [ |
| 207 | + { |
| 208 | + "productName": "HCI", |
| 209 | + "count": 1, |
| 210 | + "namingConvention": "$sitid-hci" |
| 211 | + }, |
| 212 | + { |
| 213 | + "productName": "AKSarc", |
| 214 | + "count": 1, |
| 215 | + "namingConvention": "$sitid-aks" |
| 216 | + } |
| 217 | + ] |
| 218 | + } |
| 219 | + ] |
| 220 | + } |
| 221 | + } |
| 222 | + } |
| 223 | + } |
| 224 | +} |
0 commit comments