Validation Error
mimasisji opened this issue · 2 comments
When clicking button deploy to Azure, once you fill in the template to run it, displays
Error
{"code":"InvalidTemplateDeployment","details":[{"code":"InvalidParameter","target":"imageReference","message":"The following list of images referenced from the deployment template are not found: Publisher: MicrosoftWindowsDesktop, Offer: Windows-10, Sku: rs5-pro, Version: latest. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage for instructions on finding available images."}],"message":"The template deployment 'Microsoft.Template-20211019090730' is not valid according to the validation procedure. The tracking id is '1662c5d4-0078-44ca-bab0-3693a7e58d7e'. See inner errors for details."}
Reproduce
Steps to reproduce the behavior:
- Go to 'https://github.com/Azure/Azure-Network-Security/tree/master/Azure%20WAF/Lab%20Template%20-%20WAF%20Attack%20Testing%20Lab'
- Click on 'Deploy to Azure' blue button
- Fill in the form
- Click create
- See error
Expected behavior
ARM deployment to test WAF Security Components
Screenshots
{
"code": "InvalidTemplateDeployment",
"details": [
{
"code": "InvalidParameter",
"target": "imageReference",
"message": "The following list of images referenced from the deployment template are not found: Publisher: MicrosoftWindowsDesktop, Offer: Windows-10, Sku: rs5-pro, Version: latest. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage for instructions on finding available images."
}
],
"message": "The template deployment 'Microsoft.Template-20211019090730' is not valid according to the validation procedure. The tracking id is '1662c5d4-0078-44ca-bab0-3693a7e58d7e'. See inner errors for details."
}
Environment- if applicable
Desktop (please complete the following information if applicable):
- OS: [Win 10]
- Browser [Microsoft Edge Version 94.0.992.50 (Official build) (64-bit) ]
Logs- if applicable
Validate Deployment
Tue Oct 19 2021 09:07:34 GMT-0500 (Central Daylight Time)
Summary
Operation name
Validate Deployment
Time stamp
Tue Oct 19 2021 09:07:34 GMT-0500 (Central Daylight Time)
Event initiated by
AADGLOBALADMIN@ohmigracions.com
Error code
InvalidTemplateDeployment
Message
The template deployment 'Microsoft.Template-20211019090730' is not valid according to the validation procedure. The tracking id is '9458c7df-b14e-496b-9849-762156cfc082'. See inner errors for details.
JSON
{
"authorization": {
"action": "Microsoft.Resources/deployments/validate/action",
"scope": "/subscriptions/f9f75a63-4045-41ee-8ad1-589a763fe201/resourceGroups/WAFV2-DEMO/providers/Microsoft.Resources/deployments/Microsoft.Template-20211019090730"
},
"caller": "AADGLOBALADMIN@ohmigracions.com",
"channels": "Operation",
"claims": {
"aud": "https://management.core.windows.net/",
"iss": "https://sts.windows.net/77cba36f-f434-4ff6-ad61-99214f0d6305/",
"iat": "1634651911",
"nbf": "1634651911",
"exp": "1634655811",
"http://schemas.microsoft.com/claims/authnclassreference": "1",
"aio": "ATQAy/8TAAAAFi9O98C/IEmMhRPJ2rrXG0KO6h2KVBsuhVsDYpv7Gzmnqs3l2JXwlWwAjayuvjqy",
"http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd",
"appid": "c44b4083-3bb0-49c1-b47d-974e53cbdf3c",
"appidacr": "2",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Admin",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "Global",
"groups": "1ff665cb-ac55-4155-b638-c580ed23e75c",
"ipaddr": "201.191.218.18",
"name": "GlobalAdmin",
"http://schemas.microsoft.com/identity/claims/objectidentifier": "a838ef36-2bc1-498a-a538-061214816b45",
"puid": "10032000EE078721",
"pwd_exp": "20477",
"pwd_url": "https://portal.microsoftonline.com/ChangePassword.aspx",
"rh": "0.AXYAb6PLdzT09k-tYZkhTw1jBYNAS8SwO8FJtH2XTlPL3zx2ADI.",
"http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "j4PYxXSHn7uCcWu3OqJnwtQO4k3HDrpsB7DOPtQN3fA",
"http://schemas.microsoft.com/identity/claims/tenantid": "77cba36f-f434-4ff6-ad61-99214f0d6305",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "AADGLOBALADMIN@ohmigracions.com",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "AADGLOBALADMIN@ohmigracions.com",
"uti": "cnnL8Mc5pU2XnzTYtMIUAQ",
"ver": "1.0",
"wids": "62e90394-69f5-4237-9190-012177145e10",
"xms_tcdt": "1602710383"
},
"correlationId": "9458c7df-b14e-496b-9849-762156cfc082",
"description": "",
"eventDataId": "cfe57627-c650-4b15-b645-fdcfde15e3ab",
"eventName": {
"value": "EndRequest",
"localizedValue": "End request"
},
"category": {
"value": "Administrative",
"localizedValue": "Administrative"
},
"eventTimestamp": "2021-10-19T14:07:34.8482674Z",
"id": "/subscriptions/f9f75a63-4045-41ee-8ad1-589a763fe201/resourceGroups/WAFV2-DEMO/providers/Microsoft.Resources/deployments/Microsoft.Template-20211019090730/events/cfe57627-c650-4b15-b645-fdcfde15e3ab/ticks/637702492548482674",
"level": "Error",
"operationId": "9458c7df-b14e-496b-9849-762156cfc082",
"operationName": {
"value": "Microsoft.Resources/deployments/validate/action",
"localizedValue": "Validate Deployment"
},
"resourceGroupName": "WAFV2-DEMO",
"resourceProviderName": {
"value": "Microsoft.Resources",
"localizedValue": "Microsoft Resources"
},
"resourceType": {
"value": "Microsoft.Resources/deployments",
"localizedValue": "Microsoft.Resources/deployments"
},
"resourceId": "/subscriptions/f9f75a63-4045-41ee-8ad1-589a763fe201/resourceGroups/WAFV2-DEMO/providers/Microsoft.Resources/deployments/Microsoft.Template-20211019090730",
"status": {
"value": "Failed",
"localizedValue": "Failed"
},
"subStatus": {
"value": "BadRequest",
"localizedValue": "Bad Request (HTTP Status Code: 400)"
},
"submissionTimestamp": "2021-10-19T14:09:02.1509723Z",
"subscriptionId": "f9f75a63-4045-41ee-8ad1-589a763fe201",
"tenantId": "77cba36f-f434-4ff6-ad61-99214f0d6305",
"properties": {
"statusCode": "BadRequest",
"serviceRequestId": null,
"statusMessage": "{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'Microsoft.Template-20211019090730' is not valid according to the validation procedure. The tracking id is '9458c7df-b14e-496b-9849-762156cfc082'. See inner errors for details.","details":[{"code":"InvalidParameter","target":"imageReference","message":"The following list of images referenced from the deployment template are not found: Publisher: MicrosoftWindowsDesktop, Offer: Windows-10, Sku: rs5-pro, Version: latest. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage for instructions on finding available images."}]}}",
"eventCategory": "Administrative",
"entity": "/subscriptions/f9f75a63-4045-41ee-8ad1-589a763fe201/resourceGroups/WAFV2-DEMO/providers/Microsoft.Resources/deployments/Microsoft.Template-20211019090730",
"message": "Microsoft.Resources/deployments/validate/action",
"hierarchy": "f9f75a63-4045-41ee-8ad1-589a763fe201"
},
Additional context
Then, it does not deploy
@mimasisji Hi, What region were you trying to deploy to? I just tried to reproduce it and I was able to deploy successfully (East US here)
@mimasisji I confirmed the Sku: rs5-pro was available in earlier version of the lab. It has since been updated to 20h2-pro. If you were trying to deploy from a Forked repo, please update and sync your branch with the master.
Closing issue, feel free to re-open if issue re-occurs