ã¨ã©ã¼èª¿æ»ã®ããã« Kudu å¨ãã調ã¹ã¦ããããWiki ã« Web Apps ã®ã¿ã¤ã ã¾ã¼ã³è¨å®ã追å ããã¦ããã®ã«æ°ãä»ããã®ã§ãå®éã«è¨å®ãã¦è©¦ãã¦ã¿ã¾ããã
Kudu ã® Wiki ã¯ã¡ããã¡ããæ´æ°ããã¦ããã®ã§ãã¡ããã¨ç¢ºèªãã¦ãããªãã¨ãããªãã§ããã
Configurable settings · projectkudu/kudu Wiki · GitHub
åºæ¬çã« Azure ã®ãµã¼ãã¹ã¯ UTC ãããã©ã«ãã®è¨å®ã«ãªã£ã¦ãã¦ãCloud Services ã§ã¯ Startup Task ãªã©ã使ã£ãã¿ã¤ã ã¾ã¼ã³ã®å¤æ´ãéæ¨å¥¨ã¨ãªã£ã¦ãã¾ããã
But I would strongly advice against it. The Fabric Controller maintains operating system time synchronization for the system when roles are first booted. If you utilize administrative access startup scripts to change the localization settings (including local server time), but it is not recommended you do so. Doing so will introduce instability and the fabric controller may determine your role is out of sync. You will likely end up cycling your roles as fabric attempts to bring them to goal state in such a case. A better strategy is to write your applications to be aware that they actually run with UTC and default US CultureInfo settings.
http://blogs.msdn.com/b/cie/archive/2013/07/29/manage-timezone-for-applications-on-windows-azure.aspx
Azure çã®æ±ããããç· No.1 ãã¨ã¶ã¡ããããããæ¢ãã¨ããæ¹ãããã¨è¨ã£ã¦ã¾ãã
ããã¨ããã»ããç¡é£
— ãããã.ãã³ (@kosmosebi) 2015å¹´9æ8æ¥
ããããWeb Apps ã ã㯠WEBSITE_TIME_ZONE ã¨ãããã¼ã追å ãããã¨ã§ãä»»æã®ã¿ã¤ã ã¾ã¼ã³ã§åä½ããããã¨ãåºæ¥ãããã«ãªã£ãã¿ããã§ãã
WEBSITE_TIME_ZONE ã«è¨å®ããå¤ã¯ãã¬ã¸ã¹ããªã TimeZoneInfo ããåå¾åºæ¥ãæååã§ãã
æ¥æ¬æé㯠JST ã§ã¯ãªã㦠Tokyo Standard Time ãªã®ã§ãå°ã注æãå¿ è¦ãªæãã§ãã
確èªã®ããã« DateTime.Now 㨠UtcNow ãåºåããã ãã®ãã¼ã¸ãç¨æãã¾ããã
ããã©ã«ã㯠UTC ãªã®ã§ã両æ¹ã¨ãåãæéã¨ãªã£ã¦ãã¾ããããã Azure ã§ã¯æ®éã§ãã
ããã§ãã¼ã¿ã«ãã WEBSITE_TIME_ZONE = Tokyo Standard Time ã¨ããè¨å®ã追å ãã¦ã¿ã¾ãã
è¨å®ãä¿åå¾ããã¼ã¸ãèªã¿è¾¼ã¿ãªãã㨠DateTime.Now ãæ¥æ¬æéã«å¤åãã¦ãã¾ããã
App Service Plan åä½ã§ã¿ã¤ã ã¾ã¼ã³ãè¨å®ãããã®ãã¨æã£ãã®ã§ãåä¸ãã¹ãã£ã³ã°ãã©ã³ä¸ã§åä½ãã¦ããã¢ããªã±ã¼ã·ã§ã³ã§ã試ãã¦ã¿ã¾ããã
ãã·ã³åã表示ããã¦ããã®ã§ãåä¸ãã·ã³ã§åä½ãã¦ãããã¨ãåããã¨æãã¾ããäºæ³ã«åãã¦ãµã¤ãåä½ã§ã¿ã¤ã ã¾ã¼ã³ãè¨å®å¯è½ã«ãªã£ã¦ããããã§ãã
Kudu ã®ã½ã¼ã¹ã³ã¼ãã«åºã¦ããªãã®ã§ãã«ã¹ã¿ã IIS ã¢ã¸ã¥ã¼ã«ã§å¤æ´ããããã«ãªã£ã¦ããã®ã ã¨æãã¾ãããç¹å®ã®ããã»ã¹ã ãã¿ã¤ã ã¾ã¼ã³ãå¤æ´å¯è½ãªã®ããæ£ç´ããããã£ã¦ãã¾ãããè¬æè¡ã§ãã
å¤ãã¢ããªã®ãã¤ã°ã¬ã¼ã·ã§ã³ç¨éãããã§ãä¹±ç¨ã¯ããªãæ¹ãããæ°ããã¾ããå
¬å¼ããã¥ã¡ã³ãã® FAQ ã«ãè¨è¼ãããããã«ãªã£ã¦ããã®ã§ãæ®éã«ä½¿ã£ã¦ãã£ã¦ãè¯ãã¨æãã¾ãï¼å®é使ã£ã¦ã¾ã
ä½ã ããã ã§ã¿ã¤ã ã¾ã¼ã³ãè¨å®ããæ¹ã楽ãªãã¨ãå¤ãã§ãã確èªããæãã§ã¯ Consumption ã§ã® Azure Functions ã§ãåé¡ãªãåä½ãã¦ããã®ã§ãç¹ã«ä¸å®ããªãã¨æã£ã¦ãã¾ãã