This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CreateHostedService xmlns="http://schemas.microsoft.com/windowsazure"> | |
<ServiceName>SERVICE_NAME</ServiceName> | |
<Label>U3VsYXNnZWlyIFRlc3QgU2VydmljZQ==</Label> | |
<AffinityGroup>AFFINITY_GROUP_NAME</AffinityGroup> | |
</CreateHostedService> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<Name>DEPLOYMENT_NAME</Name> | |
<DeploymentSlot>Production</DeploymentSlot> | |
<Label>Deployment 0.1</Label> | |
<RoleList> | |
<Role> | |
<RoleName>COMPUTER_NAME</RoleName> | |
<RoleType>PersistentVMRole</RoleType> | |
<ConfigurationSets> | |
<ConfigurationSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<RoleName>COMPUTER_NAME</RoleName> | |
<RoleType>PersistentVMRole</RoleType> | |
<ConfigurationSets> | |
<ConfigurationSet> | |
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType> | |
<ComputerName>COMPUTER_NAME</ComputerName> | |
<AdminPassword>PASSWORD</AdminPassword> | |
<AdminUsername>USER_NAME</AdminUsername> | |
<EnableAutomaticUpdates>true</EnableAutomaticUpdates> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /MY_SUBSCRIPTION/services/hostedservices HTTP/1.1 | |
Host: management.core.windows.net | |
x-ms-version: 2013-06-01 | |
Content-Type: application/xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /MY_SUBSCRIPTION/services/hostedservices/SERVICE_NAME/deployments HTTP/1.1 | |
x-ms-version: 2013-06-01 | |
Host: management.core.windows.net | |
Content-Type: application/xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /MY_SUBSCRIPTION/services/hostedservices/SERVICE_NAME/deployments/DEPLOYMENT_NAME/roles HTTP/1.1 | |
x-ms-version: 2013-06-01 | |
Host: management.core.windows.net | |
Content-Type: application/xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
[EventSource(Name = "MyDomain-MyEventSource")] | |
public class MyEventSource : EventSource | |
{ | |
public class Keywords | |
{ | |
public const EventKeywords Database = (EventKeywords)1; | |
public const EventKeywords ExternalApi = (EventKeywords)2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void InsertEntity(String tableName, String artist, String title) | |
{ | |
String requestMethod = "POST"; | |
String urlPath = tableName; | |
String storageServiceVersion = "2012-02-12"; | |
String dateInRfc1123Format = DateTime.UtcNow.ToString("R", CultureInfo.InvariantCulture); | |
String contentMD5 = String.Empty; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void GetEntity(String tableName, String partitionKey, String rowKey) | |
{ | |
String requestMethod = "GET"; | |
String urlPath = String.Format("{0}(PartitionKey='{1}',RowKey='{2}')", tableName, partitionKey, rowKey); | |
String storageServiceVersion = "2012-02-12"; | |
String dateInRfc1123Format = DateTime.UtcNow.ToString("R", CultureInfo.InvariantCulture); | |
String canonicalizedResource = String.Format("/{0}/{1}", AzureStorageConstants.Account, urlPath); |
OlderNewer