Skip to content

Commit 56b82b1

Browse files
author
Srinivas Alluri
committed
Merge branch 'main' of https://github.com/Azure/azure-powershell into neon-ga-ps-cli-generator
2 parents 9690b28 + b42305f commit 56b82b1

File tree

108 files changed

+971
-9946
lines changed

Some content is hidden

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

108 files changed

+971
-9946
lines changed

.github/policies/resourceManagement.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3060,6 +3060,22 @@ configuration:
30603060
- rajsell
30613061
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
30623062
assignMentionees: False
3063+
- if:
3064+
- or:
3065+
- labelAdded:
3066+
label: Service Attention
3067+
- labelAdded:
3068+
label: Neon Postgre
3069+
- hasLabel:
3070+
label: Service Attention
3071+
- hasLabel:
3072+
label: Neon Postgre
3073+
then:
3074+
- mentionUsers:
3075+
mentionees:
3076+
- alluri02
3077+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
3078+
assignMentionees: False
30633079
- if:
30643080
- or:
30653081
- labelAdded:

documentation/azure-powershell-modules.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
| Database for MariaDB | `Az.MariaDb` | [![MariaDb]][MariaDbGallery] | [Changelog][MariaDbChangeLog] |
121121
| Marketplace | `Az.Marketplace` | [![Marketplace]][MarketplaceGallery] | [Changelog][MarketplaceChangeLog] |
122122
| Marketplace Ordering | `Az.MarketplaceOrdering` | [![MarketplaceOrdering]][MarketplaceOrderingGallery] | [Changelog][MarketplaceOrderingChangeLog] |
123-
| Managed DevOps Pools | `Az.Mdp` | [![Mdp]][MdpGallery] | [Changelog][MdpChangeLog] |
124-
| Media | `Az.Media` | [![Media]][MediaGallery] | [Changelog][MediaChangeLog] |
123+
| Managed DevOps Pools | `Az.Mdp` | [![Mdp]][MdpGallery] | [Changelog][MdpChangeLog] |
125124
| Migrate | `Az.Migrate` | [![Migrate]][MigrateGallery] | [Changelog][MigrateChangeLog] |
126125
| Mixed Reality | `Az.MixedReality` | [![MixedReality]][MixedRealityGallery] | [Changelog][MixedRealityChangeLog] |
127126
| Mobile Network | `Az.MobileNetwork` | [![MobileNetwork]][MobileNetworkGallery] | [Changelog][MobileNetworkChangeLog] |
@@ -308,7 +307,6 @@
308307
[Marketplace]: https://img.shields.io/powershellgallery/v/Az.Marketplace.svg?style=flat-square&label=Az.Marketplace
309308
[MarketplaceOrdering]: https://img.shields.io/powershellgallery/v/Az.MarketplaceOrdering.svg?style=flat-square&label=Az.MarketplaceOrdering
310309
[Mdp]: https://img.shields.io/powershellgallery/v/Az.Mdp.svg?style=flat-square&label=Az.Mdp
311-
[Media]: https://img.shields.io/powershellgallery/v/Az.Media.svg?style=flat-square&label=Az.Media
312310
[Migrate]: https://img.shields.io/powershellgallery/v/Az.Migrate.svg?style=flat-square&label=Az.Migrate
313311
[MixedReality]: https://img.shields.io/powershellgallery/v/Az.MixedReality.svg?style=flat-square&label=Az.MixedReality
314312
[MobileNetwork]: https://img.shields.io/powershellgallery/v/Az.MobileNetwork.svg?style=flat-square&label=Az.MobileNetwork
@@ -491,7 +489,6 @@
491489
[MarketplaceGallery]: https://www.powershellgallery.com/packages/Az.Marketplace/
492490
[MarketplaceOrderingGallery]: https://www.powershellgallery.com/packages/Az.MarketplaceOrdering/
493491
[MdpGallery]: https://www.powershellgallery.com/packages/Az.Mdp/
494-
[MediaGallery]: https://www.powershellgallery.com/packages/Az.Media/
495492
[MigrateGallery]: https://www.powershellgallery.com/packages/Az.Migrate/
496493
[MixedRealityGallery]: https://www.powershellgallery.com/packages/Az.MixedReality/
497494
[MobileNetworkGallery]: https://www.powershellgallery.com/packages/Az.MobileNetwork/
@@ -672,7 +669,6 @@
672669
[MarketplaceChangeLog]: ../src/Marketplace/Marketplace/ChangeLog.md
673670
[MarketplaceOrderingChangeLog]: ../src/MarketplaceOrdering/MarketplaceOrdering/ChangeLog.md
674671
[MdpChangeLog]: ../src/Mdp/Mdp/ChangeLog.md
675-
[MediaChangeLog]: ../src/Media/Media/ChangeLog.md
676672
[MigrateChangeLog]: ../src/Migrate/Migrate/ChangeLog.md
677673
[MixedRealityChangeLog]: ../src/MixedReality/MixedReality/ChangeLog.md
678674
[MobileNetworkChangeLog]: ../src/MobileNetwork/MobileNetwork/ChangeLog.md

