< Back

Set-AzureStorageServiceLoggingProperty

Tue Jan 29, 2019 9:28 pm

NAME Set-AzureStorageServiceLoggingProperty



SYNOPSIS

Modifies logging for Azure Storage services.





SYNTAX

Set-AzureStorageServiceLoggingProperty [-ServiceType] {Blob | Table | Queue | File} [-Context <IStorageContext>] [-LoggingOperations {None | Read

| Write | Delete | All}] [-PassThru] [-RetentionDays <Int32>] [-Version <Double>] [<CommonParameters>]





DESCRIPTION

The Set-AzureStorageServiceLoggingProperty cmdlet modifies logging for Azure Storage services.





PARAMETERS

-Context <IStorageContext>

Specifies an Azure storage context. To obtain a storage context, use the New-AzureStorageContext cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-LoggingOperations <LoggingOperations[]>

Specifies an array of Azure Storage service operations. Azure Storage services logs the operations that this parameter specifies. The

acceptable values for this parameter are:



- None



- Read



- Write



- Delete



- All



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Indicates that this cmdlet returns the updated logging properties. If you do not specify this parameter, this cmdlet does not return a value.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-RetentionDays <Int32>

Specifies the number of days that the Azure Storage service retains logged information.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ServiceType <StorageServiceType>

Specifies the storage service type. This cmdlet modifies the logging properties for the service type that this parameter specifies. The

acceptable values for this parameter are:



- Blob



- Table



- Queue



- File





The value of File is not currently supported.





Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Version <Double>

Specifies the version of the Azure Storage service logging. The default value is 1.0.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

IStorageContext

Parameter 'Context' accepts value of type 'IStorageContext' from the pipeline





OUTPUTS

Microsoft.WindowsAzure.Storage.Shared.Protocol.LoggingProperties







NOTES









Example 1: Modify logging properties for the Blob service



C:\\PS>Set-AzureStorageServiceLoggingProperty -ServiceType Blob -LoggingOperations Read,Write -PassThru -RetentionDays 10 -Version 1.0



This command modifies version 1.0 logging for blob storage to include read and write operations. Azure Storage service logging retains entries for

10 days. Because this command specifies the PassThru parameter, the command displays the modified logging properties.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ngproperty

Get-AzureStorageServiceLoggingProperty

New-AzureStorageContext