프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DiagnosticMonitorConfigurationElemStr | string | ||
DiagnosticsConfigurationElemStr | string | ||
EventHubElemStr | string | ||
EventHubSharedAccessKeyAttr | string | ||
EventHubSharedAccessKeyNameAttr | string | ||
EventHubUrlAttr | string | ||
MetricsElemStr | string | ||
MetricsResourceIdAttr | string | ||
PrivConfEndpointAttr | string | ||
PrivConfKeyAttr | string | ||
PrivConfNameAttr | string | ||
PrivateConfigElemStr | string | ||
PublicConfigElemStr | string | ||
StorageAccountElemStr | string | ||
XmlNamespace | string |
메소드 | 설명 | |
---|---|---|
GetConfigFileType ( string configurationPath ) : ConfigFileType | ||
GetConfigValueFromPrivateConfig ( string configurationPath, string elementName, string attributeName ) : string |
Get the private config value for a specific attribute. The private config looks like this: XML:
|
|
GetConfigurationsFromFiles ( string publicConfigPath, string privateConfigPath, string resourceId, Cmdlet cmdlet, IStorageManagementClient storageClient ) : Hashtable>.Tuple |
Parse public and private configurations, and automatically resolve storage key for private configuration.
|
|
GetPrivateDiagnosticsConfiguration ( string configurationPath, string storageAccountName, string storageKey, string endpoint ) : |
||
GetPublicDiagnosticsConfigurationFromFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : |
||
InitializeStorageAccountEndpoint ( string storageAccountName, string storageAccountKey, IStorageManagementClient storageClient, |
Initialize the storage account endpoint if it's not specified. We can get the value from multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one get from the storage account 3. The one get from PrivateConfig element in config file 4. The one get from current Azure Environment
|
|
InitializeStorageAccountKey ( IStorageManagementClient storageClient, string storageAccountName = null, string configurationPath = null ) : string |
Initialize the storage account key if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one we try to resolve within current subscription 2. The one defined in PrivateConfig in the configuration file
|
|
InitializeStorageAccountName ( |
Initialize the storage account name if it's not specified. It can be defined in multiple places, we only take the one with higher precedence. And the precedence is: 1. The one get from StorageContext parameter 2. The one parsed from the diagnostics configuration file
|
|
IsDiagnosticsExtension ( VirtualMachineScaleSetExtension extension ) : bool |
Check if a VMSS extension is diagnostics extension.
|
메소드 | 설명 | |
---|---|---|
AddEventHubPrivateConfig ( |
||
AutoFillMetricsConfig ( Newtonsoft.Json.Linq.JObject wadCfgObject, string resourceId, Cmdlet cmdlet ) : void | ||
AutoFillMetricsConfig ( System.Xml.Linq.XElement wadCfgElement, string resourceId, Cmdlet cmdlet ) : void | ||
CreateStorageContext ( |
||
GetEndpointFromStorageContext ( |
||
GetPublicConfigFromJsonFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : |
||
GetPublicConfigFromXmlFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : |
||
GetPublicConfigJObjectFromJsonFile ( string configurationPath ) : Newtonsoft.Json.Linq.JObject | ||
GetPublicConfigXElementFromXmlFile ( string configurationPath ) : System.Xml.Linq.XElement | ||
TryGetStorageAccount ( IStorageManagementClient storageClient, string storageAccountName, Microsoft.Azure.Management.Storage.Models.StorageAccount &storageAccount ) : bool |
public static GetConfigFileType ( string configurationPath ) : ConfigFileType | ||
configurationPath | string | |
리턴 | ConfigFileType |
public static GetConfigValueFromPrivateConfig ( string configurationPath, string elementName, string attributeName ) : string | ||
configurationPath | string | The path to the configuration file |
elementName | string | The element name of the private config. e.g., StorageAccount, EventHub |
attributeName | string | The attribute name of the element |
리턴 | string |
public static GetConfigurationsFromFiles ( string publicConfigPath, string privateConfigPath, string resourceId, Cmdlet cmdlet, IStorageManagementClient storageClient ) : Hashtable>.Tuple |
||
publicConfigPath | string | Public configuration file path |
privateConfigPath | string | Private configuration file path, can be empty |
resourceId | string | |
cmdlet | Cmdlet | |
storageClient | IStorageManagementClient | Storage client |
리턴 | Hashtable>.Tuple |
public static GetPrivateDiagnosticsConfiguration ( string configurationPath, string storageAccountName, string storageKey, string endpoint ) : |
||
configurationPath | string | |
storageAccountName | string | |
storageKey | string | |
endpoint | string | |
리턴 |
public static GetPublicDiagnosticsConfigurationFromFile ( string configurationPath, string storageAccountName, string resourceId, Cmdlet cmdlet ) : |
||
configurationPath | string | |
storageAccountName | string | |
resourceId | string | |
cmdlet | Cmdlet | |
리턴 |
public static InitializeStorageAccountEndpoint ( string storageAccountName, string storageAccountKey, IStorageManagementClient storageClient, |
||
storageAccountName | string | |
storageAccountKey | string | |
storageClient | IStorageManagementClient | |
storageContext | ||
configurationPath | string | |
defaultContext | ||
리턴 | string |
public static InitializeStorageAccountKey ( IStorageManagementClient storageClient, string storageAccountName = null, string configurationPath = null ) : string | ||
storageClient | IStorageManagementClient | |
storageAccountName | string | |
configurationPath | string | |
리턴 | string |
public static InitializeStorageAccountName ( |
||
storageContext | ||
configurationPath | string | |
리턴 | string |
public static IsDiagnosticsExtension ( VirtualMachineScaleSetExtension extension ) : bool | ||
extension | VirtualMachineScaleSetExtension | VMSS extension |
리턴 | bool |
public static string DiagnosticMonitorConfigurationElemStr | ||
리턴 | string |
public static string DiagnosticsConfigurationElemStr | ||
리턴 | string |
public static string EventHubSharedAccessKeyAttr | ||
리턴 | string |
public static string EventHubSharedAccessKeyNameAttr | ||
리턴 | string |