src/Aks/LiveTests/Aks/TestLiveScenarios.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Invoke-LiveTestScenario -Name "Test_AKS_CRUD" -Description "Test AKS cluster CRU
4040

4141
Write-Host "##[section]Start creating AKS cluster : New-AzAksCluster"
4242

43-
New-AzAksCluster -ResourceGroupName $rgName -Name $kubeName -SshKeyValue $sshKeyValue -ServicePrincipalIdAndSecret $servicePrincipalCredential -KubernetesVersion $kubeVersion -NodeName $sysNodeName -NodePoolMode System -NodeOsSKU AzureLinux -AutoUpgradeChannel node-image -NodeCount 2 -EnableNodeAutoScaling -NodeMinCount 1 -NodeMaxCount 3 -NetworkPlugin azure -NodeVnetSubnetID $snet.Id -LoadBalancerOutboundIp $pip.Id
43+
New-AzAksCluster -ResourceGroupName $rgName -Name $kubeName -Location $location -SshKeyValue $sshKeyValue -ServicePrincipalIdAndSecret $servicePrincipalCredential -KubernetesVersion $kubeVersion -NodeName $sysNodeName -NodePoolMode System -NodeOsSKU AzureLinux -AutoUpgradeChannel node-image -NodeCount 2 -EnableNodeAutoScaling -NodeMinCount 1 -NodeMaxCount 3 -NetworkPlugin azure -NodeVnetSubnetID $snet.Id -LoadBalancerOutboundIp $pip.Id
4444

4545
Write-Host "##[section]Finished creating AKS cluster : New-AzAksCluster"
4646

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Communication")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.5.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.5.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/Communication/Communication.Autorest/README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,16 @@ input-file:
3535
# You need to specify your swagger files here.
3636
- $(repo)/specification/communication/resource-manager/Microsoft.Communication/preview/2023-06-01-preview/CommunicationServices.json
3737

38-
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
39-
# - (this-folder)/relative-path-to-your-swagger
40-
41-
# For new RP, the version is 0.1.0
4238
module-version: 0.1.0
43-
# Normally, title is the service name
4439
title: Communication
4540
subject-prefix: $(service-name)
4641

47-
# If there are post APIs for some kinds of actions in the RP, you may need to
48-
# uncomment following line to support viaIdentity for these post APIs
49-
# identity-correction-for-post: true
50-
51-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
52-
use-extension:
53-
"@autorest/powershell": "3.x"
54-
5542
directive:
56-
# Following is two common directive which are normally required in all the RPs
57-
# 1. Remove the unexpanded parameter set
58-
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
5943
- where:
60-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
44+
variant: ^(Create|Update|Regenerate)(?!.*?(Expanded|JsonFilePath|JsonString))
45+
remove: true
46+
- where:
47+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
6148
remove: true
6249
# Remove the set-* cmdlet
6350
- where:

src/Communication/Communication.Autorest/docs/Az.Communication.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Communication
3-
Module Guid: 32c4dede-9b85-43d4-83ab-447e2938c400
3+
Module Guid: 669fb84c-45ab-4b4d-8d73-1f2418b8df76
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.communication
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -18,7 +18,7 @@ Get the CommunicationService and its properties.
1818
Get the access keys of the CommunicationService resource.
1919

2020
### [New-AzCommunicationService](New-AzCommunicationService.md)
21-
Create a new CommunicationService or update an existing CommunicationService.
21+
create a new CommunicationService or create an existing CommunicationService.
2222

2323
### [New-AzCommunicationServiceKey](New-AzCommunicationServiceKey.md)
2424
Regenerate CommunicationService access key.
@@ -34,5 +34,5 @@ Links an Azure Notification Hub to this communication service.
3434
Checks that the CommunicationService name is valid and is not already in use.
3535

3636
### [Update-AzCommunicationService](Update-AzCommunicationService.md)
37-
Operation to update an existing CommunicationService.
37+
update a new CommunicationService or update an existing CommunicationService.
3838

