Skip to content

Commit a493732

Browse files
committed
pulled upstream changes
2 parents 9d62557 + 4c63865 commit a493732

File tree

324 files changed

+6862
-1171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+6862
-1171
lines changed

src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class AzureEnvironment : IAzureEnvironment
5353
AzureDataLakeStoreFileSystemEndpointSuffix = AzureEnvironmentConstants.AzureDataLakeStoreFileSystemEndpointSuffix,
5454
GraphEndpointResourceId = AzureEnvironmentConstants.AzureGraphEndpoint,
5555
DataLakeEndpointResourceId = AzureEnvironmentConstants.AzureDataLakeServiceEndpointResourceId,
56+
BatchEndpointResourceId = AzureEnvironmentConstants.BatchEndpointResourceId,
5657
AdTenant = "Common"
5758
}
5859
},
@@ -77,6 +78,7 @@ public class AzureEnvironment : IAzureEnvironment
7778
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = null,
7879
AzureDataLakeStoreFileSystemEndpointSuffix = null,
7980
GraphEndpointResourceId = AzureEnvironmentConstants.ChinaGraphEndpoint,
81+
BatchEndpointResourceId = AzureEnvironmentConstants.ChinaBatchEndpointResourceId,
8082
AdTenant = "Common"
8183
}
8284
},
@@ -101,6 +103,7 @@ public class AzureEnvironment : IAzureEnvironment
101103
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = null,
102104
AzureDataLakeStoreFileSystemEndpointSuffix = null,
103105
GraphEndpointResourceId = AzureEnvironmentConstants.USGovernmentGraphEndpoint,
106+
BatchEndpointResourceId = AzureEnvironmentConstants.USGovernmentBatchEndpointResourceId,
104107
AdTenant = "Common"
105108
}
106109
},
@@ -125,6 +128,7 @@ public class AzureEnvironment : IAzureEnvironment
125128
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = null,
126129
AzureDataLakeStoreFileSystemEndpointSuffix = null,
127130
GraphEndpointResourceId = AzureEnvironmentConstants.GermanGraphEndpoint,
131+
BatchEndpointResourceId = AzureEnvironmentConstants.GermanBatchEndpointResourceId,
128132
AdTenant = "Common"
129133
}
130134
}
@@ -228,6 +232,11 @@ public AzureEnvironment(IAzureEnvironment other)
228232
/// </summary>
229233
public string DataLakeEndpointResourceId { get; set; }
230234

235+
/// <summary>
236+
/// The token audience required for communicating with the Batch service in this enviornment
237+
/// </summary>
238+
public string BatchEndpointResourceId { get; set; }
239+
231240
/// <summary>
232241
/// The domain name suffix for Azure DataLake Catalog and Job services created in this environment
233242
/// </summary>
@@ -275,7 +284,8 @@ public static class Endpoint
275284
ManagementPortalUrl = "ManagementPortalUrl",
276285
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = "AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix",
277286
AzureDataLakeStoreFileSystemEndpointSuffix = "AzureDataLakeStoreFileSystemEndpointSuffix",
278-
DataLakeEndpointResourceId = "DataLakeEndpointResourceId";
287+
DataLakeEndpointResourceId = "DataLakeEndpointResourceId",
288+
BatchEndpointResourceId = "BatchEndpointResourceId";
279289

280290
}
281291
}

src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,10 @@ public static class AzureEnvironmentConstants
125125
/// The token audience for authorizing DataLake requests
126126
/// </summary>
127127
public const string AzureDataLakeServiceEndpointResourceId = "https://datalake.azure.net";
128+
129+
public const string BatchEndpointResourceId = "https://batch.core.windows.net/";
130+
public const string ChinaBatchEndpointResourceId = "https://batch.chinacloudapi.cn/";
131+
public const string USGovernmentBatchEndpointResourceId = "https://batch.core.usgovcloudapi.net/";
132+
public const string GermanBatchEndpointResourceId = "https://batch.cloudapi.de/";
128133
}
129134
}

