Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy of Autoscale settings in ARM template has begun failing today with "BadRequest" #65

Open
dbsanfte opened this issue Jun 28, 2019 · 4 comments

Comments

@dbsanfte
Copy link

Deploys began failing about 4 hours ago. This deploy has been working fine for about two years.

New-AzureRmResourceGroupDeployment : 12:12:56 PM - Resource microsoft.insights/autoscalesettings 'Traefik Load Balancer 
 scale settings' failed with message '{
 "error": {
 "code": "BadRequest",
 "message": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" 
 \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html 
 xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; 
 charset=iso-8859-1\"/>\r\n<title>404 - File or directory not found.</title>\r\n<style 
 type=\"text/css\">\r\n<!--\r\nbody{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, 
 sans-serif;background:#EEEEEE;}\r\nfieldset{padding:0 15px 10px 15px;} 
 \r\nh1{font-size:2.4em;margin:0;color:#FFF;}\r\nh2{font-size:1.7em;margin:0;color:#CC0000;} 
 \r\nh3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} \r\n#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 
 2%;font-family:\"trebuchet MS\", Verdana, sans-serif;color:#FFF;\r\nbackground-color:#555555;}\r\n#content{margin:0 0 0 
 2%;position:relative;}\r\n.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}\r
 \n-->\r\n</style>\r\n</head>\r\n<body>\r\n<div id=\"header\"><h1>Server Error</h1></div>\r\n<div id=\"content\">\r\n 
 <div class=\"content-container\"><fieldset>\r\n <h2>404 - File or directory not found.</h2>\r\n <h3>The resource you 
 are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>\r\n 
 </fieldset></div>\r\n</div>\r\n</body>\r\n</html>\r\n"
 }
 }'
 At C:\Worker\Workspace\Deploy-ProdNorthBackend\devops\Rancher-env\rancher-backend-hosts\rancher-hosts\Deploy-AzureResour
 ceGroup.ps1:308 char:5
 + New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $Templat ...
 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 + CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
 + FullyQualifiedErrorId : 
 Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

And if I check these VMSS scale settings in the Azure Portal I get Error: and a blank page.

image

@dbsanfte
Copy link
Author

Actually, hitting Refresh a few times on the page got it to load finally. Perhaps this is an Azure operational issue?

@gbowerman
Copy link
Contributor

Can you share how your Publisher, Offer, Sku, Version settings are defined in the ARM template? Is the specific sku and version of the image you're scaling to still available?
Is the version set to "latest" or a specific version?

@dbsanfte
Copy link
Author

dbsanfte commented Jul 3, 2019

Publisher: Canonical
Offer: UbuntuServer
Sku: 16.04-LTS
Version: latest

However this spontaneously resolved after a few hours. We were deploying to NorthEurope.

@gbowerman
Copy link
Contributor

Thanks for confirming. Yes looks like an operational glitch as you surmized..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants