Azure Powershell Get Public IP of Staging Cloud Service

I also posted my question here..
http://stackoverflow.com/questions/20690307/azure-powershell-get-public-ip-of-staging-cloud-service
I am using this answer to look up our cloud service's public ip via azure powershell.
Azure
Powershell: Get public virtual IP of service
This only returns the endpoints for the production cloud services. We also need to easily look up our staging cloud service endpoints.
Does anyone know how to look these up with Azure Powershell?
Thanks!

hi TWilly,
Thanks for psoting!
You could use "Slot" in your powershell.
Please see the description about "Slot":
-Slot<String>
Specifies the Windows Azure deployment environment. Choices are "Production" or "Staging".
You could use it to specify the emviroment.Like this sample :
C:\PS>Get-AzureRole –ServiceName "MySvc1" –Slot Staging –RoleName "MyTestVM3"
You could refer to this document:
http://msdn.microsoft.com/en-us/library/jj152869.aspx
Please try it.
Regards,
 Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Azure Cloud Service Scaling - do I have to configure a Load Balancer?

    I'm a little bit confused by how scaling in Azure works. I'm using a Cloud Service and have 2 web roles running a PHP application. I can RDP on both machines and both applications run great on each machine. Also I don't have any problems calling the staging
    URL.
    But I can't figure out if I configure scaling so that 2 machines run always, if I have to configure a load balancer somehow. Or is this already done for me?
    In Azure VM's I had to create a load-balanced set endpoint for an endpoint, but what about cloud services?
    And how is this done in the XML configuration file for my service? What if I don't do it?

    Hi,
    Scaling is affected by core usage. Larger role instances or Virtual Machines use more cores. You can only scale an application within the limit of cores for your subscription. For example, if your subscription has a limit of twenty cores
    and you run an application with two medium sized Virtual Machines (a total of four cores), you can only scale up other cloud service deployments in your subscription by sixteen cores. All Virtual Machines in an availability set that are used in scaling an
    application must be the same size.
    Windows Azure supports load balance for cloud services and standard websites, we just need to set instance count to more than 1 to enable load balance. For virtual machines, it needs to set up manually.
    Please refer this link for Load Balance a Virtual Machine:
    http://www.windowsazure.com/en-us/manage/windows/common-tasks/how-to-load-balance-virtual-machines/
     for more information.
    Auto scale lets you set scaling limits and scheduling goals to ensure you are always getting optimal performance
    Please refer this link for Scaling on Cloud Services:
    http://azure.microsoft.com/en-us/services/cloud-services/
    Also, Please refer this link for Scaling an Application :
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/
    XML configuration : Azure (Load-balanced) Endpoints can only be used for TCP/UDP based services. please check
    https://techlib.barracuda.com/display/BNGv54/How+to+Configure+a+High+Availability+Cluster+in+Azure/printable for the detailed information
    Hope this helps.
    Regards,
    Shirisha Paderu.

  • Windows Azure cloud service stuck / hangs on deploying

    Today I tried to upload a package to the Windows Azure staging cloud service enviroment. The service hangs on deploying.
    I can not delete or update this. I get this error 
    The staging deployment could not be updated for cloud service .......
    Completed Uploading the package to the staging environment...
    Completed Successfully uploaded the package to the staging environment.
    Error The staging environment could not be updated.
    Windows Azure is currently performing an operation with x-ms-requestid 13d49febc06f60b4bc36f3330274f68d on this deployment that requires exclusive access.
    Do anyone knows how to fix this?

    Yes, You may need wait  some minutes,EG. http://social.msdn.microsoft.com/Forums/windowsazure/en-US/eb76c4c1-dcd0-427b-adfd-da6dd373beb8/azure-deployment-stuck-in-updating-state?forum=windowsazuretroubleshooting
    Regards,
    -billgiee

  • WCF Service hosted in Azure Cloud Service errors after published

    I have a project with several WCF services (mix of REST and SOAP).  The project has been running On-Prem for 6 months without an issue.  We are moving this to Azure but have run into an issue that will prevent us from going live.
    The project uses Autofac for it's IOC.  We are gonig to host this in a Cloud Service in Azure.  Everything appears to work correctly when running locally in the Azure Emulator however once we deploy using the Cloud Service project, everything builds
    and deploys correctly, but we receive the following error when trying to access a service.
    Server Error in '/' Application.
    Value cannot be null. Parameter name: key
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the
    code. Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: key
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using
    the exception stack trace below.
    Stack Trace:
    [ArgumentNullException: Value cannot be null.
    Parameter name: key]
       System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +48
       System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +38
       System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +20
       System.ServiceModel.Dispatcher.WebHttpDispatchOperationSelector..ctor(ServiceEndpoint endpoint) +2459
       System.ServiceModel.Description.WebHttpBehavior.GetOperationSelector(ServiceEndpoint endpoint) +125
       System.ServiceModel.Description.WebHttpBehavior.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) +1955
       System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +4245
       System.ServiceModel.ServiceHostBase.InitializeRuntime() +119
       System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +45
       System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +553
       System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +350
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1614
    [ServiceActivationException: The service '/Event/Calendar' cannot be activated due to an exception during compilation.  The exception message is: Value cannot be null.
    Parameter name: key.]
       System.Runtime.AsyncResult.End(IAsyncResult result) +925
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +528
       System.ServiceModel.Activation.AspNetRouteServiceHttpHandler.EndProcessRequest(IAsyncResult result) +107
       System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +151
    It appears that it's having an issue with the service configuration endpoint.  That is registered through Autofac WCF integration using the OOTB RouteTable here:
    RouteTable.Routes.Add(new ServiceRoute("Event/Calendar", new AutofacWebServiceHostFactory(), typeof(CalendarSvc)));
    All of this works fine in IIS and the local Azure emulator, but once deployed to the cloud service is where we get an issue.

    I don't know Autofac. What is it doing? If you use a normal WCF REST service, or ASP.NET Web API, do you see the same issue? If it does work, you may want to post a question on Autofac's forum:
    https://github.com/autofac/Autofac/issues.

  • Problem to publish my azure cloud service

    Hello,
    my goal is to deploy an exe on a web service then create a http client (c++) that uses that service. First I began with this tutorial
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-get-started/ then I use this one to run my exe in the worker role
    http://www.codeproject.com/Articles/331425/Running-an-EXE-in-a-WebRole-on-Windows-Azure.
    I was able to run my app on localhost. The worker role excecute the .exe I deployed and the output of my exe are settled in document folder. The problem is when I publish my app, the exe do not work!!!
    any suggestions please?
    thanks.

    Hi sir,
    Thanks for your post.
    Something need to confirm:
    1.Did you add some library into your project?
    Non .NET EXE : C, C++, etc. If CPP EXE we need to add CPP runtime libraries like
    msvcp100.dll, msvcr100.dll.
    2.Did you try to debug your project on cloud service?
    You could debug your cloud service on your local, please refer to this tutorials(http://msdn.microsoft.com/en-us/library/azure/ff683670.aspx ). I think you could share error information
    via debug your project for the future support.
    Thanks & Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What are Azure limitations for Websockets in Cloud Services (web and worker role)?

    A WebSocket Server should be built on Azure platform with OnPrem connections and have questions regarding limitations for Websockets in Azure Cloud Services - web and worker roles.
    Websockets can be configured for Web Sites and limitations are understood, but Azure Websites is not an option. 
    Nevertheless it is planned to run a web service (without UI - no web site) as a Cloud service which has secure websocket (WSS) connections to OnPrem machines. Websocket protocol is enabled for IIS8 on Cloud services web and worker roles. Azure Service Bus Relay
    is not an option.
    Questions:
    1) Are Websockets supported for Azure Cloud services web and worker roles? we assume yes
    2) What are potential limitations from Azure side to support concurrent Websocket connections? We are aware that CPU, memory etc are limitations, but are there additional limitations from MS Azure side? 
     

    Hi,
    As I know, azure cloud service web and worker role support Websockets, users can connect to the role via the special endpoint, if we use Azure cloud service, I think we can monitor the metrics such as CPU, memory, etc... and scale our cloud service via these
    metrics to keep the websockets working, refer to
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/ for more information about how to scale a cloud service.
    Regards

  • Is there a list of best practices for Azure Cloud Services?

    Hi all;
    I was talking with a Sql Server expert today and learned that Azure Sql Server can take up to a minute to respond to a query that normally takes a fraction of a second. This is one of those things where it's really valuable to learn it when architecting as
    opposed to when we go live.
    Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    We will be placing the cloud services in multiple datacenters and using traffic manager to point people to the right one. The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client.
    Mostly it will pass all requests & responses across from one to the other.
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    hi dave,
    >>Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    For this issue, I have collected some blogs and document about best practices for azure cloud service, you can view them, but I am not sure they are your need.
    http://msdn.microsoft.com/en-us/library/azure/xx130451.aspx
    http://gauravmantri.com/2013/01/11/some-best-practices-for-building-windows-azure-cloud-applications/
    http://www.hanselman.com/blog/CloudPowerHowToScaleAzureWebsitesGloballyWithTrafficManager.aspx
    http://msdn.microsoft.com/en-us/library/azure/jj717232.aspxhttp://azure.microsoft.com/en-us/documentation/articles/best-practices-performance/
    >>The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client. Mostly it will pass all requests & responses across from one to the other.
    For your scenarioes, If you'd like to communicate with each instances, I recommend you refer to this document (
    http://msdn.microsoft.com/en-us/library/azure/hh180158.aspx ). And generally, if we want connect the client to server on Azure, the service bus is a good choice (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to login from IE to Azure hosted cloud service

    Hi 
    We have hosted cloud service on azure and not able to login with the existing users in it.
    While if we add SSL to the same service we can able to login to the site. 
    Will you please let us know what is the issue cause? Is azure restrict to login? 
    Do we need to add some code changes for the IE login?
    We have faces same problem on our local server but have resolved by installing patch from microsoft link "http://www.microsoft.com/en-in/download/details.aspx?id=39257"
    So please help us.
    Thanks,
    Rohit Jagtap.

    Hi,
    As you said, you have face the same problem on local server, so I think this issue is more related to your application, as far as I know, it is nothing to do with azure.
    To resolve this issue, I think the detail error message is necessary, I suggest you use diagnostics to log errors, refer to
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/ for more details, or use remote debug to find issue, see more at:
    http://blogs.msdn.com/b/cie/archive/2014/01/24/windows-azure-remote-debugging.aspx
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Azure VM Web Servers, Cloud Service and SSL?

    I am deploying two web servers in a cloud service for load balancing. I have tested and I have that working with no problems. My question is how do I setup for SSL? Do I setup a certificate on the cloud service? Do I setup on each server? Any help would
    be greatly appreciated!!

    Hi,
    You could use the following link to configure SSL for your Cloud Service:
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/
    Regards,
    Malar.

  • Issues deploying a cloud service with two endpoints (HTTP and HTTPS)

    I ran into an issue this week in the azure portal when I tried to deploy a cloud service with two endpoints.  (I am using the azure sdk 2.2).  I deployed the cloud service to production with the following endpoints in the ServiceDefinition.csdef:
    <WebRole name="NameChanged.Web" vmsize="Small">
    <Sites>
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn" endpointName="HttpsIn" />
    <Binding name="HttpIn" endpointName="HttpIn" />
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpIn" protocol="http" port="80" />
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="NameChangedCertificate" />
    </Endpoints>
    <Imports>
    <Import moduleName="Diagnostics" />
    </Imports>
    <Certificates>
    <Certificate name="NameChangedCertificate" storeLocation="LocalMachine" storeName="My" />
    </Certificates>
    </WebRole>
    I followed the directions here (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-configure-ssl-certificate/)
    in Step 3 for deploying the cloud service to the azure portal.  And HTTP worked just fine, but the HTTPS endpoint didn't work, we would get a 502 error whenever we tried to access the service via HTTPS.
    We spent a lot of time to debug and see why HTTPS wasn't working, but everything we tried resulted in the same result:  502 error code when accessing the site
    via HTTPS.
    The only way that we were able to get HTTPS working for the cloud service in azure, was to completely delete our instance in the azure portal, and then do a two step deployment:
    Step 1 - Remove the HTTP endpoint from our ServiceDefinition.csdef, like so:
    <Site name="Web">
    <Bindings>
    <Binding name="HttpsIn"
    </Bindings>
    </Site>
    </Sites>
    <Endpoints>
    <InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="staging" />
    </Endpoints>
    </WebRole>
    We then deployed the service to the azure portal.  AND THE SERVICE WORKED WITH HTTPS!!!
    Step 2 - We added the HTTP endpoint back into the ServiceDefinition.csdef, redeployed and both HTTP and HTTPS worked on the site.
    I wanted to post this to help others that may have the same issue, and to see if anyone else has experienced this same thing?  Is this an issue in the azure 2.2 SDK?  This seems like a work around for getting both HTTP and HTTPS endpoints for a
    cloud service, and it seems "wrong".  Does anyone have a better way to do this?
    Tim

    Hi Tim;
    This seems to be an very useful workaround thanks for sharing it. Hopefully this will come in handy for many of us.
    Warm Regards
    Prasant

  • Virtual network, virtual machine and cloud service

    Hi everyone
    I am new to Microsoft Azure and very confused about Microsoft VM and Virtual network relationship.
    I have a cloud service project created which has two worker roles in it and its deployed to Azure portal successfully, the problem is they need to connect to SQL database (which is on our prod machine outside of Azure) and in the config file of both these
    worker roles I have the cluser IP address added ( I believe its an internal Ip address),
    Now we have a virtual machine and a virtual network created on azure too (Not by me, so I have no idea how that is created)
    Some how I need to connect my cloud service to either the virtual machine or virtual network to get the sql connection going. What do I need to do to make that happen?
    How does the cloud service connect to virtual machine?
    I am so confused .. Please help with this.
    Thanks
    -Sarah

    Hi Sarah,
    Once an Azure VM is created, it belongs to a cloud service.
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-connect-virtual-machine/
    Do you mean that you want to create a VM in a virtual network and a cloud service?
    If yes, please follow the steps below:
    1. Create a Virtual network.
    2. Create a VM and select "create a new cloud service", and choose the virtual network you have created.
    3. After the VM is running, you can create other VMs into that exsting VM, and they will share the same public IP address and in the same virtual network.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Is there any command to find the running cloud services in the current PC in windows?

    Is there way to find the list of running cloud service providers in the current PC through C++ programming ?
    Or is there any other tool which gives the list of service providers running in the PC?
    I know this question is not related to Azure but Azure comes under this part..
    Please let me know the answer if any one is aware of it....

    Hello DeekshaBharathi,
    There are only 3 ways of communicating with the Azure cloud services:
    a. Management Portal
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-manage/
    b. REST APIs
    http://msdn.microsoft.com/en-us/library/azure/ee460799.aspx
    c. Powershell
    http://msdn.microsoft.com/en-us/library/azure/jj156055.aspx
    Since that you want to use commands to manage Cloud Services. You can do it using PowerShell. You can refer to the article above for more information on this.
    Thanks,
    Syed Irfan Hussain.

  • Cloud service monitor data lagging back 20 minutes and only 5 minutes granularity

    Hello,
    is it normal that the charts and data in the monitor panel is 15 to 20 minutes old, and granularity is only 5 minutes? I'm trying to use the monitor page to debug and configure autoscaling, but this lag is making this really difficult.

    hi sir,
    The Chart data source is form Azure platform. We only can add/ remove some metrics into chart. If you want to monitor your service metrics, I suggest you can enable Azure diagnostic feature and get the metrics data from table storage . In other words, you
    can custom the performance count using code. I suggest you can refer to this official document:
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Diagnostics Data for Virtual Machine and Cloud service

    Hi,
    We have an azure cloud account, contains Virtual Machine(Windows) with worker role and one Web Role. In this setup, we need to collect diagnostics data of virtual machine and cloud service. How to enable the diagnostics data in our setup and How to retrive
    the data
    I have read the below link says diagnostics data stores in WAD Table. How to read the data from table? Is there any query available.
    Or can we get this data from REST API. We need the perfomance data of every 5 min . Please help me to solve this.
    http://msdn.microsoft.com/en-us/library/azure/hh411534.aspx
    Thanks & Regards
    Rathidevi

    Hi,
    You can configure Azure diagnostics by using Visual Studio. Azure diagnostics captures system data and logging data on the virtual machines and virtual machine instances that run your cloud service and brings transfers that data into your storage account.
    References :-
    http://msdn.microsoft.com/en-us/library/azure/dn186185.aspx
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-diagnostics/
    Regards,
    Mekh.

  • Hiding cloud services for VPN access only

    I have a single Azure cloud service that is accessible externally. I would like to restrict access to it only from inside of my organization. I have setup a virtual network between azure and my organization and configured my cloud service to use that virtual
    network. The only problem now is how do I restrict an external access to my services. This seems that it should be easy to do but I cannot straightforward solution. Am I missing something here?
    Thank You!

    Hi,
    Based on your description, it seems that you want to use virtual network to restrict an external access to your service, please try to create a new thread in Windows Azure Network forum, I think you will get more help at that forum.
    Windows Azure Network forum link is:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesVirtualNetwork
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Mac Pro Freezes on Startup with Second Monitor Connected

    I have a base model Mac Pro with OS X Mavericks that is fully updated. When the computer boots, if my second monitor is connected, it begins to load the login screen and freezes before it has fully loaded. The second monitor is mostly black with a fe

  • You used to have "organize bookmarks". It worked great. Why a new way of reroganizing bookmarks E!

    I suspect I will be able to use the sidebar to organize my bookmarks, just like organize bookmarks used to work, now that I have found this out. But, it took me many tries over a month, to get the answer, and about 20 minutes just now. So, this is ju

  • Why wont my iPhone5 conncet to Wi-Fi

    Hey guys, ive had this problem with my iphone 5 where i cannot join any network whatsoever. I had this problem on my old iphone 4, which i have setup my iphone5 from the backup of the iphone 4. I have updated to iOS6.1, reset router ect. and nothing

  • SCOM 2012 Report error rsprocessingaborted rserrorexecutingcommand

    Hello All, I am able to run some reports from SCCM 2012 console but few of them do not work. Error in SCOM console when I try to run the report An error has occurred during report processing. (rsProcessingAborted) Query execution failed for dataset '

  • [SOLVED] No Sound, ATI R6xx, Netbook

    Greetings Arch forum-goers! I'm without sound on my Acer AO722 netbook, and I need some help. The only speaker working is the system beep "case speaker". On with the details: $ lspci 00:01.1 Audio device: ATI Technologies Inc Device 1314 00:14.2 Audi