src/Common/Commands.Common.Authentication.Abstractions/Extensions/AzureEnvironmentExtensions.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public static bool TryGetEndpointUrl(this IAzureEnvironment environment, string
6565
case AzureEnvironment.Endpoint.DataLakeEndpointResourceId:
6666
endpoint = new Uri(environment.DataLakeEndpointResourceId);
6767
break;
68+
case AzureEnvironment.Endpoint.BatchEndpointResourceId:
69+
endpoint = new Uri(environment.BatchEndpointResourceId);
70+
break;
6871
default:
6972
result = false;
7073
break;
@@ -138,6 +141,9 @@ public static bool TryGetEndpointString(this IAzureEnvironment environment, stri
138141
case AzureEnvironment.Endpoint.ServiceManagement:
139142
propertyValue = environment.ServiceManagementUrl;
140143
break;
144+
case AzureEnvironment.Endpoint.BatchEndpointResourceId:
145+
propertyValue = environment.BatchEndpointResourceId;
146+
break;
141147
default:
142148
break;
143149
}
@@ -226,6 +232,9 @@ public static void SetEndpoint(this IAzureEnvironment environment, string endpoi
226232
case AzureEnvironment.Endpoint.DataLakeEndpointResourceId:
227233
environment.DataLakeEndpointResourceId = propertyValue;
228234
break;
235+
case AzureEnvironment.Endpoint.BatchEndpointResourceId:
236+
environment.BatchEndpointResourceId = propertyValue;
237+
break;
229238
case AzureEnvironment.Endpoint.ActiveDirectory:
230239
environment.ActiveDirectoryAuthority = propertyValue;
231240
break;
@@ -440,6 +449,10 @@ public static void CopyFrom(this IAzureEnvironment environment, IAzureEnvironmen
440449
environment.AzureKeyVaultServiceEndpointResourceId =
441450
other.AzureKeyVaultServiceEndpointResourceId;
442451
}
452+
if (other.IsEndpointSet(AzureEnvironment.Endpoint.BatchEndpointResourceId))
453+
{
454+
environment.BatchEndpointResourceId = other.BatchEndpointResourceId;
455+
}
443456

444457
environment.VersionProfiles.Clear();
445458
foreach (var profile in other.VersionProfiles)

src/Common/Commands.Common.Authentication.Abstractions/Interfaces/IAzureEnvironment.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public interface IAzureEnvironment : IExtensibleModel
107107
/// </summary>
108108
string DataLakeEndpointResourceId { get; set; }
109109

110+
/// <summary>
111+
/// The token audience required to authenticate with the Azure Batch service
112+
/// </summary>
113+
string BatchEndpointResourceId { get; set; }
114+
110115
/// <summary>
111116
/// The domain name suffix for Azure DataLake Catalog and Job services
112117
/// </summary>

src/ResourceManager/Common/Commands.Common.Authentication.ResourceManager/Models/PSAzureEnvironment.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public PSAzureEnvironment(PSObject other)
9595
AzureDataLakeStoreFileSystemEndpointSuffix = other.GetProperty<string>(nameof(AzureDataLakeStoreFileSystemEndpointSuffix));
9696
AzureKeyVaultDnsSuffix = other.GetProperty<string>(nameof(AzureKeyVaultDnsSuffix));
9797
AzureKeyVaultServiceEndpointResourceId = other.GetProperty<string>(nameof(AzureKeyVaultServiceEndpointResourceId));
98+
BatchEndpointResourceId = other.GetProperty<string>(nameof(BatchEndpointResourceId));
9899
DataLakeEndpointResourceId = other.GetProperty<string>(nameof(DataLakeEndpointResourceId));
99100
GalleryUrl = other.GetProperty<string>(nameof(GalleryUrl));
100101
GraphEndpointResourceId = other.GetProperty<string>(nameof(GraphEndpointResourceId));
@@ -227,6 +228,11 @@ public bool OnPremise
227228

228229
public IDictionary<string, string> ExtendedProperties { get; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
229230

231+
/// <summary>
232+
/// Gets or sets the Azure Batch AD resource ID.
233+
/// </summary>
234+
public string BatchEndpointResourceId { get; set; }
235+
230236
/// <summary>
231237
/// Determine equality of two PSAzureEnvironment instances.
232238
/// </summary>
@@ -253,7 +259,8 @@ public override bool Equals(object obj)
253259
&& SqlDatabaseDnsSuffix == other.SqlDatabaseDnsSuffix
254260
&& AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix == other.AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix
255261
&& AzureDataLakeStoreFileSystemEndpointSuffix == other.AzureDataLakeStoreFileSystemEndpointSuffix
256-
&& TrafficManagerDnsSuffix == other.TrafficManagerDnsSuffix;
262+
&& TrafficManagerDnsSuffix == other.TrafficManagerDnsSuffix
263+
&& BatchEndpointResourceId == other.BatchEndpointResourceId;
257264
}
258265

259266
return false;

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/help/Get-AzureRmDataLakeAnalyticsAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
111111
### PSDataLakeAnalyticsAccount
112112
The specified account details.
113113
114-
### List<PSDataLakeAnalyticsAccount>
114+
### List<PSDataLakeAnalyticsAccountBasic>
115115
The list of accounts in the specified resource group or subscription.
116116
117117
## NOTES

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/help/Get-AzureRmDataLakeAnalyticsJob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Parameter 'JobId' accepts value of type 'Guid' from the pipeline
292292
### JobInformation
293293
The specified job information details
294294
295-
### List<JobInformation>
295+
### List<PSJobInformationBasic>
296296
The list of jobs in the specified Data Lake Analytics account.
297297
298298
## NOTES

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/help/Get-AzureRmDataLakeStoreAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
111111
### PSDataLakeStoreAccount
112112
The specific Data Lake Store account asked for.
113113
114-
### List<PSDataLakeStoreAccount>
114+
### List<PSDataLakeStoreAccountBasic>
115115
A list of Data Lake Store accounts in the resource group or subscription specified.
116116
117117
## NOTES

src/ResourceManager/EventGrid/Commands.EventGrid/help/Get-AzureRmEventGridSubscription.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,27 @@ Gets the details of an event subscription, or gets a list of all event subscript
1515
### EventSubscriptionTopicNameParameterSet (Default)
1616
```
1717
Get-AzureRmEventGridSubscription [[-EventSubscriptionName] <String>] [[-ResourceGroupName] <String>]
18-
[[-TopicName] <String>] [-IncludeFullEndpointUrl] [<CommonParameters>]
18+
[[-TopicName] <String>] [-IncludeFullEndpointUrl] [-DefaultProfile <IAzureContextContainer>]
19+
[<CommonParameters>]
1920
```
2021

2122
### ResourceIdEventSubscriptionParameterSet
2223
```
2324
Get-AzureRmEventGridSubscription [[-EventSubscriptionName] <String>] [-ResourceId] <String>
24-
[-IncludeFullEndpointUrl] [<CommonParameters>]
25+
[-IncludeFullEndpointUrl] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2526
```
2627

2728
### EventSubscriptionTopicTypeNameParameterSet
2829
```
2930
Get-AzureRmEventGridSubscription [[-ResourceGroupName] <String>] [[-TopicTypeName] <String>]
30-
[[-Location] <String>] [-IncludeFullEndpointUrl] [<CommonParameters>]
31+
[[-Location] <String>] [-IncludeFullEndpointUrl] [-DefaultProfile <IAzureContextContainer>]
32+
[<CommonParameters>]
3133
```
3234

3335
### EventSubscriptionInputObjectSet
3436
```
35-
Get-AzureRmEventGridSubscription [-InputObject] <PSTopic> [<CommonParameters>]
37+
Get-AzureRmEventGridSubscription [-InputObject] <PSTopic> [-DefaultProfile <IAzureContextContainer>]
38+
[<CommonParameters>]
3639
```
3740

3841
## DESCRIPTION
@@ -121,6 +124,21 @@ Gets the list of all event subscriptions created for the specific resource group
121124

122125
## PARAMETERS
123126

127+
### -DefaultProfile
128+
The credentials, account, tenant, and subscription used for communication with azure
129+
130+
```yaml
131+
Type: IAzureContextContainer
132+
Parameter Sets: (All)
133+
Aliases: AzureRmContext, AzureCredential
134+
135+
Required: False
136+
Position: Named
137+
Default value: None
138+
Accept pipeline input: False
139+
Accept wildcard characters: False
140+
```
141+
124142
### -EventSubscriptionName
125143
The name of the event subscription
126144

src/ResourceManager/EventGrid/Commands.EventGrid/help/Get-AzureRmEventGridTopic.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@ Gets the details of an Event Grid topic, or gets a list of all Event Grid topics
1212

1313
## SYNTAX
1414

15-
### TopicNameParameterSet (Default)
15+
### ResourceGroupNameParameterSet (Default)
1616
```
17-
Get-AzureRmEventGridTopic [-ResourceGroupName] <String> [-Name] <String> [<CommonParameters>]
17+
Get-AzureRmEventGridTopic [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>]
18+
[<CommonParameters>]
1819
```
1920

20-
### ResourceGroupNameParameterSet
21+
### TopicNameParameterSet
2122
```
22-
Get-AzureRmEventGridTopic [[-ResourceGroupName] <String>] [<CommonParameters>]
23+
Get-AzureRmEventGridTopic [-ResourceGroupName] <String> [-Name] <String>
24+
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2325
```
2426

2527
### ResourceIdEventSubscriptionParameterSet
2628
```
27-
Get-AzureRmEventGridTopic [-ResourceId] <String> [<CommonParameters>]
29+
Get-AzureRmEventGridTopic [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>]
30+
[<CommonParameters>]
2831
```
2932

3033
## DESCRIPTION
@@ -64,6 +67,21 @@ List all the Event Grid topics in the subscription.
6467

6568
## PARAMETERS
6669

70+
### -DefaultProfile
71+
The credentials, account, tenant, and subscription used for communication with azure
72+
73+
```yaml
74+
Type: IAzureContextContainer
75+
Parameter Sets: (All)
76+
Aliases: AzureRmContext, AzureCredential
77+
78+
Required: False
79+
Position: Named
80+
Default value: None
81+
Accept pipeline input: False
82+
Accept wildcard characters: False
83+
```
84+
6785
### -Name
6886
EventGrid Topic Name.
6987
@@ -84,10 +102,10 @@ Resource Group Name.
84102
85103
```yaml
86104
Type: String
87-
Parameter Sets: TopicNameParameterSet
105+
Parameter Sets: ResourceGroupNameParameterSet
88106
Aliases: ResourceGroup
89107

90-
Required: True
108+
Required: False
91109
Position: 0
92110
Default value: None
93111
Accept pipeline input: True (ByPropertyName)
@@ -96,10 +114,10 @@ Accept wildcard characters: False
96114
97115
```yaml
98116
Type: String
99-
Parameter Sets: ResourceGroupNameParameterSet
117+
Parameter Sets: TopicNameParameterSet
100118
Aliases: ResourceGroup
101119

102-
Required: False
120+
Required: True
103121
Position: 0
104122
Default value: None
105123
Accept pipeline input: True (ByPropertyName)

src/ResourceManager/EventGrid/Commands.EventGrid/help/Get-AzureRmEventGridTopicKey.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ Gets the shared access keys used to publish events to an Event Grid topic.
1414

1515
### TopicNameParameterSet (Default)
1616
```
17-
Get-AzureRmEventGridTopicKey [-ResourceGroupName] <String> [-Name] <String> [<CommonParameters>]
17+
Get-AzureRmEventGridTopicKey [-ResourceGroupName] <String> [-Name] <String>
18+
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1819
```
1920

2021
### TopicInputObjectParameterSet
2122
```
22-
Get-AzureRmEventGridTopicKey [-InputObject] <PSTopic> [<CommonParameters>]
23+
Get-AzureRmEventGridTopicKey [-InputObject] <PSTopic> [-DefaultProfile <IAzureContextContainer>]
24+
[<CommonParameters>]
2325
```
2426

2527
### ResourceIdEventSubscriptionParameterSet
2628
```
27-
Get-AzureRmEventGridTopicKey [-ResourceId] <String> [<CommonParameters>]
29+
Get-AzureRmEventGridTopicKey [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>]
30+
[<CommonParameters>]
2831
```
2932

3033
## DESCRIPTION
@@ -48,6 +51,21 @@ Gets the shared access keys of Event Grid topic \`Topic1\` in resource group \`M
4851

4952
## PARAMETERS
5053

54+
### -DefaultProfile
55+
The credentials, account, tenant, and subscription used for communication with azure
56+
57+
```yaml
58+
Type: IAzureContextContainer
59+
Parameter Sets: (All)
60+
Aliases: AzureRmContext, AzureCredential
61+
62+
Required: False
63+
Position: Named
64+
Default value: None
65+
Accept pipeline input: False
66+
Accept wildcard characters: False
67+
```
68+
5169
### -InputObject
5270
EventGrid Topic object.
5371

src/ResourceManager/EventGrid/Commands.EventGrid/help/Get-AzureRmEventGridTopicType.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Gets the details about the topic types supported by Azure Event Grid.
1313
## SYNTAX
1414

1515
```
16-
Get-AzureRmEventGridTopicType [[-Name] <String>] [-IncludeEventTypeData] [<CommonParameters>]
16+
Get-AzureRmEventGridTopicType [[-Name] <String>] [-IncludeEventTypeData]
17+
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1718
```
1819

1920
## DESCRIPTION
@@ -47,6 +48,21 @@ Gets information about the StorageAccounts topic type, including the event types
4748

4849
## PARAMETERS
4950

51+
### -DefaultProfile
52+
The credentials, account, tenant, and subscription used for communication with azure
53+
54+
```yaml
55+
Type: IAzureContextContainer
56+
Parameter Sets: (All)
57+
Aliases: AzureRmContext, AzureCredential
58+
59+
Required: False
60+
Position: Named
61+
Default value: None
62+
Accept pipeline input: False
63+
Accept wildcard characters: False
64+
```
65+
5066
### -IncludeEventTypeData
5167
If specified, the response will include the event types supported by a topic type.
5268

0 commit comments

Comments
 (0)