@@ -24,8 +24,8 @@ New-AzSqlInstance [-Name] <String> [-ResourceGroupName] <String> [-Administrator
24
24
[-UserAssignedIdentityId <System.Collections.Generic.List`1[System.String]>] [-IdentityType <String>] [-AsJob]
25
25
[-Force] [-EnableActiveDirectoryOnlyAuthentication] [-ExternalAdminName <String>] [-ExternalAdminSID <Guid>]
26
26
[-ZoneRedundant] [-ServicePrincipalType <String>] [-DatabaseFormat <String>] [-PricingModel <String>]
27
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
28
- [-Confirm] [ <CommonParameters>]
27
+ [-AuthenticationMetadata <String>] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm ]
28
+ [<CommonParameters>]
29
29
```
30
30
31
31
### NewByInstancePoolParentObjectParameterSet
@@ -38,8 +38,8 @@ New-AzSqlInstance [-InstancePool] <AzureSqlInstancePoolModel> [-Name] <String>
38
38
[-UserAssignedIdentityId <System.Collections.Generic.List`1[System.String]>] [-IdentityType <String>] [-AsJob]
39
39
[-Force] [-EnableActiveDirectoryOnlyAuthentication] [-ExternalAdminName <String>] [-ExternalAdminSID <Guid>]
40
40
[-ZoneRedundant] [-ServicePrincipalType <String>] [-DatabaseFormat <String>] [-PricingModel <String>]
41
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
42
- [-Confirm] [ <CommonParameters>]
41
+ [-AuthenticationMetadata <String>] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm ]
42
+ [<CommonParameters>]
43
43
```
44
44
45
45
### NewByInstancePoolResourceIdParameterSet
@@ -52,8 +52,8 @@ New-AzSqlInstance [-InstancePoolResourceId] <String> [-Name] <String> [-Administ
52
52
[-UserAssignedIdentityId <System.Collections.Generic.List`1[System.String]>] [-IdentityType <String>] [-AsJob]
53
53
[-Force] [-EnableActiveDirectoryOnlyAuthentication] [-ExternalAdminName <String>] [-ExternalAdminSID <Guid>]
54
54
[-ZoneRedundant] [-ServicePrincipalType <String>] [-DatabaseFormat <String>] [-PricingModel <String>]
55
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
56
- [-Confirm] [ <CommonParameters>]
55
+ [-AuthenticationMetadata <String>] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm ]
56
+ [<CommonParameters>]
57
57
```
58
58
59
59
### NewBySkuNameParameterSetParameter
@@ -67,8 +67,8 @@ New-AzSqlInstance [-Name] <String> [-ResourceGroupName] <String> [-Administrator
67
67
[-UserAssignedIdentityId <System.Collections.Generic.List`1[System.String]>] [-IdentityType <String>] [-AsJob]
68
68
[-Force] [-EnableActiveDirectoryOnlyAuthentication] [-ExternalAdminName <String>] [-ExternalAdminSID <Guid>]
69
69
[-ZoneRedundant] [-ServicePrincipalType <String>] [-DatabaseFormat <String>] [-PricingModel <String>]
70
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
71
- [-Confirm] [ <CommonParameters>]
70
+ [-AuthenticationMetadata <String>] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm ]
71
+ [<CommonParameters>]
72
72
```
73
73
74
74
## DESCRIPTION
@@ -360,7 +360,7 @@ TenantId : f553829b-6d84-481b-86a9-42db57c1dc73
360
360
AzureADOnlyAuthentication : True
361
361
```
362
362
363
- This command creates a new zone - redundant instance
363
+ This command creates a new instance with external administrator properties and Microsoft Entra-only authentication enabled.
364
364
365
365
### Example 10: Create a new zone - redundant instance
366
366
``` powershell
@@ -389,7 +389,7 @@ InstancePoolName :
389
389
ZoneRedundant : true
390
390
```
391
391
392
- This command creates a new instance with external administrator properties and Microsoft Entra-only authentication enabled .
392
+ This command creates a new zone - redundant instance .
393
393
394
394
### Example 11: Create a new instance with TDE CMK
395
395
``` powershell
@@ -448,7 +448,53 @@ DatabaseFormat : AlwaysUpToDate
448
448
PricingModel : Regular
449
449
```
450
450
451
- This command creates a new instance with external administrator properties and Microsoft Entra-only authentication enabled.
451
+ This command creates a new instance with database format and pricing model specified.
452
+
453
+ ### Example 10: Create a new managed instance which uses Windows authentication metadata mode
454
+ ``` powershell
455
+ New-AzSqlInstance -Name managedInstance1 -ResourceGroupName ResourceGroup01 -Location westcentralus -AdministratorCredential (Get-Credential) -SubnetId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name" -LicenseType LicenseIncluded -StorageSizeInGB 1024 -VCore 16 -SkuName GP_Gen5 -AuthenticationMetadata Windows
456
+ ```
457
+
458
+ ``` output
459
+ Location : westcentralus
460
+ Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/managedInstances/managedInstance1
461
+ ResourceGroupName : resourcegroup01
462
+ ManagedInstanceName : managedInstance1
463
+ Tags :
464
+ Identity :
465
+ Sku : Microsoft.Azure.Management.Internal.Resources.Models.Sku
466
+ FullyQualifiedDomainName : managedInstance1.xxxxxxxxxxxx.database.windows.net
467
+ AdministratorLogin : adminLogin1
468
+ AdministratorPassword :
469
+ SubnetId : subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Network/virtualNetworks/vnet_name/subnets/subnet_name
470
+ LicenseType : LicenseIncluded
471
+ VCores : 16
472
+ StorageSizeInGB : 1024
473
+ Collation : SQL_Latin1_General_CP1_CI_AS
474
+ PublicDataEndpointEnabled : False
475
+ ProxyOverride : Default
476
+ TimezoneId : UTC
477
+ DnsZonePartner :
478
+ DnsZone : ad35cna0mw
479
+ InstancePoolName :
480
+ MinimalTlsVersion : None
481
+ BackupStorageRedundancy : Geo
482
+ RequestedBackupStorageRedundancy : Geo
483
+ CurrentBackupStorageRedundancy : Geo
484
+ MaintenanceConfigurationId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.Maintenance/
485
+ publicMaintenanceConfigurations/SQL_Default
486
+ Administrators :
487
+ PrimaryUserAssignedIdentityId :
488
+ KeyId :
489
+ ZoneRedundant : False
490
+ ServicePrincipal :
491
+ DatabaseFormat : SQLServer2022
492
+ PricingModel : Regular
493
+ ExternalGovernanceStatus : Disabled
494
+ AuthenticationMetadata : Windows
495
+ ```
496
+
497
+ This command creates a new managed instance which uses Windows metadata for authentication of synced users.
452
498
453
499
## PARAMETERS
454
500
@@ -497,6 +543,22 @@ Accept pipeline input: False
497
543
Accept wildcard characters : False
498
544
` ` `
499
545
546
+ ### -AuthenticationMetadata
547
+ Preferred metadata to use for authentication of synced on-prem users. Default is AzureAD.
548
+
549
+ ` ` ` yaml
550
+ Type : System.String
551
+ Parameter Sets : (All)
552
+ Aliases :
553
+ Accepted values : AzureAD, Paired, Windows
554
+
555
+ Required : False
556
+ Position : Named
557
+ Default value : None
558
+ Accept pipeline input : False
559
+ Accept wildcard characters : False
560
+ ` ` `
561
+
500
562
### -BackupStorageRedundancy
501
563
The Backup storage redundancy used to store backups for the Sql Azure Managed Instance. Options are: Local, Zone and Geo
502
564
@@ -1105,5 +1167,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
1105
1167
## NOTES
1106
1168
1107
1169
## RELATED LINKS
1108
-
1109
- ## RELATED LINKS
0 commit comments