src/Communication/Communication.Autorest/docs/Get-AzCommunicationService.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ Accept wildcard characters: False
9090
9191
### -InputObject
9292
Identity Parameter
93-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
9493
9594
```yaml
9695
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationIdentity
@@ -160,7 +159,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
160159
161160
## OUTPUTS
162161
163-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
162+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
164163
165164
## NOTES
166165

src/Communication/Communication.Autorest/docs/Get-AzCommunicationServiceKey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
138138
139139
## OUTPUTS
140140
141-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceKeys
141+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceKeys
142142
143143
## NOTES
144144

src/Communication/Communication.Autorest/docs/New-AzCommunicationService.md

Lines changed: 66 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,34 @@ schema: 2.0.0
88
# New-AzCommunicationService
99

1010
## SYNOPSIS
11-
Create a new CommunicationService or update an existing CommunicationService.
11+
create a new CommunicationService or create an existing CommunicationService.
1212

1313
## SYNTAX
1414

15+
### CreateExpanded (Default)
1516
```
1617
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -Location <String>
17-
[-SubscriptionId <String>] [-DataLocation <String>] [-IdentityType <ManagedServiceIdentityType>]
18-
[-IdentityUserAssignedIdentity <Hashtable>] [-LinkedDomain <String[]>] [-Tag <Hashtable>]
19-
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
[-SubscriptionId <String>] [-DataLocation <String>] [-EnableSystemAssignedIdentity]
19+
[-LinkedDomain <String[]>] [-Tag <Hashtable>] [-UserAssignedIdentity <String[]>] [-DefaultProfile <PSObject>]
20+
[-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
21+
```
22+
23+
### CreateViaJsonFilePath
24+
```
25+
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
26+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
27+
[<CommonParameters>]
28+
```
29+
30+
### CreateViaJsonString
31+
```
32+
New-AzCommunicationService -Name <String> -ResourceGroupName <String> -JsonString <String>
33+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
34+
[<CommonParameters>]
2035
```
2136

2237
## DESCRIPTION
23-
Create a new CommunicationService or update an existing CommunicationService.
38+
create a new CommunicationService or create an existing CommunicationService.
2439

2540
## EXAMPLES
2641

@@ -43,7 +58,7 @@ $linkedDomains = @(
4358
"/subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/tcsacstest/providers/Microsoft.Communication/emailServices/tcsacstestECSps/domains/AzureManagedDomain"
4459
)
4560
46-
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider -Name ContosoAcsResource2 -DataLocation UnitedStates -Location Global -LinkedDomain @linkedDomains
61+
New-AzCommunicationService -ResourceGroupName ContosoResourceProvider -Name ContosoAcsResource2 -DataLocation UnitedStates -Location Global -LinkedDomain @linkedDomains
4762
```
4863

4964
```output
@@ -76,7 +91,7 @@ The location where the communication service stores its data at rest.
7691
7792
```yaml
7893
Type: System.String
79-
Parameter Sets: (All)
94+
Parameter Sets: CreateExpanded
8095
Aliases:
8196

8297
Required: False
@@ -102,12 +117,12 @@ Accept pipeline input: False
102117
Accept wildcard characters: False
103118
```
104119
105-
### -IdentityType
106-
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
120+
### -EnableSystemAssignedIdentity
121+
Determines whether to enable a system-assigned identity for the resource.
107122
108123
```yaml
109-
Type: Microsoft.Azure.PowerShell.Cmdlets.Communication.Support.ManagedServiceIdentityType
110-
Parameter Sets: (All)
124+
Type: System.Management.Automation.SwitchParameter
125+
Parameter Sets: CreateExpanded
111126
Aliases:
112127

113128
Required: False
@@ -117,17 +132,30 @@ Accept pipeline input: False
117132
Accept wildcard characters: False
118133
```
119134
120-
### -IdentityUserAssignedIdentity
121-
The set of user assigned identities associated with the resource.
122-
The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
123-
The dictionary values can be empty objects ({}) in requests.
135+
### -JsonFilePath
136+
Path of Json file supplied to the Create operation
124137
125138
```yaml
126-
Type: System.Collections.Hashtable
127-
Parameter Sets: (All)
139+
Type: System.String
140+
Parameter Sets: CreateViaJsonFilePath
128141
Aliases:
129142

130-
Required: False
143+
Required: True
144+
Position: Named
145+
Default value: None
146+
Accept pipeline input: False
147+
Accept wildcard characters: False
148+
```
149+
150+
### -JsonString
151+
Json string supplied to the Create operation
152+
153+
```yaml
154+
Type: System.String
155+
Parameter Sets: CreateViaJsonString
156+
Aliases:
157+
158+
Required: True
131159
Position: Named
132160
Default value: None
133161
Accept pipeline input: False
@@ -139,7 +167,7 @@ List of email Domain resource Ids.
139167
140168
```yaml
141169
Type: System.String[]
142-
Parameter Sets: (All)
170+
Parameter Sets: CreateExpanded
143171
Aliases:
144172

145173
Required: False
@@ -154,7 +182,7 @@ The geo-location where the resource lives
154182
155183
```yaml
156184
Type: System.String
157-
Parameter Sets: (All)
185+
Parameter Sets: CreateExpanded
158186
Aliases:
159187

160188
Required: True
@@ -231,7 +259,23 @@ Resource tags.
231259
232260
```yaml
233261
Type: System.Collections.Hashtable
234-
Parameter Sets: (All)
262+
Parameter Sets: CreateExpanded
263+
Aliases:
264+
265+
Required: False
266+
Position: Named
267+
Default value: None
268+
Accept pipeline input: False
269+
Accept wildcard characters: False
270+
```
271+
272+
### -UserAssignedIdentity
273+
The array of user assigned identities associated with the resource.
274+
The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
275+
276+
```yaml
277+
Type: System.String[]
278+
Parameter Sets: CreateExpanded
235279
Aliases:
236280

237281
Required: False
@@ -279,7 +323,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
279323
280324
## OUTPUTS
281325
282-
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.Api20230601Preview.ICommunicationServiceResource
326+
### Microsoft.Azure.PowerShell.Cmdlets.Communication.Models.ICommunicationServiceResource
283327
284328
## NOTES
285329

0 commit comments

Comments
 (0)