From e6b2aab0c5c1ae52c68dc51664a82b8c1719c232 Mon Sep 17 00:00:00 2001 From: Maoliang Huang Date: Wed, 21 Oct 2020 13:35:27 -0700 Subject: [PATCH] Add new examples to DataLakeAnalytics - Add new examples to the following modules: DataLakeAnalytics --- .../help/Add-AzDataLakeAnalyticsDataSource.md | 11 ++++++++++- .../help/Set-AzDataLakeAnalyticsAccount.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/DataLakeAnalytics/DataLakeAnalytics/help/Add-AzDataLakeAnalyticsDataSource.md b/src/DataLakeAnalytics/DataLakeAnalytics/help/Add-AzDataLakeAnalyticsDataSource.md index 6eabdf81fc13..b60bf4a122c3 100644 --- a/src/DataLakeAnalytics/DataLakeAnalytics/help/Add-AzDataLakeAnalyticsDataSource.md +++ b/src/DataLakeAnalytics/DataLakeAnalytics/help/Add-AzDataLakeAnalyticsDataSource.md @@ -31,12 +31,21 @@ The **Add-AzDataLakeAnalyticsDataSource** cmdlet adds a data source to an Azure ## EXAMPLES ### Example 1: Add a data source to an account -``` +```powershell PS C:\>Add-AzDataLakeAnalyticsDataSource -Account "ContosoAdlA" -DataLakeStore "ContosoAdlS" ``` This command adds a Data Lake Store data source to a Data Lake Analytics account. +### Example 2 + +Adds a data source to a Data Lake Analytics account. (autogenerated) + + +```powershell +Add-AzDataLakeAnalyticsDataSource -AccessKey '...newaccesskey...' -Account 'ContosoAdlA' -Blob 'AzureStorage01' +``` + ## PARAMETERS ### -AccessKey diff --git a/src/DataLakeAnalytics/DataLakeAnalytics/help/Set-AzDataLakeAnalyticsAccount.md b/src/DataLakeAnalytics/DataLakeAnalytics/help/Set-AzDataLakeAnalyticsAccount.md index 01498ab9a6e5..3eb1749b144f 100644 --- a/src/DataLakeAnalytics/DataLakeAnalytics/help/Set-AzDataLakeAnalyticsAccount.md +++ b/src/DataLakeAnalytics/DataLakeAnalytics/help/Set-AzDataLakeAnalyticsAccount.md @@ -26,12 +26,21 @@ The **Set-AzDataLakeAnalyticsAccount** cmdlet modifies an Azure Data Lake Analyt ## EXAMPLES ### Example 1: Modify the data source of an account -``` +```powershell PS C:\>Set-AzDataLakeAnalyticsAccount -Name "ContosoAdlAcct" -DefaultDataLakeStore "ContosoAdlStore01" -Tags @{"stage"="production"} ``` This command changes the default data source and the Tags property of the account. +### Example 2 + +Modifies a Data Lake Analytics account. (autogenerated) + + +```powershell +Set-AzDataLakeAnalyticsAccount -AllowAzureIpState Enabled -FirewallState Enabled -Name 'ContosoAdlAcct' -ResourceGroupName myresourcegroup +``` + ## PARAMETERS ### -AllowAzureIpState