New-AzureServiceDiagnosticsExtensionConfig
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
New-AzureServiceDiagnosticsExtensionConfig
This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles.
Syntax
Parameter Set: NewExtension
New-AzureServiceDiagnosticsExtensionConfig [[-Role] <String[]> ] [[-X509Certificate] <X509Certificate2> ] [[-ThumbprintAlgorithm] <String> ] [-StorageContext] <AzureStorageContext> [[-DiagnosticsConfigurationPath] <String> ] [ <CommonParameters>]
Parameter Set: NewExtensionUsingThumbprint
New-AzureServiceDiagnosticsExtensionConfig [[-Role] <String[]> ] [-CertificateThumbprint] <String> [[-ThumbprintAlgorithm] <String> ] [-StorageContext] <AzureStorageContext> [[-DiagnosticsConfigurationPath] <String> ] [ <CommonParameters>]
Detailed Description
This cmdlet generates configuration of diagnostics extension for specified role(s) or all roles.
Parameters
-CertificateThumbprint<String>
A certificate thumbprint to use for encrypting the private configuration. If not specified a certificate will be created for you. This certificate has to already exist in the certificate store.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-DiagnosticsConfigurationPath<String>
Specifies a path for the diagnostics configuration.
Aliases |
none |
Required? |
false |
Position? |
5 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Role<String[]>
An optional array of roles to specify the diagnostics configuration for. If not specified the diagnostics configuration is applied as the default configuration for all roles.
Aliases |
none |
Required? |
false |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-StorageContext<AzureStorageContext>
Specifies the storage context that provides the security settings that are used to access the configuration script.
Aliases |
none |
Required? |
true |
Position? |
4 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-ThumbprintAlgorithm<String>
Thumbprint hashing algorithm which is used with the thumbprint to identify the certificate. This parameter is optional and the default is sha1.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-X509Certificate<X509Certificate2>
An x509 certificate that when specified will be automatically uploaded to the cloud service and used for encrypting the extension private configuration.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
-------------------------- EXAMPLE 1 --------------------------
Description
-----------
Creates an object that has the service extension object default for all roles that will be installed with the deployment and the role configuration.
C:\PS>$wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML
-------------------------- EXAMPLE 2 --------------------------
Description
-----------
Creates an object that has the service extension object for a specific role that will be installed with the deployment and the role configuration.
C:\PS>$wadConfig = New-AzureServiceDiagnosticExtensionConfig -StorageAccountName $name -DiagnosticConfiguration $wadConfigXML -Role "WebRole1"