Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ generated
internal
exports
tools
custom/autogen-model-cmdlets
test/*-TestResults.xml
license.txt
/*.ps1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ManagedServiceIdentityClient")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.3.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@ input-file:
- $(repo)/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/ManagedIdentity.json

subject-prefix: ""
resourcegroup-append: true
nested-object-to-string: true
identity-correction-for-post: true
module-version: 0.3.0

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
# Update Location parameter available
- from: swagger-document
where: $.definitions.IdentityUpdate.properties.location.x-ms-mutability
transform: >-
return [
"read",
"update",
"create"
]

- where:
verb: Set
subject: SystemAssignedIdentity|UserAssignedIdentity
Expand All @@ -58,7 +61,11 @@ directive:

- where:
subject: UserAssignedIdentity
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
Comment thread
JoyerJin marked this conversation as resolved.
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
subject: UserAssignedIdentity
variant: ^CreateViaIdentity.*$
remove: true

- where:
Expand Down Expand Up @@ -113,7 +120,12 @@ directive:

- where:
subject: FederatedIdentityCredential
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
Comment thread
JoyerJin marked this conversation as resolved.
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true

- where:
subject: FederatedIdentityCredential
variant: ^CreateViaIdentity.*$|^GetViaIdentityUserAssignedIdentity$|^DeleteViaIdentityUserAssignedIdentity$|^UpdateViaIdentityUserAssignedIdentityExpanded$
remove: true

- where:
Expand Down Expand Up @@ -152,18 +164,18 @@ directive:

- where:
subject: FederatedIdentityCredential
variant: ^Get1$|^List1$|^GetViaIdentity1$|^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$|^Delete1$|^DeleteViaIdentity1$|^Update1$|^UpdateExpanded1$|^UpdateViaIdentity1$|^UpdateViaIdentityExpanded1$
variant: ^Get1$|^List1$|^GetViaIdentity1$|^GetViaIdentityUserAssignedIdentity1$|^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$|^CreateViaIdentityUserAssignedIdentity1$|^CreateViaIdentityUserAssignedIdentityExpanded1$|^CreateViaJsonFilePath1$|^CreateViaJsonString1$|^Delete1$|^DeleteViaIdentity1$|^DeleteViaIdentityUserAssignedIdentity1$|^Update1$|^UpdateExpanded1$|^UpdateViaIdentity1$|^UpdateViaIdentityExpanded1$|^UpdateViaIdentityUserAssignedIdentityExpanded1$|^UpdateViaIdentityUserAssignedIdentity1$|^UpdateViaJsonFilePath1$|^UpdateViaJsonString1$
remove: true

- where:
verb: Get
subject: SystemAssignedIdentity
variant: ^Get1$|^GetViaIdentity1$
variant: ^Get1$ #|^GetViaIdentity1$
remove: true

- where:
subject: UserAssignedIdentity
variant: ^Get1$|^GetViaIdentity1$|^List2$|^List3$|^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$|^Delete1$|^DeleteViaIdentity1$|^Update1$|^UpdateExpanded1$|^UpdateViaIdentity1$|^UpdateViaIdentityExpanded1$
variant: ^Get1$|^GetViaIdentity1$|^List2$|^List3$|^Create1$|^CreateExpanded1$|^CreateViaIdentity1$|^CreateViaIdentityExpanded1$|^CreateViaJsonFilePath1$|^CreateViaJsonString1$|^Delete1$|^DeleteViaIdentity1$|^Update1$|^UpdateExpanded1$|^UpdateViaIdentity1$|^UpdateViaIdentityExpanded1$|^UpdateViaJsonFilePath1$|^UpdateViaJsonString1$
remove: true

# END
Expand Down Expand Up @@ -195,29 +207,4 @@ directive:
- Name
- Location
- ResourceGroupName

#breaking change message
- where:
parameter-name: Audience
set:
breaking-change:
old-parameter-type: System.String[]
new-parameter-type: System.Collections.Generic.List`1[System.String]
change-description: "The type of property 'Audience' of type 'FederatedIdentityCredential' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."
deprecated-by-version: 2.0.0
deprecated-by-azversion: 14.0.0
change-effective-date: 2025/05/19

- where:
subject: FederatedIdentityCredential
set:
breaking-change:
deprecated-output-properties:
- Audience <System.String[]>
new-output-properties:
- Audience <System.Collections.Generic.List`1[System.String]>
change-description: "The type of property 'Audience' of type 'FederatedIdentityCredential' has changed from 'System.String[]' to 'System.Collections.Generic.List`1[System.String]'."
deprecated-by-version: 2.0.0
deprecated-by-azversion: 14.0.0
change-effective-date: 2025/05/19
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20220131Preview
namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models
{
/// <summary>Customizations of AzureResource</summary>
public partial class AzureResource
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.ManagedServiceIdentity
Module Guid: 07ea637c-d665-40b4-9ced-fc0bdd913dde
Module Guid: ac255d9f-3244-436f-8ee5-2eb25b96fce9
Download Help Link: https://learn.microsoft.com/powershell/module/az.managedserviceidentity
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -24,10 +24,10 @@ Gets the identity.
Lists the associated resources for this identity.

### [New-AzFederatedIdentityCredential](New-AzFederatedIdentityCredential.md)
Create or update a federated identity credential under the specified user assigned identity.
create a federated identity credential under the specified user assigned identity.

### [New-AzUserAssignedIdentity](New-AzUserAssignedIdentity.md)
Create or update an identity in the specified subscription and resource group.
create an identity in the specified subscription and resource group.

### [Remove-AzFederatedIdentityCredential](Remove-AzFederatedIdentityCredential.md)
Deletes the federated identity credential.
Expand All @@ -36,8 +36,8 @@ Deletes the federated identity credential.
Deletes the identity.

### [Update-AzFederatedIdentityCredential](Update-AzFederatedIdentityCredential.md)
Create or update a federated identity credential under the specified user assigned identity.
update a federated identity credential under the specified user assigned identity.

### [Update-AzUserAssignedIdentity](Update-AzUserAssignedIdentity.md)
Update an identity in the specified subscription and resource group.
update an identity in the specified subscription and resource group.

Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IManagedServiceIdentity
Expand Down Expand Up @@ -213,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20230131.IFederatedIdentityCredential
### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IFederatedIdentityCredential

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20230131.ISystemAssignedIdentity
### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.ISystemAssignedIdentity

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IManagedServiceIdentity
Expand Down Expand Up @@ -183,7 +182,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20230131.IIdentity
### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IIdentity

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20220131Preview.IAzureResource
### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IAzureResource

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,33 @@ schema: 2.0.0
# New-AzFederatedIdentityCredential

## SYNOPSIS
Create or update a federated identity credential under the specified user assigned identity.
create a federated identity credential under the specified user assigned identity.

## SYNTAX

### CreateExpanded (Default)
```
New-AzFederatedIdentityCredential -IdentityName <String> -Name <String> -ResourceGroupName <String>
[-SubscriptionId <String>] [-Audience <String[]>] [-Issuer <String>] [-Subject <String>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzFederatedIdentityCredential -IdentityName <String> -Name <String> -ResourceGroupName <String>
-JsonFilePath <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzFederatedIdentityCredential -IdentityName <String> -Name <String> -ResourceGroupName <String>
-JsonString <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Create or update a federated identity credential under the specified user assigned identity.
create a federated identity credential under the specified user assigned identity.

## EXAMPLES

Expand Down Expand Up @@ -59,7 +74,7 @@ The list of audiences that can appear in the issued token.

```yaml
Type: System.String[]
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -105,7 +120,7 @@ The URL of the issuer to be trusted.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -115,6 +130,36 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
The name of the federated identity credential resource.

Expand Down Expand Up @@ -151,7 +196,7 @@ The identifier of the external identity.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -214,7 +259,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.Api20230131.IFederatedIdentityCredential
### Microsoft.Azure.PowerShell.Cmdlets.ManagedServiceIdentity.Models.IFederatedIdentityCredential

## NOTES

Expand Down
Loading