如果我创建一个azure网站,我们假设:myname.azurewebsites.net,我可以使用http(http://myname.azurewebsites.net)或https(https://myname.azurewebsites.net)来访问它.
这是什么意思?我是否理解正确,基本上我不需要SSL证书,因为它默认有一个证书?
我需要构建一个需要使用SSL的Web服务.因此,我是否需要购买ssl证书和自定义域名(不重要)?我不需要自定义域名,默认域名对我来说很好.那么我可以使用Azure提供的SSL服务:( https://myname.azurewebsites.net是通配符证书)吗?
我的目标是能够传入站点名称和位置并创建新站点,检索相应的凭据/ URL并使用WebDeploy部署我的站点.
我从这里使用Azure Powershell Tools:http://www.windowsazure.com/en-us/downloads/
我可以创建一个新的网站
New-AzureWebsite -Name site-name -Location "West US"
Run Code Online (Sandbox Code Playgroud)
为了响应这一点,我获得了有关创建的网站的详细信息,包括发布用户名和密码(PublishingUsername和PublishingPassword),我需要的一条信息是我需要的是发布URL(我可以从Azure管理门户网站检索)在XML格式的文件中).在XML文件中,它是publishProfile节点上的publishUrl属性.
我的问题是,有没有办法通过PowerShell获取发布URL,或通过REST API,但我更喜欢PowerShell.
这是一个类似的问题,听起来似乎尚不可能,至少在撰写本文时:如何通过Management API获取Azure网站的FTP URL?
刚刚阅读了这个可能严重的基于Linux的错误.看起来Azure应该是安全的,因为基于Windows,并且很可能很快修补,因为这就是我们使用平台即服务(PAAS)的原因.
对于任何想知道这一切是什么的人,Try Hunt都有一篇很好的文章:Troy Hunt的文章
任何人对这个或指针的任何评论?
谢谢.
azure azure-web-sites shellshock-bash-bug azure-sql-database
我有一个运行在azure网站上的现有mvc Web应用程序。
我已经设置了运行中的应用程序见解。
这是推荐的做法吗?这会对我的网站运行产生影响吗?可以继续运行吗,因为它提供了非常有用的数据...
非常感谢
我在Azure中有一个"Web应用程序",我使用Visual Studio部署/发布.Net Web应用程序.(构建 - >发布),它的工作原理.
我希望能够使用Powershell脚本部署/发布我的应用程序.我得到以下脚本来为构建部分工作:
CMD> "c:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" WebApplication1.sln
Run Code Online (Sandbox Code Playgroud)
为了使它也部署,我需要添加一些参数:
CMD> "c:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" WebApplication1.sln /p:DeployOnBuild=true /p:PublishProfile="C:\Users\jgodse\Documents\Visual Studio 2015\Projects\WebApplication1\WebApplication1\Properties\PublishProfiles\jg-7-web-app-1 - Web Deploy.pubxml" /p:Configuration=Release
Run Code Online (Sandbox Code Playgroud)
我收到一个错误:
Build FAILED.
"c:\Users\jgodse\Documents\Visual Studio 2015\Projects\WebApplication1\WebApplication1.sln" (default target) (1) ->
"c:\Users\jgodse\Documents\Visual Studio 2015\Projects\WebApplication1\WebApplication1\WebApplication1.csproj" (default target) (2) ->
(MSDeployPublish target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4295,5): msdeploy error ERROR_USER_UNAUTHORIZED: Web deployment task failed. (Connected to the remote computer ("jg-7-web-app-1.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name …Run Code Online (Sandbox Code Playgroud) 是否可以使用类似于ASP.NET Core的Node / Express将Azure中的应用程序设置视为对象?
例如,如果我的应用设置为:
container:value1 = "Hello",
container:value2 = "World"
Run Code Online (Sandbox Code Playgroud)
我想要一个“容器”的对象,它给了我:
{
value1: "Hello",
value2: "World"
}
Run Code Online (Sandbox Code Playgroud)
我尝试过container:value1并且container__value1喜欢ASP.NET Core,但是没有运气。
在我们的Azure订阅中,我们有3个应用程序:dev.myapp.com,test.myapp.com,prod.myapp.com(www.myapp.com,myapp.com).
以前我刚刚购买了通配符证书,然后将其转换为PFX格式并上传.
但我现在看到我可以直接从Azure获得SSL证书,并省去了一些麻烦.但我想知道我是否购买了S1证书,如果我可以将它与我的子域一起使用,或者我是否需要购买通配符(与从其他来源获取它相比相当昂贵).
我想我需要通配符,只想确认一下.
是否可以在Azure App Service上使用服务器垃圾收集?
我gcServer在web.config(D:\ home\site\wwwroot\web.config)中设置如下:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<gcServer enabled="true" />
</runtime>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\MyApplication.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" />
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
但GCSettings.IsServerGC仍然返回错误.
.net c# garbage-collection azure-web-sites azure-app-service-plans
我正在研究使用以下堆栈的SignalR Core Web应用程序:
客户端使用SignalR NPM包(@ aspnet/signalr).
该应用程序配置如下:
public void ConfigureServices(IServiceCollection services)
{
services.AddCors(options =>
{
options.AddPolicy(
"CorsPolicy",
builder => builder
.AllowCredentials()
.AllowAnyOrigin()
.AllowAnyMethod()
.AllowAnyHeader());
});
services.AddSignalR();
}
public void Configure(IApplicationBuilder app)
{
app.UseCors("CorsPolicy");
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseWebSockets();
app.UseSignalR(routes =>
{
routes.MapHub<ClientHub>("/hubs/notifications");
});
}
Run Code Online (Sandbox Code Playgroud)
在本地运行时http://localhost,客户端使用WS协议进行连接.但是,当部署在Azure App Service中时,它会回退到SSE.
浏览器日志显示:
WebSocket connection to 'wss://xxxxxx.azurewebsites.net/hubs/notifications?id=ZRniWKpMLMPIyLhS5RSyAg' failed: Error during WebSocket handshake: Unexpected response code: 503
Information: SSE connected to https://xxxxxx.azurewebsites.net/hubs/notifications?id=ig47oOdQzbasdgrlr0cHaw
Run Code Online (Sandbox Code Playgroud)
该negotiate方法似乎返回对Websockets的支持:
{"connectionId":"ZRniWKpMLMPIyLhS5RSyAg",
"availableTransports":[
{"transport":"WebSockets","transferFormats":["Text","Binary"]}, …Run Code Online (Sandbox Code Playgroud) c# websocket azure-web-sites asp.net-core asp.net-core-signalr
我的App Service在Azure上启动时出现此错误:
启动应用程序时发生错误。
我未能在事件日志中找到任何相关的错误。
我该如何调试?
azure-web-sites ×10
azure ×6
asp.net-core ×2
c# ×2
.net ×1
credentials ×1
express ×1
msbuild ×1
node.js ×1
powershell ×1
ssl ×1
websocket ×1