azure-management

Check if an Azure VM is running

依然范特西╮ 提交于 2019-12-11 05:23:44
问题 I want to query an existing azure virtual machine to check whether it is fully deployed and able to be connected to remotely. Is there any way to do this using the Azure Rest API? I've outlined my current process and why I desire such a call below. I am using the Windows Azure management library to create a VM using ComputeManagementClient and the CreateDeploymentAsync function. This then returns a status of Succeeded, if I then do a get on the deployment it has a status of DeploymentStatus

How to register resource providers using Azure fluent resource management?

﹥>﹥吖頭↗ 提交于 2019-12-08 07:29:06
问题 I'd like to fully automate my resource creation process. Unfortunately brand new subscriptions don't have a few resource providers registered by default. E.g. SQL. That's easily solved as described here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound However this only outlines methods using either manually using the portal or using Powershell. I'm looking for a solution using Microsoft.Azure.Management

How to connect to an azure subscription using a connection token?

痞子三分冷 提交于 2019-12-06 14:05:43
问题 I am trying to connect to my azure subscription , I have a code which allow me to get the Token var authContext = new AuthenticationContext(string.Format ("https://login.windows.net/{0}", tenantId)); var credential = new ClientCredential(applicationId, password); AuthenticationResult token = authContext.AcquireTokenAsync ("https://management.core.windows.net/", credential).Result; if (token == null) { Console.WriteLine("Failed to obtain the token"); return; } from this step i don't know how

Stopping SQL Azure DB when not in use

余生长醉 提交于 2019-11-29 21:11:37
Is there any way to stop a SQL Azure DB so that it doesn't not charge anything towards our account? I don't want to delete it, just while in testing and its not being used than we set it to "stopped" like we can do with websites, cloud services and VM's. Thanks As of Friday, the 13th September, 2019, The answer is No. They won't allow it. So the billing will continue for your Azure Database starting the day you create it. There really is no way to pause / stop billing for your Azure SQL Database. Source: Please add ability to temporarily turn off/on SQL Azure server to pause billing Microsoft

SQL Azure EF Database First Connection String in Azure Management Portal

坚强是说给别人听的谎言 提交于 2019-11-29 13:38:18
I have a site running n Azure, which uses EF Database First model. If I embed the connection string in the web.config and deploy all is rosy. <add name="MyEntities" connectionString="metadata=res://*/App_Code.Model.csdl|res://*/App_Code.Model.ssdl|res://*/App_Code.Model.msl;provider=System.Data.SqlClient;provider connection string='Data Source=my.database.windows.net;Initial Catalog=myTest_DB;User ID=***;Password=***; MultipleActiveResultSets=False'" providerName="System.Data.EntityClient"/> But, I don't want the connection string in the web.config because it contains credentials. So I moved

Stopping SQL Azure DB when not in use

自闭症网瘾萝莉.ら 提交于 2019-11-28 17:17:33
问题 Is there any way to stop a SQL Azure DB so that it doesn't not charge anything towards our account? I don't want to delete it, just while in testing and its not being used than we set it to "stopped" like we can do with websites, cloud services and VM's. Thanks 回答1: As of 16th October, 2019, The answer is No. They won't allow it. So the billing will continue for your Azure Database starting the day you create it. There really is no way to pause / stop billing for your Azure SQL Database.

SQL Azure EF Database First Connection String in Azure Management Portal

谁说胖子不能爱 提交于 2019-11-28 07:30:44
问题 I have a site running n Azure, which uses EF Database First model. If I embed the connection string in the web.config and deploy all is rosy. <add name="MyEntities" connectionString="metadata=res://*/App_Code.Model.csdl|res://*/App_Code.Model.ssdl|res://*/App_Code.Model.msl;provider=System.Data.SqlClient;provider connection string='Data Source=my.database.windows.net;Initial Catalog=myTest_DB;User ID=***;Password=***; MultipleActiveResultSets=False'" providerName="System.Data.EntityClient"/>