Documentation
¶
Index ¶
- type ActiveDirectoryAdministrator
- func (*ActiveDirectoryAdministrator) ElementType() reflect.Type
- func (i *ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutput() ActiveDirectoryAdministratorOutput
- func (i *ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorOutput
- type ActiveDirectoryAdministratorArgs
- type ActiveDirectoryAdministratorArray
- func (ActiveDirectoryAdministratorArray) ElementType() reflect.Type
- func (i ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutput() ActiveDirectoryAdministratorArrayOutput
- func (i ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorArrayOutput
- type ActiveDirectoryAdministratorArrayInput
- type ActiveDirectoryAdministratorArrayOutput
- func (ActiveDirectoryAdministratorArrayOutput) ElementType() reflect.Type
- func (o ActiveDirectoryAdministratorArrayOutput) Index(i pulumi.IntInput) ActiveDirectoryAdministratorOutput
- func (o ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutput() ActiveDirectoryAdministratorArrayOutput
- func (o ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorArrayOutput
- type ActiveDirectoryAdministratorInput
- type ActiveDirectoryAdministratorMap
- func (ActiveDirectoryAdministratorMap) ElementType() reflect.Type
- func (i ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutput() ActiveDirectoryAdministratorMapOutput
- func (i ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorMapOutput
- type ActiveDirectoryAdministratorMapInput
- type ActiveDirectoryAdministratorMapOutput
- func (ActiveDirectoryAdministratorMapOutput) ElementType() reflect.Type
- func (o ActiveDirectoryAdministratorMapOutput) MapIndex(k pulumi.StringInput) ActiveDirectoryAdministratorOutput
- func (o ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutput() ActiveDirectoryAdministratorMapOutput
- func (o ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorMapOutput
- type ActiveDirectoryAdministratorOutput
- func (o ActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly() pulumi.BoolOutput
- func (ActiveDirectoryAdministratorOutput) ElementType() reflect.Type
- func (o ActiveDirectoryAdministratorOutput) Login() pulumi.StringOutput
- func (o ActiveDirectoryAdministratorOutput) ObjectId() pulumi.StringOutput
- func (o ActiveDirectoryAdministratorOutput) ResourceGroupName() pulumi.StringOutput
- func (o ActiveDirectoryAdministratorOutput) ServerName() pulumi.StringOutput
- func (o ActiveDirectoryAdministratorOutput) TenantId() pulumi.StringOutput
- func (o ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutput() ActiveDirectoryAdministratorOutput
- func (o ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorOutput
- type ActiveDirectoryAdministratorState
- type Database
- type DatabaseArgs
- type DatabaseArray
- type DatabaseArrayInput
- type DatabaseArrayOutput
- type DatabaseImport
- type DatabaseImportArgs
- func (DatabaseImportArgs) ElementType() reflect.Type
- func (i DatabaseImportArgs) ToDatabaseImportOutput() DatabaseImportOutput
- func (i DatabaseImportArgs) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
- func (i DatabaseImportArgs) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (i DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseImportInput
- type DatabaseImportOutput
- func (o DatabaseImportOutput) AdministratorLogin() pulumi.StringOutput
- func (o DatabaseImportOutput) AdministratorLoginPassword() pulumi.StringOutput
- func (o DatabaseImportOutput) AuthenticationType() pulumi.StringOutput
- func (DatabaseImportOutput) ElementType() reflect.Type
- func (o DatabaseImportOutput) OperationMode() pulumi.StringPtrOutput
- func (o DatabaseImportOutput) StorageKey() pulumi.StringOutput
- func (o DatabaseImportOutput) StorageKeyType() pulumi.StringOutput
- func (o DatabaseImportOutput) StorageUri() pulumi.StringOutput
- func (o DatabaseImportOutput) ToDatabaseImportOutput() DatabaseImportOutput
- func (o DatabaseImportOutput) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
- func (o DatabaseImportOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (o DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseImportPtrInput
- type DatabaseImportPtrOutput
- func (o DatabaseImportPtrOutput) AdministratorLogin() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) AdministratorLoginPassword() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) AuthenticationType() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) Elem() DatabaseImportOutput
- func (DatabaseImportPtrOutput) ElementType() reflect.Type
- func (o DatabaseImportPtrOutput) OperationMode() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) StorageKey() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) StorageKeyType() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) StorageUri() pulumi.StringPtrOutput
- func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
- func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
- type DatabaseInput
- type DatabaseMap
- type DatabaseMapInput
- type DatabaseMapOutput
- type DatabaseOutput
- func (o DatabaseOutput) Collation() pulumi.StringOutput
- func (o DatabaseOutput) CreateMode() pulumi.StringPtrOutput
- func (o DatabaseOutput) CreationDate() pulumi.StringOutput
- func (o DatabaseOutput) DefaultSecondaryLocation() pulumi.StringOutput
- func (o DatabaseOutput) Edition() pulumi.StringOutput
- func (o DatabaseOutput) ElasticPoolName() pulumi.StringOutput
- func (DatabaseOutput) ElementType() reflect.Type
- func (o DatabaseOutput) Encryption() pulumi.StringOutput
- func (o DatabaseOutput) Import() DatabaseImportPtrOutput
- func (o DatabaseOutput) Location() pulumi.StringOutput
- func (o DatabaseOutput) MaxSizeBytes() pulumi.StringOutput
- func (o DatabaseOutput) MaxSizeGb() pulumi.StringOutput
- func (o DatabaseOutput) Name() pulumi.StringOutput
- func (o DatabaseOutput) ReadScale() pulumi.BoolPtrOutput
- func (o DatabaseOutput) RequestedServiceObjectiveId() pulumi.StringOutput
- func (o DatabaseOutput) RequestedServiceObjectiveName() pulumi.StringOutput
- func (o DatabaseOutput) ResourceGroupName() pulumi.StringOutput
- func (o DatabaseOutput) RestorePointInTime() pulumi.StringOutput
- func (o DatabaseOutput) ServerName() pulumi.StringOutput
- func (o DatabaseOutput) SourceDatabaseDeletionDate() pulumi.StringOutput
- func (o DatabaseOutput) SourceDatabaseId() pulumi.StringOutput
- func (o DatabaseOutput) Tags() pulumi.StringMapOutput
- func (o DatabaseOutput) ThreatDetectionPolicy() DatabaseThreatDetectionPolicyOutput
- func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
- func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
- func (o DatabaseOutput) ZoneRedundant() pulumi.BoolPtrOutput
- type DatabaseState
- type DatabaseThreatDetectionPolicy
- type DatabaseThreatDetectionPolicyArgs
- func (DatabaseThreatDetectionPolicyArgs) ElementType() reflect.Type
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- type DatabaseThreatDetectionPolicyInput
- type DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (DatabaseThreatDetectionPolicyOutput) ElementType() reflect.Type
- func (o DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- type DatabaseThreatDetectionPolicyPtrInput
- type DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) Elem() DatabaseThreatDetectionPolicyOutput
- func (DatabaseThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
- func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
- func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
- type ElasticPool
- type ElasticPoolArgs
- type ElasticPoolArray
- type ElasticPoolArrayInput
- type ElasticPoolArrayOutput
- func (ElasticPoolArrayOutput) ElementType() reflect.Type
- func (o ElasticPoolArrayOutput) Index(i pulumi.IntInput) ElasticPoolOutput
- func (o ElasticPoolArrayOutput) ToElasticPoolArrayOutput() ElasticPoolArrayOutput
- func (o ElasticPoolArrayOutput) ToElasticPoolArrayOutputWithContext(ctx context.Context) ElasticPoolArrayOutput
- type ElasticPoolInput
- type ElasticPoolMap
- type ElasticPoolMapInput
- type ElasticPoolMapOutput
- func (ElasticPoolMapOutput) ElementType() reflect.Type
- func (o ElasticPoolMapOutput) MapIndex(k pulumi.StringInput) ElasticPoolOutput
- func (o ElasticPoolMapOutput) ToElasticPoolMapOutput() ElasticPoolMapOutput
- func (o ElasticPoolMapOutput) ToElasticPoolMapOutputWithContext(ctx context.Context) ElasticPoolMapOutput
- type ElasticPoolOutput
- func (o ElasticPoolOutput) CreationDate() pulumi.StringOutput
- func (o ElasticPoolOutput) DbDtuMax() pulumi.IntOutput
- func (o ElasticPoolOutput) DbDtuMin() pulumi.IntOutput
- func (o ElasticPoolOutput) Dtu() pulumi.IntOutput
- func (o ElasticPoolOutput) Edition() pulumi.StringOutput
- func (ElasticPoolOutput) ElementType() reflect.Type
- func (o ElasticPoolOutput) Location() pulumi.StringOutput
- func (o ElasticPoolOutput) Name() pulumi.StringOutput
- func (o ElasticPoolOutput) PoolSize() pulumi.IntOutput
- func (o ElasticPoolOutput) ResourceGroupName() pulumi.StringOutput
- func (o ElasticPoolOutput) ServerName() pulumi.StringOutput
- func (o ElasticPoolOutput) Tags() pulumi.StringMapOutput
- func (o ElasticPoolOutput) ToElasticPoolOutput() ElasticPoolOutput
- func (o ElasticPoolOutput) ToElasticPoolOutputWithContext(ctx context.Context) ElasticPoolOutput
- type ElasticPoolState
- type FailoverGroup
- type FailoverGroupArgs
- type FailoverGroupArray
- type FailoverGroupArrayInput
- type FailoverGroupArrayOutput
- func (FailoverGroupArrayOutput) ElementType() reflect.Type
- func (o FailoverGroupArrayOutput) Index(i pulumi.IntInput) FailoverGroupOutput
- func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutput() FailoverGroupArrayOutput
- func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutputWithContext(ctx context.Context) FailoverGroupArrayOutput
- type FailoverGroupInput
- type FailoverGroupMap
- type FailoverGroupMapInput
- type FailoverGroupMapOutput
- func (FailoverGroupMapOutput) ElementType() reflect.Type
- func (o FailoverGroupMapOutput) MapIndex(k pulumi.StringInput) FailoverGroupOutput
- func (o FailoverGroupMapOutput) ToFailoverGroupMapOutput() FailoverGroupMapOutput
- func (o FailoverGroupMapOutput) ToFailoverGroupMapOutputWithContext(ctx context.Context) FailoverGroupMapOutput
- type FailoverGroupOutput
- func (o FailoverGroupOutput) Databases() pulumi.StringArrayOutput
- func (FailoverGroupOutput) ElementType() reflect.Type
- func (o FailoverGroupOutput) Location() pulumi.StringOutput
- func (o FailoverGroupOutput) Name() pulumi.StringOutput
- func (o FailoverGroupOutput) PartnerServers() FailoverGroupPartnerServerArrayOutput
- func (o FailoverGroupOutput) ReadWriteEndpointFailoverPolicy() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o FailoverGroupOutput) ReadonlyEndpointFailoverPolicy() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (o FailoverGroupOutput) ResourceGroupName() pulumi.StringOutput
- func (o FailoverGroupOutput) Role() pulumi.StringOutput
- func (o FailoverGroupOutput) ServerName() pulumi.StringOutput
- func (o FailoverGroupOutput) Tags() pulumi.StringMapOutput
- func (o FailoverGroupOutput) ToFailoverGroupOutput() FailoverGroupOutput
- func (o FailoverGroupOutput) ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput
- type FailoverGroupPartnerServer
- type FailoverGroupPartnerServerArgs
- func (FailoverGroupPartnerServerArgs) ElementType() reflect.Type
- func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
- func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
- type FailoverGroupPartnerServerArray
- func (FailoverGroupPartnerServerArray) ElementType() reflect.Type
- func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
- func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
- type FailoverGroupPartnerServerArrayInput
- type FailoverGroupPartnerServerArrayOutput
- func (FailoverGroupPartnerServerArrayOutput) ElementType() reflect.Type
- func (o FailoverGroupPartnerServerArrayOutput) Index(i pulumi.IntInput) FailoverGroupPartnerServerOutput
- func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
- func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
- type FailoverGroupPartnerServerInput
- type FailoverGroupPartnerServerOutput
- func (FailoverGroupPartnerServerOutput) ElementType() reflect.Type
- func (o FailoverGroupPartnerServerOutput) Id() pulumi.StringOutput
- func (o FailoverGroupPartnerServerOutput) Location() pulumi.StringPtrOutput
- func (o FailoverGroupPartnerServerOutput) Role() pulumi.StringPtrOutput
- func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
- func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
- type FailoverGroupReadWriteEndpointFailoverPolicy
- type FailoverGroupReadWriteEndpointFailoverPolicyArgs
- func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadWriteEndpointFailoverPolicyInput
- type FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput
- type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Elem() FailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicy
- type FailoverGroupReadonlyEndpointFailoverPolicyArgs
- func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType() reflect.Type
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicyInput
- type FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType() reflect.Type
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput
- type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Elem() FailoverGroupReadonlyEndpointFailoverPolicyOutput
- func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
- type FailoverGroupState
- type FirewallRule
- type FirewallRuleArgs
- type FirewallRuleArray
- type FirewallRuleArrayInput
- type FirewallRuleArrayOutput
- func (FirewallRuleArrayOutput) ElementType() reflect.Type
- func (o FirewallRuleArrayOutput) Index(i pulumi.IntInput) FirewallRuleOutput
- func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput
- func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput
- type FirewallRuleInput
- type FirewallRuleMap
- type FirewallRuleMapInput
- type FirewallRuleMapOutput
- func (FirewallRuleMapOutput) ElementType() reflect.Type
- func (o FirewallRuleMapOutput) MapIndex(k pulumi.StringInput) FirewallRuleOutput
- func (o FirewallRuleMapOutput) ToFirewallRuleMapOutput() FirewallRuleMapOutput
- func (o FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext(ctx context.Context) FirewallRuleMapOutput
- type FirewallRuleOutput
- func (FirewallRuleOutput) ElementType() reflect.Type
- func (o FirewallRuleOutput) EndIpAddress() pulumi.StringOutput
- func (o FirewallRuleOutput) Name() pulumi.StringOutput
- func (o FirewallRuleOutput) ResourceGroupName() pulumi.StringOutput
- func (o FirewallRuleOutput) ServerName() pulumi.StringOutput
- func (o FirewallRuleOutput) StartIpAddress() pulumi.StringOutput
- func (o FirewallRuleOutput) ToFirewallRuleOutput() FirewallRuleOutput
- func (o FirewallRuleOutput) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput
- type FirewallRuleState
- type GetServerArgs
- type GetServerIdentity
- type GetServerIdentityArgs
- type GetServerIdentityArray
- type GetServerIdentityArrayInput
- type GetServerIdentityArrayOutput
- func (GetServerIdentityArrayOutput) ElementType() reflect.Type
- func (o GetServerIdentityArrayOutput) Index(i pulumi.IntInput) GetServerIdentityOutput
- func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
- func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
- type GetServerIdentityInput
- type GetServerIdentityOutput
- func (GetServerIdentityOutput) ElementType() reflect.Type
- func (o GetServerIdentityOutput) PrincipalId() pulumi.StringOutput
- func (o GetServerIdentityOutput) TenantId() pulumi.StringOutput
- func (o GetServerIdentityOutput) ToGetServerIdentityOutput() GetServerIdentityOutput
- func (o GetServerIdentityOutput) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
- func (o GetServerIdentityOutput) Type() pulumi.StringOutput
- type GetServerOutputArgs
- type GetServerResult
- type GetServerResultOutput
- func (o GetServerResultOutput) AdministratorLogin() pulumi.StringOutput
- func (GetServerResultOutput) ElementType() reflect.Type
- func (o GetServerResultOutput) Fqdn() pulumi.StringOutput
- func (o GetServerResultOutput) Id() pulumi.StringOutput
- func (o GetServerResultOutput) Identities() GetServerIdentityArrayOutput
- func (o GetServerResultOutput) Location() pulumi.StringOutput
- func (o GetServerResultOutput) Name() pulumi.StringOutput
- func (o GetServerResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o GetServerResultOutput) Tags() pulumi.StringMapOutput
- func (o GetServerResultOutput) ToGetServerResultOutput() GetServerResultOutput
- func (o GetServerResultOutput) ToGetServerResultOutputWithContext(ctx context.Context) GetServerResultOutput
- func (o GetServerResultOutput) Version() pulumi.StringOutput
- type GetSqlManagedInstanceArgs
- type GetSqlManagedInstanceIdentity
- type GetSqlManagedInstanceIdentityArgs
- func (GetSqlManagedInstanceIdentityArgs) ElementType() reflect.Type
- func (i GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutput() GetSqlManagedInstanceIdentityOutput
- func (i GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityOutput
- type GetSqlManagedInstanceIdentityArray
- func (GetSqlManagedInstanceIdentityArray) ElementType() reflect.Type
- func (i GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutput() GetSqlManagedInstanceIdentityArrayOutput
- func (i GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityArrayOutput
- type GetSqlManagedInstanceIdentityArrayInput
- type GetSqlManagedInstanceIdentityArrayOutput
- func (GetSqlManagedInstanceIdentityArrayOutput) ElementType() reflect.Type
- func (o GetSqlManagedInstanceIdentityArrayOutput) Index(i pulumi.IntInput) GetSqlManagedInstanceIdentityOutput
- func (o GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutput() GetSqlManagedInstanceIdentityArrayOutput
- func (o GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityArrayOutput
- type GetSqlManagedInstanceIdentityInput
- type GetSqlManagedInstanceIdentityOutput
- func (GetSqlManagedInstanceIdentityOutput) ElementType() reflect.Type
- func (o GetSqlManagedInstanceIdentityOutput) PrincipalId() pulumi.StringOutput
- func (o GetSqlManagedInstanceIdentityOutput) TenantId() pulumi.StringOutput
- func (o GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutput() GetSqlManagedInstanceIdentityOutput
- func (o GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityOutput
- func (o GetSqlManagedInstanceIdentityOutput) Type() pulumi.StringOutput
- type GetSqlManagedInstanceOutputArgs
- type GetSqlManagedInstanceResult
- type GetSqlManagedInstanceResultOutput
- func (o GetSqlManagedInstanceResultOutput) AdministratorLogin() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Collation() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) DnsZonePartnerId() pulumi.StringOutput
- func (GetSqlManagedInstanceResultOutput) ElementType() reflect.Type
- func (o GetSqlManagedInstanceResultOutput) Fqdn() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Id() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Identities() GetSqlManagedInstanceIdentityArrayOutput
- func (o GetSqlManagedInstanceResultOutput) LicenseType() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Location() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) MinimumTlsVersion() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Name() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) ProxyOverride() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) PublicDataEndpointEnabled() pulumi.BoolOutput
- func (o GetSqlManagedInstanceResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) SkuName() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) StorageAccountType() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) StorageSizeInGb() pulumi.IntOutput
- func (o GetSqlManagedInstanceResultOutput) SubnetId() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) Tags() pulumi.StringMapOutput
- func (o GetSqlManagedInstanceResultOutput) TimezoneId() pulumi.StringOutput
- func (o GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutput() GetSqlManagedInstanceResultOutput
- func (o GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutputWithContext(ctx context.Context) GetSqlManagedInstanceResultOutput
- func (o GetSqlManagedInstanceResultOutput) Vcores() pulumi.IntOutput
- type LookupDatabaseArgs
- type LookupDatabaseOutputArgs
- type LookupDatabaseResult
- type LookupDatabaseResultOutput
- func (o LookupDatabaseResultOutput) Collation() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) DefaultSecondaryLocation() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) Edition() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) ElasticPoolName() pulumi.StringOutput
- func (LookupDatabaseResultOutput) ElementType() reflect.Type
- func (o LookupDatabaseResultOutput) FailoverGroupId() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) Id() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) Location() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) Name() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) ReadScale() pulumi.BoolOutput
- func (o LookupDatabaseResultOutput) ResourceGroupName() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) ServerName() pulumi.StringOutput
- func (o LookupDatabaseResultOutput) Tags() pulumi.StringMapOutput
- func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutput() LookupDatabaseResultOutput
- func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext(ctx context.Context) LookupDatabaseResultOutput
- type ManagedDatabase
- type ManagedDatabaseArgs
- type ManagedDatabaseArray
- type ManagedDatabaseArrayInput
- type ManagedDatabaseArrayOutput
- func (ManagedDatabaseArrayOutput) ElementType() reflect.Type
- func (o ManagedDatabaseArrayOutput) Index(i pulumi.IntInput) ManagedDatabaseOutput
- func (o ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutput() ManagedDatabaseArrayOutput
- func (o ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutputWithContext(ctx context.Context) ManagedDatabaseArrayOutput
- type ManagedDatabaseInput
- type ManagedDatabaseMap
- type ManagedDatabaseMapInput
- type ManagedDatabaseMapOutput
- func (ManagedDatabaseMapOutput) ElementType() reflect.Type
- func (o ManagedDatabaseMapOutput) MapIndex(k pulumi.StringInput) ManagedDatabaseOutput
- func (o ManagedDatabaseMapOutput) ToManagedDatabaseMapOutput() ManagedDatabaseMapOutput
- func (o ManagedDatabaseMapOutput) ToManagedDatabaseMapOutputWithContext(ctx context.Context) ManagedDatabaseMapOutput
- type ManagedDatabaseOutput
- func (ManagedDatabaseOutput) ElementType() reflect.Type
- func (o ManagedDatabaseOutput) Location() pulumi.StringOutput
- func (o ManagedDatabaseOutput) Name() pulumi.StringOutput
- func (o ManagedDatabaseOutput) SqlManagedInstanceId() pulumi.StringOutput
- func (o ManagedDatabaseOutput) ToManagedDatabaseOutput() ManagedDatabaseOutput
- func (o ManagedDatabaseOutput) ToManagedDatabaseOutputWithContext(ctx context.Context) ManagedDatabaseOutput
- type ManagedDatabaseState
- type ManagedInstance
- type ManagedInstanceActiveDirectoryAdministrator
- func GetManagedInstanceActiveDirectoryAdministrator(ctx *pulumi.Context, name string, id pulumi.IDInput, ...) (*ManagedInstanceActiveDirectoryAdministrator, error)
- func NewManagedInstanceActiveDirectoryAdministrator(ctx *pulumi.Context, name string, ...) (*ManagedInstanceActiveDirectoryAdministrator, error)
- func (*ManagedInstanceActiveDirectoryAdministrator) ElementType() reflect.Type
- func (i *ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutput() ManagedInstanceActiveDirectoryAdministratorOutput
- func (i *ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorOutput
- type ManagedInstanceActiveDirectoryAdministratorArgs
- type ManagedInstanceActiveDirectoryAdministratorArray
- func (ManagedInstanceActiveDirectoryAdministratorArray) ElementType() reflect.Type
- func (i ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutput() ManagedInstanceActiveDirectoryAdministratorArrayOutput
- func (i ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorArrayOutput
- type ManagedInstanceActiveDirectoryAdministratorArrayInput
- type ManagedInstanceActiveDirectoryAdministratorArrayOutput
- func (ManagedInstanceActiveDirectoryAdministratorArrayOutput) ElementType() reflect.Type
- func (o ManagedInstanceActiveDirectoryAdministratorArrayOutput) Index(i pulumi.IntInput) ManagedInstanceActiveDirectoryAdministratorOutput
- func (o ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutput() ManagedInstanceActiveDirectoryAdministratorArrayOutput
- func (o ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorArrayOutput
- type ManagedInstanceActiveDirectoryAdministratorInput
- type ManagedInstanceActiveDirectoryAdministratorMap
- func (ManagedInstanceActiveDirectoryAdministratorMap) ElementType() reflect.Type
- func (i ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutput() ManagedInstanceActiveDirectoryAdministratorMapOutput
- func (i ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorMapOutput
- type ManagedInstanceActiveDirectoryAdministratorMapInput
- type ManagedInstanceActiveDirectoryAdministratorMapOutput
- func (ManagedInstanceActiveDirectoryAdministratorMapOutput) ElementType() reflect.Type
- func (o ManagedInstanceActiveDirectoryAdministratorMapOutput) MapIndex(k pulumi.StringInput) ManagedInstanceActiveDirectoryAdministratorOutput
- func (o ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutput() ManagedInstanceActiveDirectoryAdministratorMapOutput
- func (o ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorMapOutput
- type ManagedInstanceActiveDirectoryAdministratorOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly() pulumi.BoolPtrOutput
- func (ManagedInstanceActiveDirectoryAdministratorOutput) ElementType() reflect.Type
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) Login() pulumi.StringOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) ManagedInstanceName() pulumi.StringOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) ObjectId() pulumi.StringOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) ResourceGroupName() pulumi.StringOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) TenantId() pulumi.StringOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutput() ManagedInstanceActiveDirectoryAdministratorOutput
- func (o ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorOutput
- type ManagedInstanceActiveDirectoryAdministratorState
- type ManagedInstanceArgs
- type ManagedInstanceArray
- type ManagedInstanceArrayInput
- type ManagedInstanceArrayOutput
- func (ManagedInstanceArrayOutput) ElementType() reflect.Type
- func (o ManagedInstanceArrayOutput) Index(i pulumi.IntInput) ManagedInstanceOutput
- func (o ManagedInstanceArrayOutput) ToManagedInstanceArrayOutput() ManagedInstanceArrayOutput
- func (o ManagedInstanceArrayOutput) ToManagedInstanceArrayOutputWithContext(ctx context.Context) ManagedInstanceArrayOutput
- type ManagedInstanceFailoverGroup
- func (*ManagedInstanceFailoverGroup) ElementType() reflect.Type
- func (i *ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutput() ManagedInstanceFailoverGroupOutput
- func (i *ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupOutput
- type ManagedInstanceFailoverGroupArgs
- type ManagedInstanceFailoverGroupArray
- func (ManagedInstanceFailoverGroupArray) ElementType() reflect.Type
- func (i ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutput() ManagedInstanceFailoverGroupArrayOutput
- func (i ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupArrayOutput
- type ManagedInstanceFailoverGroupArrayInput
- type ManagedInstanceFailoverGroupArrayOutput
- func (ManagedInstanceFailoverGroupArrayOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupArrayOutput) Index(i pulumi.IntInput) ManagedInstanceFailoverGroupOutput
- func (o ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutput() ManagedInstanceFailoverGroupArrayOutput
- func (o ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupArrayOutput
- type ManagedInstanceFailoverGroupInput
- type ManagedInstanceFailoverGroupMap
- func (ManagedInstanceFailoverGroupMap) ElementType() reflect.Type
- func (i ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutput() ManagedInstanceFailoverGroupMapOutput
- func (i ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupMapOutput
- type ManagedInstanceFailoverGroupMapInput
- type ManagedInstanceFailoverGroupMapOutput
- func (ManagedInstanceFailoverGroupMapOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupMapOutput) MapIndex(k pulumi.StringInput) ManagedInstanceFailoverGroupOutput
- func (o ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutput() ManagedInstanceFailoverGroupMapOutput
- func (o ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupMapOutput
- type ManagedInstanceFailoverGroupOutput
- func (ManagedInstanceFailoverGroupOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupOutput) Location() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) ManagedInstanceName() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) Name() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) PartnerManagedInstanceId() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) PartnerRegions() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- func (o ManagedInstanceFailoverGroupOutput) ReadWriteEndpointFailoverPolicy() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o ManagedInstanceFailoverGroupOutput) ReadonlyEndpointFailoverPolicyEnabled() pulumi.BoolPtrOutput
- func (o ManagedInstanceFailoverGroupOutput) ResourceGroupName() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) Role() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutput() ManagedInstanceFailoverGroupOutput
- func (o ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupOutput
- type ManagedInstanceFailoverGroupPartnerRegion
- type ManagedInstanceFailoverGroupPartnerRegionArgs
- func (ManagedInstanceFailoverGroupPartnerRegionArgs) ElementType() reflect.Type
- func (i ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutput() ManagedInstanceFailoverGroupPartnerRegionOutput
- func (i ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionOutput
- type ManagedInstanceFailoverGroupPartnerRegionArray
- func (ManagedInstanceFailoverGroupPartnerRegionArray) ElementType() reflect.Type
- func (i ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- func (i ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- type ManagedInstanceFailoverGroupPartnerRegionArrayInput
- type ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- func (ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupPartnerRegionArrayOutput) Index(i pulumi.IntInput) ManagedInstanceFailoverGroupPartnerRegionOutput
- func (o ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- func (o ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionArrayOutput
- type ManagedInstanceFailoverGroupPartnerRegionInput
- type ManagedInstanceFailoverGroupPartnerRegionOutput
- func (ManagedInstanceFailoverGroupPartnerRegionOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupPartnerRegionOutput) Location() pulumi.StringPtrOutput
- func (o ManagedInstanceFailoverGroupPartnerRegionOutput) Role() pulumi.StringPtrOutput
- func (o ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutput() ManagedInstanceFailoverGroupPartnerRegionOutput
- func (o ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionOutput
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs
- func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
- func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput
- type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Elem() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
- func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
- type ManagedInstanceFailoverGroupState
- type ManagedInstanceIdentity
- type ManagedInstanceIdentityArgs
- func (ManagedInstanceIdentityArgs) ElementType() reflect.Type
- func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutput() ManagedInstanceIdentityOutput
- func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutputWithContext(ctx context.Context) ManagedInstanceIdentityOutput
- func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
- func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
- type ManagedInstanceIdentityInput
- type ManagedInstanceIdentityOutput
- func (ManagedInstanceIdentityOutput) ElementType() reflect.Type
- func (o ManagedInstanceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o ManagedInstanceIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutput() ManagedInstanceIdentityOutput
- func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutputWithContext(ctx context.Context) ManagedInstanceIdentityOutput
- func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceIdentityOutput) Type() pulumi.StringOutput
- type ManagedInstanceIdentityPtrInput
- type ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceIdentityPtrOutput) Elem() ManagedInstanceIdentityOutput
- func (ManagedInstanceIdentityPtrOutput) ElementType() reflect.Type
- func (o ManagedInstanceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o ManagedInstanceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type ManagedInstanceInput
- type ManagedInstanceMap
- type ManagedInstanceMapInput
- type ManagedInstanceMapOutput
- func (ManagedInstanceMapOutput) ElementType() reflect.Type
- func (o ManagedInstanceMapOutput) MapIndex(k pulumi.StringInput) ManagedInstanceOutput
- func (o ManagedInstanceMapOutput) ToManagedInstanceMapOutput() ManagedInstanceMapOutput
- func (o ManagedInstanceMapOutput) ToManagedInstanceMapOutputWithContext(ctx context.Context) ManagedInstanceMapOutput
- type ManagedInstanceOutput
- func (o ManagedInstanceOutput) AdministratorLogin() pulumi.StringOutput
- func (o ManagedInstanceOutput) AdministratorLoginPassword() pulumi.StringOutput
- func (o ManagedInstanceOutput) Collation() pulumi.StringPtrOutput
- func (o ManagedInstanceOutput) DnsZonePartnerId() pulumi.StringPtrOutput
- func (ManagedInstanceOutput) ElementType() reflect.Type
- func (o ManagedInstanceOutput) Fqdn() pulumi.StringOutput
- func (o ManagedInstanceOutput) Identity() ManagedInstanceIdentityPtrOutput
- func (o ManagedInstanceOutput) LicenseType() pulumi.StringOutput
- func (o ManagedInstanceOutput) Location() pulumi.StringOutput
- func (o ManagedInstanceOutput) MinimumTlsVersion() pulumi.StringPtrOutput
- func (o ManagedInstanceOutput) Name() pulumi.StringOutput
- func (o ManagedInstanceOutput) ProxyOverride() pulumi.StringPtrOutput
- func (o ManagedInstanceOutput) PublicDataEndpointEnabled() pulumi.BoolPtrOutput
- func (o ManagedInstanceOutput) ResourceGroupName() pulumi.StringOutput
- func (o ManagedInstanceOutput) SkuName() pulumi.StringOutput
- func (o ManagedInstanceOutput) StorageAccountType() pulumi.StringPtrOutput
- func (o ManagedInstanceOutput) StorageSizeInGb() pulumi.IntOutput
- func (o ManagedInstanceOutput) SubnetId() pulumi.StringOutput
- func (o ManagedInstanceOutput) Tags() pulumi.StringMapOutput
- func (o ManagedInstanceOutput) TimezoneId() pulumi.StringPtrOutput
- func (o ManagedInstanceOutput) ToManagedInstanceOutput() ManagedInstanceOutput
- func (o ManagedInstanceOutput) ToManagedInstanceOutputWithContext(ctx context.Context) ManagedInstanceOutput
- func (o ManagedInstanceOutput) Vcores() pulumi.IntOutput
- type ManagedInstanceState
- type SqlServer
- type SqlServerArgs
- type SqlServerArray
- type SqlServerArrayInput
- type SqlServerArrayOutput
- func (SqlServerArrayOutput) ElementType() reflect.Type
- func (o SqlServerArrayOutput) Index(i pulumi.IntInput) SqlServerOutput
- func (o SqlServerArrayOutput) ToSqlServerArrayOutput() SqlServerArrayOutput
- func (o SqlServerArrayOutput) ToSqlServerArrayOutputWithContext(ctx context.Context) SqlServerArrayOutput
- type SqlServerIdentity
- type SqlServerIdentityArgs
- func (SqlServerIdentityArgs) ElementType() reflect.Type
- func (i SqlServerIdentityArgs) ToSqlServerIdentityOutput() SqlServerIdentityOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- type SqlServerIdentityInput
- type SqlServerIdentityOutput
- func (SqlServerIdentityOutput) ElementType() reflect.Type
- func (o SqlServerIdentityOutput) PrincipalId() pulumi.StringPtrOutput
- func (o SqlServerIdentityOutput) TenantId() pulumi.StringPtrOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityOutput() SqlServerIdentityOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- func (o SqlServerIdentityOutput) Type() pulumi.StringOutput
- type SqlServerIdentityPtrInput
- type SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) Elem() SqlServerIdentityOutput
- func (SqlServerIdentityPtrOutput) ElementType() reflect.Type
- func (o SqlServerIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
- func (o SqlServerIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
- func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
- func (o SqlServerIdentityPtrOutput) Type() pulumi.StringPtrOutput
- type SqlServerInput
- type SqlServerMap
- type SqlServerMapInput
- type SqlServerMapOutput
- type SqlServerOutput
- func (o SqlServerOutput) AdministratorLogin() pulumi.StringOutput
- func (o SqlServerOutput) AdministratorLoginPassword() pulumi.StringOutput
- func (o SqlServerOutput) ConnectionPolicy() pulumi.StringPtrOutput
- func (SqlServerOutput) ElementType() reflect.Type
- func (o SqlServerOutput) FullyQualifiedDomainName() pulumi.StringOutput
- func (o SqlServerOutput) Identity() SqlServerIdentityPtrOutput
- func (o SqlServerOutput) Location() pulumi.StringOutput
- func (o SqlServerOutput) Name() pulumi.StringOutput
- func (o SqlServerOutput) ResourceGroupName() pulumi.StringOutput
- func (o SqlServerOutput) Tags() pulumi.StringMapOutput
- func (o SqlServerOutput) ThreatDetectionPolicy() SqlServerThreatDetectionPolicyOutput
- func (o SqlServerOutput) ToSqlServerOutput() SqlServerOutput
- func (o SqlServerOutput) ToSqlServerOutputWithContext(ctx context.Context) SqlServerOutput
- func (o SqlServerOutput) Version() pulumi.StringOutput
- type SqlServerState
- type SqlServerThreatDetectionPolicy
- type SqlServerThreatDetectionPolicyArgs
- func (SqlServerThreatDetectionPolicyArgs) ElementType() reflect.Type
- func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutput() SqlServerThreatDetectionPolicyOutput
- func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyOutput
- func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
- func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
- type SqlServerThreatDetectionPolicyInput
- type SqlServerThreatDetectionPolicyOutput
- func (o SqlServerThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (SqlServerThreatDetectionPolicyOutput) ElementType() reflect.Type
- func (o SqlServerThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.BoolPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o SqlServerThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutput() SqlServerThreatDetectionPolicyOutput
- func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyOutput
- func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
- func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
- type SqlServerThreatDetectionPolicyPtrInput
- type SqlServerThreatDetectionPolicyPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) Elem() SqlServerThreatDetectionPolicyOutput
- func (SqlServerThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
- func (o SqlServerThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.BoolPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
- func (o SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
- type VirtualNetworkRule
- type VirtualNetworkRuleArgs
- type VirtualNetworkRuleArray
- type VirtualNetworkRuleArrayInput
- type VirtualNetworkRuleArrayOutput
- func (VirtualNetworkRuleArrayOutput) ElementType() reflect.Type
- func (o VirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) VirtualNetworkRuleOutput
- func (o VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutput() VirtualNetworkRuleArrayOutput
- func (o VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) VirtualNetworkRuleArrayOutput
- type VirtualNetworkRuleInput
- type VirtualNetworkRuleMap
- type VirtualNetworkRuleMapInput
- type VirtualNetworkRuleMapOutput
- func (VirtualNetworkRuleMapOutput) ElementType() reflect.Type
- func (o VirtualNetworkRuleMapOutput) MapIndex(k pulumi.StringInput) VirtualNetworkRuleOutput
- func (o VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutput() VirtualNetworkRuleMapOutput
- func (o VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutputWithContext(ctx context.Context) VirtualNetworkRuleMapOutput
- type VirtualNetworkRuleOutput
- func (VirtualNetworkRuleOutput) ElementType() reflect.Type
- func (o VirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint() pulumi.BoolPtrOutput
- func (o VirtualNetworkRuleOutput) Name() pulumi.StringOutput
- func (o VirtualNetworkRuleOutput) ResourceGroupName() pulumi.StringOutput
- func (o VirtualNetworkRuleOutput) ServerName() pulumi.StringOutput
- func (o VirtualNetworkRuleOutput) SubnetId() pulumi.StringOutput
- func (o VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutput() VirtualNetworkRuleOutput
- func (o VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutputWithContext(ctx context.Context) VirtualNetworkRuleOutput
- type VirtualNetworkRuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveDirectoryAdministrator ¶
type ActiveDirectoryAdministrator struct { pulumi.CustomResourceState // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). AzureadAuthenticationOnly pulumi.BoolOutput `pulumi:"azureadAuthenticationOnly"` // The login name of the principal to set as the server administrator Login pulumi.StringOutput `pulumi:"login"` // The ID of the principal to set as the server administrator ObjectId pulumi.StringOutput `pulumi:"objectId"` // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The Azure Tenant ID TenantId pulumi.StringOutput `pulumi:"tenantId"` }
Allows you to set a user or group as the AD administrator for an Azure SQL server.
> **Note:** The `sql.ActiveDirectoryAdministrator` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `azureadAdministrator` block of the `mssql.Server` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("4dm1n157r470r"), AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"), }) if err != nil { return err } _, err = sql.NewActiveDirectoryAdministrator(ctx, "exampleActiveDirectoryAdministrator", &sql.ActiveDirectoryAdministratorArgs{ ServerName: exampleSqlServer.Name, ResourceGroupName: exampleResourceGroup.Name, Login: pulumi.String("sqladmin"), TenantId: *pulumi.String(current.TenantId), ObjectId: *pulumi.String(current.ObjectId), }) if err != nil { return err } return nil }) }
```
## Import
A SQL Active Directory Administrator can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/activeDirectoryAdministrator:ActiveDirectoryAdministrator administrator /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/administrators/activeDirectory
```
func GetActiveDirectoryAdministrator ¶
func GetActiveDirectoryAdministrator(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ActiveDirectoryAdministratorState, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error)
GetActiveDirectoryAdministrator gets an existing ActiveDirectoryAdministrator resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewActiveDirectoryAdministrator ¶
func NewActiveDirectoryAdministrator(ctx *pulumi.Context, name string, args *ActiveDirectoryAdministratorArgs, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error)
NewActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
func (*ActiveDirectoryAdministrator) ElementType ¶
func (*ActiveDirectoryAdministrator) ElementType() reflect.Type
func (*ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutput ¶
func (i *ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutput() ActiveDirectoryAdministratorOutput
func (*ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutputWithContext ¶
func (i *ActiveDirectoryAdministrator) ToActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorOutput
type ActiveDirectoryAdministratorArgs ¶
type ActiveDirectoryAdministratorArgs struct { // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). AzureadAuthenticationOnly pulumi.BoolPtrInput // The login name of the principal to set as the server administrator Login pulumi.StringInput // The ID of the principal to set as the server administrator ObjectId pulumi.StringInput // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The Azure Tenant ID TenantId pulumi.StringInput }
The set of arguments for constructing a ActiveDirectoryAdministrator resource.
func (ActiveDirectoryAdministratorArgs) ElementType ¶
func (ActiveDirectoryAdministratorArgs) ElementType() reflect.Type
type ActiveDirectoryAdministratorArray ¶
type ActiveDirectoryAdministratorArray []ActiveDirectoryAdministratorInput
func (ActiveDirectoryAdministratorArray) ElementType ¶
func (ActiveDirectoryAdministratorArray) ElementType() reflect.Type
func (ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutput ¶
func (i ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutput() ActiveDirectoryAdministratorArrayOutput
func (ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutputWithContext ¶
func (i ActiveDirectoryAdministratorArray) ToActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorArrayOutput
type ActiveDirectoryAdministratorArrayInput ¶
type ActiveDirectoryAdministratorArrayInput interface { pulumi.Input ToActiveDirectoryAdministratorArrayOutput() ActiveDirectoryAdministratorArrayOutput ToActiveDirectoryAdministratorArrayOutputWithContext(context.Context) ActiveDirectoryAdministratorArrayOutput }
ActiveDirectoryAdministratorArrayInput is an input type that accepts ActiveDirectoryAdministratorArray and ActiveDirectoryAdministratorArrayOutput values. You can construct a concrete instance of `ActiveDirectoryAdministratorArrayInput` via:
ActiveDirectoryAdministratorArray{ ActiveDirectoryAdministratorArgs{...} }
type ActiveDirectoryAdministratorArrayOutput ¶
type ActiveDirectoryAdministratorArrayOutput struct{ *pulumi.OutputState }
func (ActiveDirectoryAdministratorArrayOutput) ElementType ¶
func (ActiveDirectoryAdministratorArrayOutput) ElementType() reflect.Type
func (ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutput ¶
func (o ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutput() ActiveDirectoryAdministratorArrayOutput
func (ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutputWithContext ¶
func (o ActiveDirectoryAdministratorArrayOutput) ToActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorArrayOutput
type ActiveDirectoryAdministratorInput ¶
type ActiveDirectoryAdministratorInput interface { pulumi.Input ToActiveDirectoryAdministratorOutput() ActiveDirectoryAdministratorOutput ToActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorOutput }
type ActiveDirectoryAdministratorMap ¶
type ActiveDirectoryAdministratorMap map[string]ActiveDirectoryAdministratorInput
func (ActiveDirectoryAdministratorMap) ElementType ¶
func (ActiveDirectoryAdministratorMap) ElementType() reflect.Type
func (ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutput ¶
func (i ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutput() ActiveDirectoryAdministratorMapOutput
func (ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutputWithContext ¶
func (i ActiveDirectoryAdministratorMap) ToActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorMapOutput
type ActiveDirectoryAdministratorMapInput ¶
type ActiveDirectoryAdministratorMapInput interface { pulumi.Input ToActiveDirectoryAdministratorMapOutput() ActiveDirectoryAdministratorMapOutput ToActiveDirectoryAdministratorMapOutputWithContext(context.Context) ActiveDirectoryAdministratorMapOutput }
ActiveDirectoryAdministratorMapInput is an input type that accepts ActiveDirectoryAdministratorMap and ActiveDirectoryAdministratorMapOutput values. You can construct a concrete instance of `ActiveDirectoryAdministratorMapInput` via:
ActiveDirectoryAdministratorMap{ "key": ActiveDirectoryAdministratorArgs{...} }
type ActiveDirectoryAdministratorMapOutput ¶
type ActiveDirectoryAdministratorMapOutput struct{ *pulumi.OutputState }
func (ActiveDirectoryAdministratorMapOutput) ElementType ¶
func (ActiveDirectoryAdministratorMapOutput) ElementType() reflect.Type
func (ActiveDirectoryAdministratorMapOutput) MapIndex ¶
func (o ActiveDirectoryAdministratorMapOutput) MapIndex(k pulumi.StringInput) ActiveDirectoryAdministratorOutput
func (ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutput ¶
func (o ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutput() ActiveDirectoryAdministratorMapOutput
func (ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutputWithContext ¶
func (o ActiveDirectoryAdministratorMapOutput) ToActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorMapOutput
type ActiveDirectoryAdministratorOutput ¶
type ActiveDirectoryAdministratorOutput struct{ *pulumi.OutputState }
func (ActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly() pulumi.BoolOutput
Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`).
func (ActiveDirectoryAdministratorOutput) ElementType ¶
func (ActiveDirectoryAdministratorOutput) ElementType() reflect.Type
func (ActiveDirectoryAdministratorOutput) Login ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) Login() pulumi.StringOutput
The login name of the principal to set as the server administrator
func (ActiveDirectoryAdministratorOutput) ObjectId ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) ObjectId() pulumi.StringOutput
The ID of the principal to set as the server administrator
func (ActiveDirectoryAdministratorOutput) ResourceGroupName ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group for the SQL server. Changing this forces a new resource to be created.
func (ActiveDirectoryAdministratorOutput) ServerName ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) ServerName() pulumi.StringOutput
The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created.
func (ActiveDirectoryAdministratorOutput) TenantId ¶ added in v5.5.0
func (o ActiveDirectoryAdministratorOutput) TenantId() pulumi.StringOutput
The Azure Tenant ID
func (ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutput ¶
func (o ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutput() ActiveDirectoryAdministratorOutput
func (ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutputWithContext ¶
func (o ActiveDirectoryAdministratorOutput) ToActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ActiveDirectoryAdministratorOutput
type ActiveDirectoryAdministratorState ¶
type ActiveDirectoryAdministratorState struct { // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). AzureadAuthenticationOnly pulumi.BoolPtrInput // The login name of the principal to set as the server administrator Login pulumi.StringPtrInput // The ID of the principal to set as the server administrator ObjectId pulumi.StringPtrInput // The name of the resource group for the SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to set the administrator. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The Azure Tenant ID TenantId pulumi.StringPtrInput }
func (ActiveDirectoryAdministratorState) ElementType ¶
func (ActiveDirectoryAdministratorState) ElementType() reflect.Type
type Database ¶
type Database struct { pulumi.CustomResourceState // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringOutput `pulumi:"collation"` // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrOutput `pulumi:"createMode"` // The creation date of the SQL Database. CreationDate pulumi.StringOutput `pulumi:"creationDate"` // The default secondary location of the SQL Database. DefaultSecondaryLocation pulumi.StringOutput `pulumi:"defaultSecondaryLocation"` // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). Edition pulumi.StringOutput `pulumi:"edition"` // The name of the elastic database pool. ElasticPoolName pulumi.StringOutput `pulumi:"elasticPoolName"` Encryption pulumi.StringOutput `pulumi:"encryption"` // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrOutput `pulumi:"import"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). MaxSizeBytes pulumi.StringOutput `pulumi:"maxSizeBytes"` MaxSizeGb pulumi.StringOutput `pulumi:"maxSizeGb"` // The name of the database. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrOutput `pulumi:"readScale"` // A GUID/UUID corresponding to a configured Service Level Objective for the Azure SQL database which can be used to configure a performance level. // . RequestedServiceObjectiveId pulumi.StringOutput `pulumi:"requestedServiceObjectiveId"` // The service objective name for the database. Valid values depend on edition and location and may include `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. You can list the available names with the CLI: `shell az sql db list-editions -l westus -o table`. For further information please see [Azure CLI - az sql db](https://docs.microsoft.com/cli/azure/sql/db?view=azure-cli-latest#az-sql-db-list-editions). RequestedServiceObjectiveName pulumi.StringOutput `pulumi:"requestedServiceObjectiveName"` // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore`, it should be provided in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) format, e.g. `2013-11-08T22:00:40Z`. RestorePointInTime pulumi.StringOutput `pulumi:"restorePointInTime"` // The name of the SQL Server on which to create the database. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringOutput `pulumi:"sourceDatabaseDeletionDate"` // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringOutput `pulumi:"sourceDatabaseId"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyOutput `pulumi:"threatDetectionPolicy"` // Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. ZoneRedundant pulumi.BoolPtrOutput `pulumi:"zoneRedundant"` }
Allows you to manage an Azure SQL Database
> **Note:** The `sql.Database` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.Database` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("4dm1n157r470r"), AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"), Tags: pulumi.StringMap{ "environment": pulumi.String("production"), }, }) if err != nil { return err } _, err = storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), }) if err != nil { return err } _, err = sql.NewDatabase(ctx, "exampleDatabase", &sql.DatabaseArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, ServerName: exampleSqlServer.Name, Tags: pulumi.StringMap{ "environment": pulumi.String("production"), }, }) if err != nil { return err } return nil }) }
```
## Import
SQL Databases can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/database:Database database1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/databases/database1
```
func GetDatabase ¶
func GetDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *DatabaseState, opts ...pulumi.ResourceOption) (*Database, error)
GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewDatabase ¶
func NewDatabase(ctx *pulumi.Context, name string, args *DatabaseArgs, opts ...pulumi.ResourceOption) (*Database, error)
NewDatabase registers a new resource with the given unique name, arguments, and options.
func (*Database) ElementType ¶
func (*Database) ToDatabaseOutput ¶
func (i *Database) ToDatabaseOutput() DatabaseOutput
func (*Database) ToDatabaseOutputWithContext ¶
func (i *Database) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
type DatabaseArgs ¶
type DatabaseArgs struct { // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrInput // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). Edition pulumi.StringPtrInput // The name of the elastic database pool. ElasticPoolName pulumi.StringPtrInput // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). MaxSizeBytes pulumi.StringPtrInput MaxSizeGb pulumi.StringPtrInput // The name of the database. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrInput // A GUID/UUID corresponding to a configured Service Level Objective for the Azure SQL database which can be used to configure a performance level. // . RequestedServiceObjectiveId pulumi.StringPtrInput // The service objective name for the database. Valid values depend on edition and location and may include `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. You can list the available names with the CLI: `shell az sql db list-editions -l westus -o table`. For further information please see [Azure CLI - az sql db](https://docs.microsoft.com/cli/azure/sql/db?view=azure-cli-latest#az-sql-db-list-editions). RequestedServiceObjectiveName pulumi.StringPtrInput // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore`, it should be provided in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) format, e.g. `2013-11-08T22:00:40Z`. RestorePointInTime pulumi.StringPtrInput // The name of the SQL Server on which to create the database. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringPtrInput // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyPtrInput // Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. ZoneRedundant pulumi.BoolPtrInput }
The set of arguments for constructing a Database resource.
func (DatabaseArgs) ElementType ¶
func (DatabaseArgs) ElementType() reflect.Type
type DatabaseArray ¶
type DatabaseArray []DatabaseInput
func (DatabaseArray) ElementType ¶
func (DatabaseArray) ElementType() reflect.Type
func (DatabaseArray) ToDatabaseArrayOutput ¶
func (i DatabaseArray) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArray) ToDatabaseArrayOutputWithContext ¶
func (i DatabaseArray) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseArrayInput ¶
type DatabaseArrayInput interface { pulumi.Input ToDatabaseArrayOutput() DatabaseArrayOutput ToDatabaseArrayOutputWithContext(context.Context) DatabaseArrayOutput }
DatabaseArrayInput is an input type that accepts DatabaseArray and DatabaseArrayOutput values. You can construct a concrete instance of `DatabaseArrayInput` via:
DatabaseArray{ DatabaseArgs{...} }
type DatabaseArrayOutput ¶
type DatabaseArrayOutput struct{ *pulumi.OutputState }
func (DatabaseArrayOutput) ElementType ¶
func (DatabaseArrayOutput) ElementType() reflect.Type
func (DatabaseArrayOutput) Index ¶
func (o DatabaseArrayOutput) Index(i pulumi.IntInput) DatabaseOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutput ¶
func (o DatabaseArrayOutput) ToDatabaseArrayOutput() DatabaseArrayOutput
func (DatabaseArrayOutput) ToDatabaseArrayOutputWithContext ¶
func (o DatabaseArrayOutput) ToDatabaseArrayOutputWithContext(ctx context.Context) DatabaseArrayOutput
type DatabaseImport ¶
type DatabaseImport struct { // Specifies the name of the SQL administrator. AdministratorLogin string `pulumi:"administratorLogin"` // Specifies the password of the SQL administrator. AdministratorLoginPassword string `pulumi:"administratorLoginPassword"` // Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`. AuthenticationType string `pulumi:"authenticationType"` // Specifies the type of import operation being performed. The only allowable value is `Import`. OperationMode *string `pulumi:"operationMode"` // Specifies the access key for the storage account. StorageKey string `pulumi:"storageKey"` // Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`. StorageKeyType string `pulumi:"storageKeyType"` // Specifies the blob URI of the .bacpac file. StorageUri string `pulumi:"storageUri"` }
type DatabaseImportArgs ¶
type DatabaseImportArgs struct { // Specifies the name of the SQL administrator. AdministratorLogin pulumi.StringInput `pulumi:"administratorLogin"` // Specifies the password of the SQL administrator. AdministratorLoginPassword pulumi.StringInput `pulumi:"administratorLoginPassword"` // Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`. AuthenticationType pulumi.StringInput `pulumi:"authenticationType"` // Specifies the type of import operation being performed. The only allowable value is `Import`. OperationMode pulumi.StringPtrInput `pulumi:"operationMode"` // Specifies the access key for the storage account. StorageKey pulumi.StringInput `pulumi:"storageKey"` // Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`. StorageKeyType pulumi.StringInput `pulumi:"storageKeyType"` // Specifies the blob URI of the .bacpac file. StorageUri pulumi.StringInput `pulumi:"storageUri"` }
func (DatabaseImportArgs) ElementType ¶
func (DatabaseImportArgs) ElementType() reflect.Type
func (DatabaseImportArgs) ToDatabaseImportOutput ¶
func (i DatabaseImportArgs) ToDatabaseImportOutput() DatabaseImportOutput
func (DatabaseImportArgs) ToDatabaseImportOutputWithContext ¶
func (i DatabaseImportArgs) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
func (DatabaseImportArgs) ToDatabaseImportPtrOutput ¶
func (i DatabaseImportArgs) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext ¶
func (i DatabaseImportArgs) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseImportInput ¶
type DatabaseImportInput interface { pulumi.Input ToDatabaseImportOutput() DatabaseImportOutput ToDatabaseImportOutputWithContext(context.Context) DatabaseImportOutput }
DatabaseImportInput is an input type that accepts DatabaseImportArgs and DatabaseImportOutput values. You can construct a concrete instance of `DatabaseImportInput` via:
DatabaseImportArgs{...}
type DatabaseImportOutput ¶
type DatabaseImportOutput struct{ *pulumi.OutputState }
func (DatabaseImportOutput) AdministratorLogin ¶
func (o DatabaseImportOutput) AdministratorLogin() pulumi.StringOutput
Specifies the name of the SQL administrator.
func (DatabaseImportOutput) AdministratorLoginPassword ¶
func (o DatabaseImportOutput) AdministratorLoginPassword() pulumi.StringOutput
Specifies the password of the SQL administrator.
func (DatabaseImportOutput) AuthenticationType ¶
func (o DatabaseImportOutput) AuthenticationType() pulumi.StringOutput
Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
func (DatabaseImportOutput) ElementType ¶
func (DatabaseImportOutput) ElementType() reflect.Type
func (DatabaseImportOutput) OperationMode ¶
func (o DatabaseImportOutput) OperationMode() pulumi.StringPtrOutput
Specifies the type of import operation being performed. The only allowable value is `Import`.
func (DatabaseImportOutput) StorageKey ¶
func (o DatabaseImportOutput) StorageKey() pulumi.StringOutput
Specifies the access key for the storage account.
func (DatabaseImportOutput) StorageKeyType ¶
func (o DatabaseImportOutput) StorageKeyType() pulumi.StringOutput
Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
func (DatabaseImportOutput) StorageUri ¶
func (o DatabaseImportOutput) StorageUri() pulumi.StringOutput
Specifies the blob URI of the .bacpac file.
func (DatabaseImportOutput) ToDatabaseImportOutput ¶
func (o DatabaseImportOutput) ToDatabaseImportOutput() DatabaseImportOutput
func (DatabaseImportOutput) ToDatabaseImportOutputWithContext ¶
func (o DatabaseImportOutput) ToDatabaseImportOutputWithContext(ctx context.Context) DatabaseImportOutput
func (DatabaseImportOutput) ToDatabaseImportPtrOutput ¶
func (o DatabaseImportOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext ¶
func (o DatabaseImportOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseImportPtrInput ¶
type DatabaseImportPtrInput interface { pulumi.Input ToDatabaseImportPtrOutput() DatabaseImportPtrOutput ToDatabaseImportPtrOutputWithContext(context.Context) DatabaseImportPtrOutput }
DatabaseImportPtrInput is an input type that accepts DatabaseImportArgs, DatabaseImportPtr and DatabaseImportPtrOutput values. You can construct a concrete instance of `DatabaseImportPtrInput` via:
DatabaseImportArgs{...} or: nil
func DatabaseImportPtr ¶
func DatabaseImportPtr(v *DatabaseImportArgs) DatabaseImportPtrInput
type DatabaseImportPtrOutput ¶
type DatabaseImportPtrOutput struct{ *pulumi.OutputState }
func (DatabaseImportPtrOutput) AdministratorLogin ¶
func (o DatabaseImportPtrOutput) AdministratorLogin() pulumi.StringPtrOutput
Specifies the name of the SQL administrator.
func (DatabaseImportPtrOutput) AdministratorLoginPassword ¶
func (o DatabaseImportPtrOutput) AdministratorLoginPassword() pulumi.StringPtrOutput
Specifies the password of the SQL administrator.
func (DatabaseImportPtrOutput) AuthenticationType ¶
func (o DatabaseImportPtrOutput) AuthenticationType() pulumi.StringPtrOutput
Specifies the type of authentication used to access the server. Valid values are `SQL` or `ADPassword`.
func (DatabaseImportPtrOutput) Elem ¶
func (o DatabaseImportPtrOutput) Elem() DatabaseImportOutput
func (DatabaseImportPtrOutput) ElementType ¶
func (DatabaseImportPtrOutput) ElementType() reflect.Type
func (DatabaseImportPtrOutput) OperationMode ¶
func (o DatabaseImportPtrOutput) OperationMode() pulumi.StringPtrOutput
Specifies the type of import operation being performed. The only allowable value is `Import`.
func (DatabaseImportPtrOutput) StorageKey ¶
func (o DatabaseImportPtrOutput) StorageKey() pulumi.StringPtrOutput
Specifies the access key for the storage account.
func (DatabaseImportPtrOutput) StorageKeyType ¶
func (o DatabaseImportPtrOutput) StorageKeyType() pulumi.StringPtrOutput
Specifies the type of access key for the storage account. Valid values are `StorageAccessKey` or `SharedAccessKey`.
func (DatabaseImportPtrOutput) StorageUri ¶
func (o DatabaseImportPtrOutput) StorageUri() pulumi.StringPtrOutput
Specifies the blob URI of the .bacpac file.
func (DatabaseImportPtrOutput) ToDatabaseImportPtrOutput ¶
func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutput() DatabaseImportPtrOutput
func (DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext ¶
func (o DatabaseImportPtrOutput) ToDatabaseImportPtrOutputWithContext(ctx context.Context) DatabaseImportPtrOutput
type DatabaseInput ¶
type DatabaseInput interface { pulumi.Input ToDatabaseOutput() DatabaseOutput ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput }
type DatabaseMap ¶
type DatabaseMap map[string]DatabaseInput
func (DatabaseMap) ElementType ¶
func (DatabaseMap) ElementType() reflect.Type
func (DatabaseMap) ToDatabaseMapOutput ¶
func (i DatabaseMap) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMap) ToDatabaseMapOutputWithContext ¶
func (i DatabaseMap) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseMapInput ¶
type DatabaseMapInput interface { pulumi.Input ToDatabaseMapOutput() DatabaseMapOutput ToDatabaseMapOutputWithContext(context.Context) DatabaseMapOutput }
DatabaseMapInput is an input type that accepts DatabaseMap and DatabaseMapOutput values. You can construct a concrete instance of `DatabaseMapInput` via:
DatabaseMap{ "key": DatabaseArgs{...} }
type DatabaseMapOutput ¶
type DatabaseMapOutput struct{ *pulumi.OutputState }
func (DatabaseMapOutput) ElementType ¶
func (DatabaseMapOutput) ElementType() reflect.Type
func (DatabaseMapOutput) MapIndex ¶
func (o DatabaseMapOutput) MapIndex(k pulumi.StringInput) DatabaseOutput
func (DatabaseMapOutput) ToDatabaseMapOutput ¶
func (o DatabaseMapOutput) ToDatabaseMapOutput() DatabaseMapOutput
func (DatabaseMapOutput) ToDatabaseMapOutputWithContext ¶
func (o DatabaseMapOutput) ToDatabaseMapOutputWithContext(ctx context.Context) DatabaseMapOutput
type DatabaseOutput ¶
type DatabaseOutput struct{ *pulumi.OutputState }
func (DatabaseOutput) Collation ¶ added in v5.5.0
func (o DatabaseOutput) Collation() pulumi.StringOutput
The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created.
func (DatabaseOutput) CreateMode ¶ added in v5.5.0
func (o DatabaseOutput) CreateMode() pulumi.StringPtrOutput
Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/rest/api/sql/databases/createorupdate#createmode)
func (DatabaseOutput) CreationDate ¶ added in v5.5.0
func (o DatabaseOutput) CreationDate() pulumi.StringOutput
The creation date of the SQL Database.
func (DatabaseOutput) DefaultSecondaryLocation ¶ added in v5.5.0
func (o DatabaseOutput) DefaultSecondaryLocation() pulumi.StringOutput
The default secondary location of the SQL Database.
func (DatabaseOutput) Edition ¶ added in v5.5.0
func (o DatabaseOutput) Edition() pulumi.StringOutput
The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql).
func (DatabaseOutput) ElasticPoolName ¶ added in v5.5.0
func (o DatabaseOutput) ElasticPoolName() pulumi.StringOutput
The name of the elastic database pool.
func (DatabaseOutput) ElementType ¶
func (DatabaseOutput) ElementType() reflect.Type
func (DatabaseOutput) Encryption ¶ added in v5.5.0
func (o DatabaseOutput) Encryption() pulumi.StringOutput
func (DatabaseOutput) Import ¶ added in v5.5.0
func (o DatabaseOutput) Import() DatabaseImportPtrOutput
A Database Import block as documented below. `createMode` must be set to `Default`.
func (DatabaseOutput) Location ¶ added in v5.5.0
func (o DatabaseOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (DatabaseOutput) MaxSizeBytes ¶ added in v5.5.0
func (o DatabaseOutput) MaxSizeBytes() pulumi.StringOutput
The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql).
func (DatabaseOutput) MaxSizeGb ¶ added in v5.5.0
func (o DatabaseOutput) MaxSizeGb() pulumi.StringOutput
func (DatabaseOutput) Name ¶ added in v5.5.0
func (o DatabaseOutput) Name() pulumi.StringOutput
The name of the database. Changing this forces a new resource to be created.
func (DatabaseOutput) ReadScale ¶ added in v5.5.0
func (o DatabaseOutput) ReadScale() pulumi.BoolPtrOutput
Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/azure/sql-database/sql-database-read-scale-out).
func (DatabaseOutput) RequestedServiceObjectiveId ¶ added in v5.5.0
func (o DatabaseOutput) RequestedServiceObjectiveId() pulumi.StringOutput
A GUID/UUID corresponding to a configured Service Level Objective for the Azure SQL database which can be used to configure a performance level. .
func (DatabaseOutput) RequestedServiceObjectiveName ¶ added in v5.5.0
func (o DatabaseOutput) RequestedServiceObjectiveName() pulumi.StringOutput
The service objective name for the database. Valid values depend on edition and location and may include `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. You can list the available names with the CLI: `shell az sql db list-editions -l westus -o table`. For further information please see [Azure CLI - az sql db](https://docs.microsoft.com/cli/azure/sql/db?view=azure-cli-latest#az-sql-db-list-editions).
func (DatabaseOutput) ResourceGroupName ¶ added in v5.5.0
func (o DatabaseOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. Changing this forces a new resource to be created.
func (DatabaseOutput) RestorePointInTime ¶ added in v5.5.0
func (o DatabaseOutput) RestorePointInTime() pulumi.StringOutput
The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore`, it should be provided in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) format, e.g. `2013-11-08T22:00:40Z`.
func (DatabaseOutput) ServerName ¶ added in v5.5.0
func (o DatabaseOutput) ServerName() pulumi.StringOutput
The name of the SQL Server on which to create the database. Changing this forces a new resource to be created.
func (DatabaseOutput) SourceDatabaseDeletionDate ¶ added in v5.5.0
func (o DatabaseOutput) SourceDatabaseDeletionDate() pulumi.StringOutput
The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`.
func (DatabaseOutput) SourceDatabaseId ¶ added in v5.5.0
func (o DatabaseOutput) SourceDatabaseId() pulumi.StringOutput
The URI of the source database if `createMode` value is not `Default`.
func (DatabaseOutput) Tags ¶ added in v5.5.0
func (o DatabaseOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (DatabaseOutput) ThreatDetectionPolicy ¶ added in v5.5.0
func (o DatabaseOutput) ThreatDetectionPolicy() DatabaseThreatDetectionPolicyOutput
Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below.
func (DatabaseOutput) ToDatabaseOutput ¶
func (o DatabaseOutput) ToDatabaseOutput() DatabaseOutput
func (DatabaseOutput) ToDatabaseOutputWithContext ¶
func (o DatabaseOutput) ToDatabaseOutputWithContext(ctx context.Context) DatabaseOutput
func (DatabaseOutput) ZoneRedundant ¶ added in v5.5.0
func (o DatabaseOutput) ZoneRedundant() pulumi.BoolPtrOutput
Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.
type DatabaseState ¶
type DatabaseState struct { // The name of the collation. Applies only if `createMode` is `Default`. Azure default is `SQL_LATIN1_GENERAL_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // Specifies how to create the database. Valid values are: `Default`, `Copy`, `OnlineSecondary`, `NonReadableSecondary`, `PointInTimeRestore`, `Recovery`, `Restore` or `RestoreLongTermRetentionBackup`. Must be `Default` to create a new database. Defaults to `Default`. Please see [Azure SQL Database REST API](https://docs.microsoft.com/rest/api/sql/databases/createorupdate#createmode) CreateMode pulumi.StringPtrInput // The creation date of the SQL Database. CreationDate pulumi.StringPtrInput // The default secondary location of the SQL Database. DefaultSecondaryLocation pulumi.StringPtrInput // The edition of the database to be created. Applies only if `createMode` is `Default`. Valid values are: `Basic`, `Standard`, `Premium`, `DataWarehouse`, `Business`, `BusinessCritical`, `Free`, `GeneralPurpose`, `Hyperscale`, `Premium`, `PremiumRS`, `Standard`, `Stretch`, `System`, `System2`, or `Web`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). Edition pulumi.StringPtrInput // The name of the elastic database pool. ElasticPoolName pulumi.StringPtrInput Encryption pulumi.StringPtrInput // A Database Import block as documented below. `createMode` must be set to `Default`. Import DatabaseImportPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The maximum size that the database can grow to. Applies only if `createMode` is `Default`. Please see [Azure SQL database models](https://docs.microsoft.com/azure/azure-sql/database/purchasing-models?view=azuresql). MaxSizeBytes pulumi.StringPtrInput MaxSizeGb pulumi.StringPtrInput // The name of the database. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Read-only connections will be redirected to a high-available replica. Please see [Use read-only replicas to load-balance read-only query workloads](https://docs.microsoft.com/azure/sql-database/sql-database-read-scale-out). ReadScale pulumi.BoolPtrInput // A GUID/UUID corresponding to a configured Service Level Objective for the Azure SQL database which can be used to configure a performance level. // . RequestedServiceObjectiveId pulumi.StringPtrInput // The service objective name for the database. Valid values depend on edition and location and may include `S0`, `S1`, `S2`, `S3`, `P1`, `P2`, `P4`, `P6`, `P11` and `ElasticPool`. You can list the available names with the CLI: `shell az sql db list-editions -l westus -o table`. For further information please see [Azure CLI - az sql db](https://docs.microsoft.com/cli/azure/sql/db?view=azure-cli-latest#az-sql-db-list-editions). RequestedServiceObjectiveName pulumi.StringPtrInput // The name of the resource group in which to create the database. This must be the same as Database Server resource group currently. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The point in time for the restore. Only applies if `createMode` is `PointInTimeRestore`, it should be provided in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) format, e.g. `2013-11-08T22:00:40Z`. RestorePointInTime pulumi.StringPtrInput // The name of the SQL Server on which to create the database. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The deletion date time of the source database. Only applies to deleted databases where `createMode` is `PointInTimeRestore`. SourceDatabaseDeletionDate pulumi.StringPtrInput // The URI of the source database if `createMode` value is not `Default`. SourceDatabaseId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy DatabaseThreatDetectionPolicyPtrInput // Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. ZoneRedundant pulumi.BoolPtrInput }
func (DatabaseState) ElementType ¶
func (DatabaseState) ElementType() reflect.Type
type DatabaseThreatDetectionPolicy ¶
type DatabaseThreatDetectionPolicy struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`. DisabledAlerts []string `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? Possible values are `Disabled` and `Enabled`. EmailAccountAdmins *string `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses []string `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays *int `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`. State *string `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint *string `pulumi:"storageEndpoint"` }
type DatabaseThreatDetectionPolicyArgs ¶
type DatabaseThreatDetectionPolicyArgs struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`. DisabledAlerts pulumi.StringArrayInput `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? Possible values are `Disabled` and `Enabled`. EmailAccountAdmins pulumi.StringPtrInput `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses pulumi.StringArrayInput `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays pulumi.IntPtrInput `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`. State pulumi.StringPtrInput `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey pulumi.StringPtrInput `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint pulumi.StringPtrInput `pulumi:"storageEndpoint"` }
func (DatabaseThreatDetectionPolicyArgs) ElementType ¶
func (DatabaseThreatDetectionPolicyArgs) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput ¶
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext ¶
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput ¶
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶
func (i DatabaseThreatDetectionPolicyArgs) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
type DatabaseThreatDetectionPolicyInput ¶
type DatabaseThreatDetectionPolicyInput interface { pulumi.Input ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput ToDatabaseThreatDetectionPolicyOutputWithContext(context.Context) DatabaseThreatDetectionPolicyOutput }
DatabaseThreatDetectionPolicyInput is an input type that accepts DatabaseThreatDetectionPolicyArgs and DatabaseThreatDetectionPolicyOutput values. You can construct a concrete instance of `DatabaseThreatDetectionPolicyInput` via:
DatabaseThreatDetectionPolicyArgs{...}
type DatabaseThreatDetectionPolicyOutput ¶
type DatabaseThreatDetectionPolicyOutput struct{ *pulumi.OutputState }
func (DatabaseThreatDetectionPolicyOutput) DisabledAlerts ¶
func (o DatabaseThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
func (DatabaseThreatDetectionPolicyOutput) ElementType ¶
func (DatabaseThreatDetectionPolicyOutput) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins ¶
func (o DatabaseThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.StringPtrOutput
Should the account administrators be emailed when this alert is triggered? Possible values are `Disabled` and `Enabled`.
func (DatabaseThreatDetectionPolicyOutput) EmailAddresses ¶
func (o DatabaseThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (DatabaseThreatDetectionPolicyOutput) RetentionDays ¶
func (o DatabaseThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (DatabaseThreatDetectionPolicyOutput) State ¶
func (o DatabaseThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`.
func (DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey ¶
func (o DatabaseThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyOutput) StorageEndpoint ¶
func (o DatabaseThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput ¶
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutput() DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext ¶
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput ¶
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶
func (o DatabaseThreatDetectionPolicyOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
type DatabaseThreatDetectionPolicyPtrInput ¶
type DatabaseThreatDetectionPolicyPtrInput interface { pulumi.Input ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput ToDatabaseThreatDetectionPolicyPtrOutputWithContext(context.Context) DatabaseThreatDetectionPolicyPtrOutput }
DatabaseThreatDetectionPolicyPtrInput is an input type that accepts DatabaseThreatDetectionPolicyArgs, DatabaseThreatDetectionPolicyPtr and DatabaseThreatDetectionPolicyPtrOutput values. You can construct a concrete instance of `DatabaseThreatDetectionPolicyPtrInput` via:
DatabaseThreatDetectionPolicyArgs{...} or: nil
func DatabaseThreatDetectionPolicyPtr ¶
func DatabaseThreatDetectionPolicyPtr(v *DatabaseThreatDetectionPolicyArgs) DatabaseThreatDetectionPolicyPtrInput
type DatabaseThreatDetectionPolicyPtrOutput ¶
type DatabaseThreatDetectionPolicyPtrOutput struct{ *pulumi.OutputState }
func (DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Sql_Injection` and `Sql_Injection_Vulnerability`.
func (DatabaseThreatDetectionPolicyPtrOutput) ElementType ¶
func (DatabaseThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
func (DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.StringPtrOutput
Should the account administrators be emailed when this alert is triggered? Possible values are `Disabled` and `Enabled`.
func (DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (DatabaseThreatDetectionPolicyPtrOutput) RetentionDays ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (DatabaseThreatDetectionPolicyPtrOutput) State ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Enabled`, `Disabled` or `New`.
func (DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutput() DatabaseThreatDetectionPolicyPtrOutput
func (DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext ¶
func (o DatabaseThreatDetectionPolicyPtrOutput) ToDatabaseThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) DatabaseThreatDetectionPolicyPtrOutput
type ElasticPool ¶
type ElasticPool struct { pulumi.CustomResourceState // The creation date of the SQL Elastic Pool. CreationDate pulumi.StringOutput `pulumi:"creationDate"` // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntOutput `pulumi:"dbDtuMax"` // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntOutput `pulumi:"dbDtuMin"` // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntOutput `pulumi:"dtu"` // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringOutput `pulumi:"edition"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntOutput `pulumi:"poolSize"` // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Allows you to manage an Azure SQL Elastic Pool.
> **Note:** The `sql.ElasticPool` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.ElasticPool` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("4dm1n157r470r"), AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"), }) if err != nil { return err } _, err = sql.NewElasticPool(ctx, "exampleElasticPool", &sql.ElasticPoolArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, ServerName: exampleSqlServer.Name, Edition: pulumi.String("Basic"), Dtu: pulumi.Int(50), DbDtuMin: pulumi.Int(0), DbDtuMax: pulumi.Int(5), PoolSize: pulumi.Int(5000), }) if err != nil { return err } return nil }) }
```
> **NOTE on `sql.ElasticPool`:** - The values of `edition`, `dtu`, and `poolSize` must be consistent with the [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). Any inconsistent argument configuration will be rejected.
## Import
SQL Elastic Pool's can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/elasticPool:ElasticPool pool1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/elasticPools/pool1
```
func GetElasticPool ¶
func GetElasticPool(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ElasticPoolState, opts ...pulumi.ResourceOption) (*ElasticPool, error)
GetElasticPool gets an existing ElasticPool resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewElasticPool ¶
func NewElasticPool(ctx *pulumi.Context, name string, args *ElasticPoolArgs, opts ...pulumi.ResourceOption) (*ElasticPool, error)
NewElasticPool registers a new resource with the given unique name, arguments, and options.
func (*ElasticPool) ElementType ¶
func (*ElasticPool) ElementType() reflect.Type
func (*ElasticPool) ToElasticPoolOutput ¶
func (i *ElasticPool) ToElasticPoolOutput() ElasticPoolOutput
func (*ElasticPool) ToElasticPoolOutputWithContext ¶
func (i *ElasticPool) ToElasticPoolOutputWithContext(ctx context.Context) ElasticPoolOutput
type ElasticPoolArgs ¶
type ElasticPoolArgs struct { // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntPtrInput // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntPtrInput // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntInput // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntPtrInput // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a ElasticPool resource.
func (ElasticPoolArgs) ElementType ¶
func (ElasticPoolArgs) ElementType() reflect.Type
type ElasticPoolArray ¶
type ElasticPoolArray []ElasticPoolInput
func (ElasticPoolArray) ElementType ¶
func (ElasticPoolArray) ElementType() reflect.Type
func (ElasticPoolArray) ToElasticPoolArrayOutput ¶
func (i ElasticPoolArray) ToElasticPoolArrayOutput() ElasticPoolArrayOutput
func (ElasticPoolArray) ToElasticPoolArrayOutputWithContext ¶
func (i ElasticPoolArray) ToElasticPoolArrayOutputWithContext(ctx context.Context) ElasticPoolArrayOutput
type ElasticPoolArrayInput ¶
type ElasticPoolArrayInput interface { pulumi.Input ToElasticPoolArrayOutput() ElasticPoolArrayOutput ToElasticPoolArrayOutputWithContext(context.Context) ElasticPoolArrayOutput }
ElasticPoolArrayInput is an input type that accepts ElasticPoolArray and ElasticPoolArrayOutput values. You can construct a concrete instance of `ElasticPoolArrayInput` via:
ElasticPoolArray{ ElasticPoolArgs{...} }
type ElasticPoolArrayOutput ¶
type ElasticPoolArrayOutput struct{ *pulumi.OutputState }
func (ElasticPoolArrayOutput) ElementType ¶
func (ElasticPoolArrayOutput) ElementType() reflect.Type
func (ElasticPoolArrayOutput) Index ¶
func (o ElasticPoolArrayOutput) Index(i pulumi.IntInput) ElasticPoolOutput
func (ElasticPoolArrayOutput) ToElasticPoolArrayOutput ¶
func (o ElasticPoolArrayOutput) ToElasticPoolArrayOutput() ElasticPoolArrayOutput
func (ElasticPoolArrayOutput) ToElasticPoolArrayOutputWithContext ¶
func (o ElasticPoolArrayOutput) ToElasticPoolArrayOutputWithContext(ctx context.Context) ElasticPoolArrayOutput
type ElasticPoolInput ¶
type ElasticPoolInput interface { pulumi.Input ToElasticPoolOutput() ElasticPoolOutput ToElasticPoolOutputWithContext(ctx context.Context) ElasticPoolOutput }
type ElasticPoolMap ¶
type ElasticPoolMap map[string]ElasticPoolInput
func (ElasticPoolMap) ElementType ¶
func (ElasticPoolMap) ElementType() reflect.Type
func (ElasticPoolMap) ToElasticPoolMapOutput ¶
func (i ElasticPoolMap) ToElasticPoolMapOutput() ElasticPoolMapOutput
func (ElasticPoolMap) ToElasticPoolMapOutputWithContext ¶
func (i ElasticPoolMap) ToElasticPoolMapOutputWithContext(ctx context.Context) ElasticPoolMapOutput
type ElasticPoolMapInput ¶
type ElasticPoolMapInput interface { pulumi.Input ToElasticPoolMapOutput() ElasticPoolMapOutput ToElasticPoolMapOutputWithContext(context.Context) ElasticPoolMapOutput }
ElasticPoolMapInput is an input type that accepts ElasticPoolMap and ElasticPoolMapOutput values. You can construct a concrete instance of `ElasticPoolMapInput` via:
ElasticPoolMap{ "key": ElasticPoolArgs{...} }
type ElasticPoolMapOutput ¶
type ElasticPoolMapOutput struct{ *pulumi.OutputState }
func (ElasticPoolMapOutput) ElementType ¶
func (ElasticPoolMapOutput) ElementType() reflect.Type
func (ElasticPoolMapOutput) MapIndex ¶
func (o ElasticPoolMapOutput) MapIndex(k pulumi.StringInput) ElasticPoolOutput
func (ElasticPoolMapOutput) ToElasticPoolMapOutput ¶
func (o ElasticPoolMapOutput) ToElasticPoolMapOutput() ElasticPoolMapOutput
func (ElasticPoolMapOutput) ToElasticPoolMapOutputWithContext ¶
func (o ElasticPoolMapOutput) ToElasticPoolMapOutputWithContext(ctx context.Context) ElasticPoolMapOutput
type ElasticPoolOutput ¶
type ElasticPoolOutput struct{ *pulumi.OutputState }
func (ElasticPoolOutput) CreationDate ¶ added in v5.5.0
func (o ElasticPoolOutput) CreationDate() pulumi.StringOutput
The creation date of the SQL Elastic Pool.
func (ElasticPoolOutput) DbDtuMax ¶ added in v5.5.0
func (o ElasticPoolOutput) DbDtuMax() pulumi.IntOutput
The maximum DTU which will be guaranteed to all databases in the elastic pool to be created.
func (ElasticPoolOutput) DbDtuMin ¶ added in v5.5.0
func (o ElasticPoolOutput) DbDtuMin() pulumi.IntOutput
The minimum DTU which will be guaranteed to all databases in the elastic pool to be created.
func (ElasticPoolOutput) Dtu ¶ added in v5.5.0
func (o ElasticPoolOutput) Dtu() pulumi.IntOutput
The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations.
func (ElasticPoolOutput) Edition ¶ added in v5.5.0
func (o ElasticPoolOutput) Edition() pulumi.StringOutput
The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created.
func (ElasticPoolOutput) ElementType ¶
func (ElasticPoolOutput) ElementType() reflect.Type
func (ElasticPoolOutput) Location ¶ added in v5.5.0
func (o ElasticPoolOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (ElasticPoolOutput) Name ¶ added in v5.5.0
func (o ElasticPoolOutput) Name() pulumi.StringOutput
The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created.
func (ElasticPoolOutput) PoolSize ¶ added in v5.5.0
func (o ElasticPoolOutput) PoolSize() pulumi.IntOutput
The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`.
func (ElasticPoolOutput) ResourceGroupName ¶ added in v5.5.0
func (o ElasticPoolOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. Changing this forces a new resource to be created.
func (ElasticPoolOutput) ServerName ¶ added in v5.5.0
func (o ElasticPoolOutput) ServerName() pulumi.StringOutput
The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created.
func (ElasticPoolOutput) Tags ¶ added in v5.5.0
func (o ElasticPoolOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (ElasticPoolOutput) ToElasticPoolOutput ¶
func (o ElasticPoolOutput) ToElasticPoolOutput() ElasticPoolOutput
func (ElasticPoolOutput) ToElasticPoolOutputWithContext ¶
func (o ElasticPoolOutput) ToElasticPoolOutputWithContext(ctx context.Context) ElasticPoolOutput
type ElasticPoolState ¶
type ElasticPoolState struct { // The creation date of the SQL Elastic Pool. CreationDate pulumi.StringPtrInput // The maximum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMax pulumi.IntPtrInput // The minimum DTU which will be guaranteed to all databases in the elastic pool to be created. DbDtuMin pulumi.IntPtrInput // The total shared DTU for the elastic pool. Valid values depend on the `edition` which has been defined. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for valid combinations. Dtu pulumi.IntPtrInput // The edition of the elastic pool to be created. Valid values are `Basic`, `Standard`, and `Premium`. Refer to [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus) for details. Changing this forces a new resource to be created. Edition pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the elastic pool. This needs to be globally unique. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The maximum size in MB that all databases in the elastic pool can grow to. The maximum size must be consistent with combination of `edition` and `dtu` and the limits documented in [Azure SQL Database Service Tiers](https://docs.microsoft.com/en-gb/azure/sql-database/sql-database-service-tiers#elastic-pool-service-tiers-and-performance-in-edtus). If not defined when creating an elastic pool, the value is set to the size implied by `edition` and `dtu`. PoolSize pulumi.IntPtrInput // The name of the resource group in which to create the elastic pool. This must be the same as the resource group of the underlying SQL server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to create the elastic pool. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (ElasticPoolState) ElementType ¶
func (ElasticPoolState) ElementType() reflect.Type
type FailoverGroup ¶
type FailoverGroup struct { pulumi.CustomResourceState // A list of database ids to add to the failover group // // > **NOTE:** The failover group will create a secondary database for each database listed in `databases`. If the secondary databases need to be managed through this provider, they should be defined as resources and a dependency added to the failover group to ensure the secondary databases are created first. Databases pulumi.StringArrayOutput `pulumi:"databases"` // the location of the failover group. Location pulumi.StringOutput `pulumi:"location"` // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayOutput `pulumi:"partnerServers"` // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyOutput `pulumi:"readWriteEndpointFailoverPolicy"` // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyOutput `pulumi:"readonlyEndpointFailoverPolicy"` // The name of the resource group containing the SQL server Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // local replication role of the failover group instance. Role pulumi.StringOutput `pulumi:"role"` // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Create a failover group of databases on a collection of Azure SQL servers.
> **Note:** The `sql.FailoverGroup` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.FailoverGroup` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } primary, err := sql.NewSqlServer(ctx, "primary", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("sqladmin"), AdministratorLoginPassword: pulumi.String("pa$$w0rd"), }) if err != nil { return err } secondary, err := sql.NewSqlServer(ctx, "secondary", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("sqladmin"), AdministratorLoginPassword: pulumi.String("pa$$w0rd"), }) if err != nil { return err } db1, err := sql.NewDatabase(ctx, "db1", &sql.DatabaseArgs{ ResourceGroupName: primary.ResourceGroupName, Location: primary.Location, ServerName: primary.Name, }) if err != nil { return err } _, err = sql.NewFailoverGroup(ctx, "exampleFailoverGroup", &sql.FailoverGroupArgs{ ResourceGroupName: primary.ResourceGroupName, ServerName: primary.Name, Databases: pulumi.StringArray{ db1.ID(), }, PartnerServers: sql.FailoverGroupPartnerServerArray{ &sql.FailoverGroupPartnerServerArgs{ Id: secondary.ID(), }, }, ReadWriteEndpointFailoverPolicy: &sql.FailoverGroupReadWriteEndpointFailoverPolicyArgs{ Mode: pulumi.String("Automatic"), GraceMinutes: pulumi.Int(60), }, }) if err != nil { return err } return nil }) }
```
## Import
SQL Failover Groups can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/failoverGroup:FailoverGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/failoverGroups/group1
```
func GetFailoverGroup ¶
func GetFailoverGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FailoverGroupState, opts ...pulumi.ResourceOption) (*FailoverGroup, error)
GetFailoverGroup gets an existing FailoverGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFailoverGroup ¶
func NewFailoverGroup(ctx *pulumi.Context, name string, args *FailoverGroupArgs, opts ...pulumi.ResourceOption) (*FailoverGroup, error)
NewFailoverGroup registers a new resource with the given unique name, arguments, and options.
func (*FailoverGroup) ElementType ¶
func (*FailoverGroup) ElementType() reflect.Type
func (*FailoverGroup) ToFailoverGroupOutput ¶
func (i *FailoverGroup) ToFailoverGroupOutput() FailoverGroupOutput
func (*FailoverGroup) ToFailoverGroupOutputWithContext ¶
func (i *FailoverGroup) ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput
type FailoverGroupArgs ¶
type FailoverGroupArgs struct { // A list of database ids to add to the failover group // // > **NOTE:** The failover group will create a secondary database for each database listed in `databases`. If the secondary databases need to be managed through this provider, they should be defined as resources and a dependency added to the failover group to ensure the secondary databases are created first. Databases pulumi.StringArrayInput // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayInput // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyInput // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyPtrInput // The name of the resource group containing the SQL server Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a FailoverGroup resource.
func (FailoverGroupArgs) ElementType ¶
func (FailoverGroupArgs) ElementType() reflect.Type
type FailoverGroupArray ¶
type FailoverGroupArray []FailoverGroupInput
func (FailoverGroupArray) ElementType ¶
func (FailoverGroupArray) ElementType() reflect.Type
func (FailoverGroupArray) ToFailoverGroupArrayOutput ¶
func (i FailoverGroupArray) ToFailoverGroupArrayOutput() FailoverGroupArrayOutput
func (FailoverGroupArray) ToFailoverGroupArrayOutputWithContext ¶
func (i FailoverGroupArray) ToFailoverGroupArrayOutputWithContext(ctx context.Context) FailoverGroupArrayOutput
type FailoverGroupArrayInput ¶
type FailoverGroupArrayInput interface { pulumi.Input ToFailoverGroupArrayOutput() FailoverGroupArrayOutput ToFailoverGroupArrayOutputWithContext(context.Context) FailoverGroupArrayOutput }
FailoverGroupArrayInput is an input type that accepts FailoverGroupArray and FailoverGroupArrayOutput values. You can construct a concrete instance of `FailoverGroupArrayInput` via:
FailoverGroupArray{ FailoverGroupArgs{...} }
type FailoverGroupArrayOutput ¶
type FailoverGroupArrayOutput struct{ *pulumi.OutputState }
func (FailoverGroupArrayOutput) ElementType ¶
func (FailoverGroupArrayOutput) ElementType() reflect.Type
func (FailoverGroupArrayOutput) Index ¶
func (o FailoverGroupArrayOutput) Index(i pulumi.IntInput) FailoverGroupOutput
func (FailoverGroupArrayOutput) ToFailoverGroupArrayOutput ¶
func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutput() FailoverGroupArrayOutput
func (FailoverGroupArrayOutput) ToFailoverGroupArrayOutputWithContext ¶
func (o FailoverGroupArrayOutput) ToFailoverGroupArrayOutputWithContext(ctx context.Context) FailoverGroupArrayOutput
type FailoverGroupInput ¶
type FailoverGroupInput interface { pulumi.Input ToFailoverGroupOutput() FailoverGroupOutput ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput }
type FailoverGroupMap ¶
type FailoverGroupMap map[string]FailoverGroupInput
func (FailoverGroupMap) ElementType ¶
func (FailoverGroupMap) ElementType() reflect.Type
func (FailoverGroupMap) ToFailoverGroupMapOutput ¶
func (i FailoverGroupMap) ToFailoverGroupMapOutput() FailoverGroupMapOutput
func (FailoverGroupMap) ToFailoverGroupMapOutputWithContext ¶
func (i FailoverGroupMap) ToFailoverGroupMapOutputWithContext(ctx context.Context) FailoverGroupMapOutput
type FailoverGroupMapInput ¶
type FailoverGroupMapInput interface { pulumi.Input ToFailoverGroupMapOutput() FailoverGroupMapOutput ToFailoverGroupMapOutputWithContext(context.Context) FailoverGroupMapOutput }
FailoverGroupMapInput is an input type that accepts FailoverGroupMap and FailoverGroupMapOutput values. You can construct a concrete instance of `FailoverGroupMapInput` via:
FailoverGroupMap{ "key": FailoverGroupArgs{...} }
type FailoverGroupMapOutput ¶
type FailoverGroupMapOutput struct{ *pulumi.OutputState }
func (FailoverGroupMapOutput) ElementType ¶
func (FailoverGroupMapOutput) ElementType() reflect.Type
func (FailoverGroupMapOutput) MapIndex ¶
func (o FailoverGroupMapOutput) MapIndex(k pulumi.StringInput) FailoverGroupOutput
func (FailoverGroupMapOutput) ToFailoverGroupMapOutput ¶
func (o FailoverGroupMapOutput) ToFailoverGroupMapOutput() FailoverGroupMapOutput
func (FailoverGroupMapOutput) ToFailoverGroupMapOutputWithContext ¶
func (o FailoverGroupMapOutput) ToFailoverGroupMapOutputWithContext(ctx context.Context) FailoverGroupMapOutput
type FailoverGroupOutput ¶
type FailoverGroupOutput struct{ *pulumi.OutputState }
func (FailoverGroupOutput) Databases ¶ added in v5.5.0
func (o FailoverGroupOutput) Databases() pulumi.StringArrayOutput
A list of database ids to add to the failover group
> **NOTE:** The failover group will create a secondary database for each database listed in `databases`. If the secondary databases need to be managed through this provider, they should be defined as resources and a dependency added to the failover group to ensure the secondary databases are created first.
func (FailoverGroupOutput) ElementType ¶
func (FailoverGroupOutput) ElementType() reflect.Type
func (FailoverGroupOutput) Location ¶ added in v5.5.0
func (o FailoverGroupOutput) Location() pulumi.StringOutput
the location of the failover group.
func (FailoverGroupOutput) Name ¶ added in v5.5.0
func (o FailoverGroupOutput) Name() pulumi.StringOutput
The name of the failover group. Changing this forces a new resource to be created.
func (FailoverGroupOutput) PartnerServers ¶ added in v5.5.0
func (o FailoverGroupOutput) PartnerServers() FailoverGroupPartnerServerArrayOutput
A list of secondary servers as documented below
func (FailoverGroupOutput) ReadWriteEndpointFailoverPolicy ¶ added in v5.5.0
func (o FailoverGroupOutput) ReadWriteEndpointFailoverPolicy() FailoverGroupReadWriteEndpointFailoverPolicyOutput
A read/write policy as documented below
func (FailoverGroupOutput) ReadonlyEndpointFailoverPolicy ¶ added in v5.5.0
func (o FailoverGroupOutput) ReadonlyEndpointFailoverPolicy() FailoverGroupReadonlyEndpointFailoverPolicyOutput
a read-only policy as documented below
func (FailoverGroupOutput) ResourceGroupName ¶ added in v5.5.0
func (o FailoverGroupOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group containing the SQL server Changing this forces a new resource to be created.
func (FailoverGroupOutput) Role ¶ added in v5.5.0
func (o FailoverGroupOutput) Role() pulumi.StringOutput
local replication role of the failover group instance.
func (FailoverGroupOutput) ServerName ¶ added in v5.5.0
func (o FailoverGroupOutput) ServerName() pulumi.StringOutput
The name of the primary SQL server. Changing this forces a new resource to be created.
func (FailoverGroupOutput) Tags ¶ added in v5.5.0
func (o FailoverGroupOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (FailoverGroupOutput) ToFailoverGroupOutput ¶
func (o FailoverGroupOutput) ToFailoverGroupOutput() FailoverGroupOutput
func (FailoverGroupOutput) ToFailoverGroupOutputWithContext ¶
func (o FailoverGroupOutput) ToFailoverGroupOutputWithContext(ctx context.Context) FailoverGroupOutput
type FailoverGroupPartnerServerArgs ¶
type FailoverGroupPartnerServerArgs struct { // the SQL server ID Id pulumi.StringInput `pulumi:"id"` // the location of the failover group. Location pulumi.StringPtrInput `pulumi:"location"` // local replication role of the failover group instance. Role pulumi.StringPtrInput `pulumi:"role"` }
func (FailoverGroupPartnerServerArgs) ElementType ¶
func (FailoverGroupPartnerServerArgs) ElementType() reflect.Type
func (FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput ¶
func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext ¶
func (i FailoverGroupPartnerServerArgs) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
type FailoverGroupPartnerServerArray ¶
type FailoverGroupPartnerServerArray []FailoverGroupPartnerServerInput
func (FailoverGroupPartnerServerArray) ElementType ¶
func (FailoverGroupPartnerServerArray) ElementType() reflect.Type
func (FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput ¶
func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
func (FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext ¶
func (i FailoverGroupPartnerServerArray) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
type FailoverGroupPartnerServerArrayInput ¶
type FailoverGroupPartnerServerArrayInput interface { pulumi.Input ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput ToFailoverGroupPartnerServerArrayOutputWithContext(context.Context) FailoverGroupPartnerServerArrayOutput }
FailoverGroupPartnerServerArrayInput is an input type that accepts FailoverGroupPartnerServerArray and FailoverGroupPartnerServerArrayOutput values. You can construct a concrete instance of `FailoverGroupPartnerServerArrayInput` via:
FailoverGroupPartnerServerArray{ FailoverGroupPartnerServerArgs{...} }
type FailoverGroupPartnerServerArrayOutput ¶
type FailoverGroupPartnerServerArrayOutput struct{ *pulumi.OutputState }
func (FailoverGroupPartnerServerArrayOutput) ElementType ¶
func (FailoverGroupPartnerServerArrayOutput) ElementType() reflect.Type
func (FailoverGroupPartnerServerArrayOutput) Index ¶
func (o FailoverGroupPartnerServerArrayOutput) Index(i pulumi.IntInput) FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput ¶
func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutput() FailoverGroupPartnerServerArrayOutput
func (FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext ¶
func (o FailoverGroupPartnerServerArrayOutput) ToFailoverGroupPartnerServerArrayOutputWithContext(ctx context.Context) FailoverGroupPartnerServerArrayOutput
type FailoverGroupPartnerServerInput ¶
type FailoverGroupPartnerServerInput interface { pulumi.Input ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput ToFailoverGroupPartnerServerOutputWithContext(context.Context) FailoverGroupPartnerServerOutput }
FailoverGroupPartnerServerInput is an input type that accepts FailoverGroupPartnerServerArgs and FailoverGroupPartnerServerOutput values. You can construct a concrete instance of `FailoverGroupPartnerServerInput` via:
FailoverGroupPartnerServerArgs{...}
type FailoverGroupPartnerServerOutput ¶
type FailoverGroupPartnerServerOutput struct{ *pulumi.OutputState }
func (FailoverGroupPartnerServerOutput) ElementType ¶
func (FailoverGroupPartnerServerOutput) ElementType() reflect.Type
func (FailoverGroupPartnerServerOutput) Id ¶
func (o FailoverGroupPartnerServerOutput) Id() pulumi.StringOutput
the SQL server ID
func (FailoverGroupPartnerServerOutput) Location ¶
func (o FailoverGroupPartnerServerOutput) Location() pulumi.StringPtrOutput
the location of the failover group.
func (FailoverGroupPartnerServerOutput) Role ¶
func (o FailoverGroupPartnerServerOutput) Role() pulumi.StringPtrOutput
local replication role of the failover group instance.
func (FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput ¶
func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutput() FailoverGroupPartnerServerOutput
func (FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext ¶
func (o FailoverGroupPartnerServerOutput) ToFailoverGroupPartnerServerOutputWithContext(ctx context.Context) FailoverGroupPartnerServerOutput
type FailoverGroupReadWriteEndpointFailoverPolicy ¶
type FailoverGroupReadWriteEndpointFailoverPolicy struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted GraceMinutes *int `pulumi:"graceMinutes"` // the failover mode. Possible values are `Manual`, `Automatic` Mode string `pulumi:"mode"` }
type FailoverGroupReadWriteEndpointFailoverPolicyArgs ¶
type FailoverGroupReadWriteEndpointFailoverPolicyArgs struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted GraceMinutes pulumi.IntPtrInput `pulumi:"graceMinutes"` // the failover mode. Possible values are `Manual`, `Automatic` Mode pulumi.StringInput `pulumi:"mode"` }
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType ¶
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (i FailoverGroupReadWriteEndpointFailoverPolicyArgs) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadWriteEndpointFailoverPolicyInput ¶
type FailoverGroupReadWriteEndpointFailoverPolicyInput interface { pulumi.Input ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput }
FailoverGroupReadWriteEndpointFailoverPolicyInput is an input type that accepts FailoverGroupReadWriteEndpointFailoverPolicyArgs and FailoverGroupReadWriteEndpointFailoverPolicyOutput values. You can construct a concrete instance of `FailoverGroupReadWriteEndpointFailoverPolicyInput` via:
FailoverGroupReadWriteEndpointFailoverPolicyArgs{...}
type FailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
type FailoverGroupReadWriteEndpointFailoverPolicyOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType ¶
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
the failover mode. Possible values are `Manual`, `Automatic`
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutput() FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput ¶
type FailoverGroupReadWriteEndpointFailoverPolicyPtrInput interface { pulumi.Input ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput }
FailoverGroupReadWriteEndpointFailoverPolicyPtrInput is an input type that accepts FailoverGroupReadWriteEndpointFailoverPolicyArgs, FailoverGroupReadWriteEndpointFailoverPolicyPtr and FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput values. You can construct a concrete instance of `FailoverGroupReadWriteEndpointFailoverPolicyPtrInput` via:
FailoverGroupReadWriteEndpointFailoverPolicyArgs{...} or: nil
func FailoverGroupReadWriteEndpointFailoverPolicyPtr ¶
func FailoverGroupReadWriteEndpointFailoverPolicyPtr(v *FailoverGroupReadWriteEndpointFailoverPolicyArgs) FailoverGroupReadWriteEndpointFailoverPolicyPtrInput
type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
type FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType ¶
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode ¶
the failover mode. Possible values are `Manual`, `Automatic`
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (o FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicy ¶
type FailoverGroupReadonlyEndpointFailoverPolicy struct { // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode string `pulumi:"mode"` }
type FailoverGroupReadonlyEndpointFailoverPolicyArgs ¶
type FailoverGroupReadonlyEndpointFailoverPolicyArgs struct { // Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled` Mode pulumi.StringInput `pulumi:"mode"` }
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType ¶
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput ¶
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext ¶
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶
func (i FailoverGroupReadonlyEndpointFailoverPolicyArgs) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicyInput ¶
type FailoverGroupReadonlyEndpointFailoverPolicyInput interface { pulumi.Input ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput }
FailoverGroupReadonlyEndpointFailoverPolicyInput is an input type that accepts FailoverGroupReadonlyEndpointFailoverPolicyArgs and FailoverGroupReadonlyEndpointFailoverPolicyOutput values. You can construct a concrete instance of `FailoverGroupReadonlyEndpointFailoverPolicyInput` via:
FailoverGroupReadonlyEndpointFailoverPolicyArgs{...}
type FailoverGroupReadonlyEndpointFailoverPolicyOutput ¶
type FailoverGroupReadonlyEndpointFailoverPolicyOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType ¶
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutput() FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput ¶
type FailoverGroupReadonlyEndpointFailoverPolicyPtrInput interface { pulumi.Input ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput }
FailoverGroupReadonlyEndpointFailoverPolicyPtrInput is an input type that accepts FailoverGroupReadonlyEndpointFailoverPolicyArgs, FailoverGroupReadonlyEndpointFailoverPolicyPtr and FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput values. You can construct a concrete instance of `FailoverGroupReadonlyEndpointFailoverPolicyPtrInput` via:
FailoverGroupReadonlyEndpointFailoverPolicyArgs{...} or: nil
func FailoverGroupReadonlyEndpointFailoverPolicyPtr ¶
func FailoverGroupReadonlyEndpointFailoverPolicyPtr(v *FailoverGroupReadonlyEndpointFailoverPolicyArgs) FailoverGroupReadonlyEndpointFailoverPolicyPtrInput
type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶
type FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput struct{ *pulumi.OutputState }
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType ¶
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) Mode ¶
Failover policy for the read-only endpoint. Possible values are `Enabled`, and `Disabled`
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutput() FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
func (FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext ¶
func (o FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput) ToFailoverGroupReadonlyEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) FailoverGroupReadonlyEndpointFailoverPolicyPtrOutput
type FailoverGroupState ¶
type FailoverGroupState struct { // A list of database ids to add to the failover group // // > **NOTE:** The failover group will create a secondary database for each database listed in `databases`. If the secondary databases need to be managed through this provider, they should be defined as resources and a dependency added to the failover group to ensure the secondary databases are created first. Databases pulumi.StringArrayInput // the location of the failover group. Location pulumi.StringPtrInput // The name of the failover group. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // A list of secondary servers as documented below PartnerServers FailoverGroupPartnerServerArrayInput // A read/write policy as documented below ReadWriteEndpointFailoverPolicy FailoverGroupReadWriteEndpointFailoverPolicyPtrInput // a read-only policy as documented below ReadonlyEndpointFailoverPolicy FailoverGroupReadonlyEndpointFailoverPolicyPtrInput // The name of the resource group containing the SQL server Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // local replication role of the failover group instance. Role pulumi.StringPtrInput // The name of the primary SQL server. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput }
func (FailoverGroupState) ElementType ¶
func (FailoverGroupState) ElementType() reflect.Type
type FirewallRule ¶
type FirewallRule struct { pulumi.CustomResourceState // The ending IP address to allow through the firewall for this rule. // // > **NOTE:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0` which ([is documented in the Azure API Docs](https://docs.microsoft.com/rest/api/sql/firewallrules/createorupdate)). EndIpAddress pulumi.StringOutput `pulumi:"endIpAddress"` // The name of the firewall rule. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the Firewall Rule. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringOutput `pulumi:"startIpAddress"` }
Allows you to manage an Azure SQL Firewall Rule.
> **Note:** The `sql.FirewallRule` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.FirewallRule` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleSqlServer, err := sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("4dm1n157r470r"), AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"), }) if err != nil { return err } _, err = sql.NewFirewallRule(ctx, "exampleFirewallRule", &sql.FirewallRuleArgs{ ResourceGroupName: exampleResourceGroup.Name, ServerName: exampleSqlServer.Name, StartIpAddress: pulumi.String("10.0.17.62"), EndIpAddress: pulumi.String("10.0.17.62"), }) if err != nil { return err } return nil }) }
```
## Import
SQL Firewall Rules can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/firewallRule:FirewallRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/firewallRules/rule1
```
func GetFirewallRule ¶
func GetFirewallRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FirewallRuleState, opts ...pulumi.ResourceOption) (*FirewallRule, error)
GetFirewallRule gets an existing FirewallRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFirewallRule ¶
func NewFirewallRule(ctx *pulumi.Context, name string, args *FirewallRuleArgs, opts ...pulumi.ResourceOption) (*FirewallRule, error)
NewFirewallRule registers a new resource with the given unique name, arguments, and options.
func (*FirewallRule) ElementType ¶
func (*FirewallRule) ElementType() reflect.Type
func (*FirewallRule) ToFirewallRuleOutput ¶
func (i *FirewallRule) ToFirewallRuleOutput() FirewallRuleOutput
func (*FirewallRule) ToFirewallRuleOutputWithContext ¶
func (i *FirewallRule) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput
type FirewallRuleArgs ¶
type FirewallRuleArgs struct { // The ending IP address to allow through the firewall for this rule. // // > **NOTE:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0` which ([is documented in the Azure API Docs](https://docs.microsoft.com/rest/api/sql/firewallrules/createorupdate)). EndIpAddress pulumi.StringInput // The name of the firewall rule. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server on which to create the Firewall Rule. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringInput }
The set of arguments for constructing a FirewallRule resource.
func (FirewallRuleArgs) ElementType ¶
func (FirewallRuleArgs) ElementType() reflect.Type
type FirewallRuleArray ¶
type FirewallRuleArray []FirewallRuleInput
func (FirewallRuleArray) ElementType ¶
func (FirewallRuleArray) ElementType() reflect.Type
func (FirewallRuleArray) ToFirewallRuleArrayOutput ¶
func (i FirewallRuleArray) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput
func (FirewallRuleArray) ToFirewallRuleArrayOutputWithContext ¶
func (i FirewallRuleArray) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput
type FirewallRuleArrayInput ¶
type FirewallRuleArrayInput interface { pulumi.Input ToFirewallRuleArrayOutput() FirewallRuleArrayOutput ToFirewallRuleArrayOutputWithContext(context.Context) FirewallRuleArrayOutput }
FirewallRuleArrayInput is an input type that accepts FirewallRuleArray and FirewallRuleArrayOutput values. You can construct a concrete instance of `FirewallRuleArrayInput` via:
FirewallRuleArray{ FirewallRuleArgs{...} }
type FirewallRuleArrayOutput ¶
type FirewallRuleArrayOutput struct{ *pulumi.OutputState }
func (FirewallRuleArrayOutput) ElementType ¶
func (FirewallRuleArrayOutput) ElementType() reflect.Type
func (FirewallRuleArrayOutput) Index ¶
func (o FirewallRuleArrayOutput) Index(i pulumi.IntInput) FirewallRuleOutput
func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutput ¶
func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutput() FirewallRuleArrayOutput
func (FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext ¶
func (o FirewallRuleArrayOutput) ToFirewallRuleArrayOutputWithContext(ctx context.Context) FirewallRuleArrayOutput
type FirewallRuleInput ¶
type FirewallRuleInput interface { pulumi.Input ToFirewallRuleOutput() FirewallRuleOutput ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput }
type FirewallRuleMap ¶
type FirewallRuleMap map[string]FirewallRuleInput
func (FirewallRuleMap) ElementType ¶
func (FirewallRuleMap) ElementType() reflect.Type
func (FirewallRuleMap) ToFirewallRuleMapOutput ¶
func (i FirewallRuleMap) ToFirewallRuleMapOutput() FirewallRuleMapOutput
func (FirewallRuleMap) ToFirewallRuleMapOutputWithContext ¶
func (i FirewallRuleMap) ToFirewallRuleMapOutputWithContext(ctx context.Context) FirewallRuleMapOutput
type FirewallRuleMapInput ¶
type FirewallRuleMapInput interface { pulumi.Input ToFirewallRuleMapOutput() FirewallRuleMapOutput ToFirewallRuleMapOutputWithContext(context.Context) FirewallRuleMapOutput }
FirewallRuleMapInput is an input type that accepts FirewallRuleMap and FirewallRuleMapOutput values. You can construct a concrete instance of `FirewallRuleMapInput` via:
FirewallRuleMap{ "key": FirewallRuleArgs{...} }
type FirewallRuleMapOutput ¶
type FirewallRuleMapOutput struct{ *pulumi.OutputState }
func (FirewallRuleMapOutput) ElementType ¶
func (FirewallRuleMapOutput) ElementType() reflect.Type
func (FirewallRuleMapOutput) MapIndex ¶
func (o FirewallRuleMapOutput) MapIndex(k pulumi.StringInput) FirewallRuleOutput
func (FirewallRuleMapOutput) ToFirewallRuleMapOutput ¶
func (o FirewallRuleMapOutput) ToFirewallRuleMapOutput() FirewallRuleMapOutput
func (FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext ¶
func (o FirewallRuleMapOutput) ToFirewallRuleMapOutputWithContext(ctx context.Context) FirewallRuleMapOutput
type FirewallRuleOutput ¶
type FirewallRuleOutput struct{ *pulumi.OutputState }
func (FirewallRuleOutput) ElementType ¶
func (FirewallRuleOutput) ElementType() reflect.Type
func (FirewallRuleOutput) EndIpAddress ¶ added in v5.5.0
func (o FirewallRuleOutput) EndIpAddress() pulumi.StringOutput
The ending IP address to allow through the firewall for this rule.
> **NOTE:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0` which ([is documented in the Azure API Docs](https://docs.microsoft.com/rest/api/sql/firewallrules/createorupdate)).
func (FirewallRuleOutput) Name ¶ added in v5.5.0
func (o FirewallRuleOutput) Name() pulumi.StringOutput
The name of the firewall rule. Changing this forces a new resource to be created.
func (FirewallRuleOutput) ResourceGroupName ¶ added in v5.5.0
func (o FirewallRuleOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created.
func (FirewallRuleOutput) ServerName ¶ added in v5.5.0
func (o FirewallRuleOutput) ServerName() pulumi.StringOutput
The name of the SQL Server on which to create the Firewall Rule. Changing this forces a new resource to be created.
func (FirewallRuleOutput) StartIpAddress ¶ added in v5.5.0
func (o FirewallRuleOutput) StartIpAddress() pulumi.StringOutput
The starting IP address to allow through the firewall for this rule.
func (FirewallRuleOutput) ToFirewallRuleOutput ¶
func (o FirewallRuleOutput) ToFirewallRuleOutput() FirewallRuleOutput
func (FirewallRuleOutput) ToFirewallRuleOutputWithContext ¶
func (o FirewallRuleOutput) ToFirewallRuleOutputWithContext(ctx context.Context) FirewallRuleOutput
type FirewallRuleState ¶
type FirewallRuleState struct { // The ending IP address to allow through the firewall for this rule. // // > **NOTE:** The Azure feature `Allow access to Azure services` can be enabled by setting `startIpAddress` and `endIpAddress` to `0.0.0.0` which ([is documented in the Azure API Docs](https://docs.microsoft.com/rest/api/sql/firewallrules/createorupdate)). EndIpAddress pulumi.StringPtrInput // The name of the firewall rule. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server on which to create the Firewall Rule. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The starting IP address to allow through the firewall for this rule. StartIpAddress pulumi.StringPtrInput }
func (FirewallRuleState) ElementType ¶
func (FirewallRuleState) ElementType() reflect.Type
type GetServerArgs ¶
type GetServerArgs struct { // The name of the SQL Server. Name string `pulumi:"name"` // Specifies the name of the Resource Group where the SQL Server exists. ResourceGroupName string `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getServer.
type GetServerIdentity ¶
type GetServerIdentity struct { // The Principal ID associated with this Managed Service Identity. PrincipalId string `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId string `pulumi:"tenantId"` // The identity type of this Managed Service Identity. Type string `pulumi:"type"` }
type GetServerIdentityArgs ¶
type GetServerIdentityArgs struct { // The Principal ID associated with this Managed Service Identity. PrincipalId pulumi.StringInput `pulumi:"principalId"` // The Tenant ID associated with this Managed Service Identity. TenantId pulumi.StringInput `pulumi:"tenantId"` // The identity type of this Managed Service Identity. Type pulumi.StringInput `pulumi:"type"` }
func (GetServerIdentityArgs) ElementType ¶
func (GetServerIdentityArgs) ElementType() reflect.Type
func (GetServerIdentityArgs) ToGetServerIdentityOutput ¶
func (i GetServerIdentityArgs) ToGetServerIdentityOutput() GetServerIdentityOutput
func (GetServerIdentityArgs) ToGetServerIdentityOutputWithContext ¶
func (i GetServerIdentityArgs) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
type GetServerIdentityArray ¶
type GetServerIdentityArray []GetServerIdentityInput
func (GetServerIdentityArray) ElementType ¶
func (GetServerIdentityArray) ElementType() reflect.Type
func (GetServerIdentityArray) ToGetServerIdentityArrayOutput ¶
func (i GetServerIdentityArray) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
func (GetServerIdentityArray) ToGetServerIdentityArrayOutputWithContext ¶
func (i GetServerIdentityArray) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
type GetServerIdentityArrayInput ¶
type GetServerIdentityArrayInput interface { pulumi.Input ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput ToGetServerIdentityArrayOutputWithContext(context.Context) GetServerIdentityArrayOutput }
GetServerIdentityArrayInput is an input type that accepts GetServerIdentityArray and GetServerIdentityArrayOutput values. You can construct a concrete instance of `GetServerIdentityArrayInput` via:
GetServerIdentityArray{ GetServerIdentityArgs{...} }
type GetServerIdentityArrayOutput ¶
type GetServerIdentityArrayOutput struct{ *pulumi.OutputState }
func (GetServerIdentityArrayOutput) ElementType ¶
func (GetServerIdentityArrayOutput) ElementType() reflect.Type
func (GetServerIdentityArrayOutput) Index ¶
func (o GetServerIdentityArrayOutput) Index(i pulumi.IntInput) GetServerIdentityOutput
func (GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput ¶
func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutput() GetServerIdentityArrayOutput
func (GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext ¶
func (o GetServerIdentityArrayOutput) ToGetServerIdentityArrayOutputWithContext(ctx context.Context) GetServerIdentityArrayOutput
type GetServerIdentityInput ¶
type GetServerIdentityInput interface { pulumi.Input ToGetServerIdentityOutput() GetServerIdentityOutput ToGetServerIdentityOutputWithContext(context.Context) GetServerIdentityOutput }
GetServerIdentityInput is an input type that accepts GetServerIdentityArgs and GetServerIdentityOutput values. You can construct a concrete instance of `GetServerIdentityInput` via:
GetServerIdentityArgs{...}
type GetServerIdentityOutput ¶
type GetServerIdentityOutput struct{ *pulumi.OutputState }
func (GetServerIdentityOutput) ElementType ¶
func (GetServerIdentityOutput) ElementType() reflect.Type
func (GetServerIdentityOutput) PrincipalId ¶
func (o GetServerIdentityOutput) PrincipalId() pulumi.StringOutput
The Principal ID associated with this Managed Service Identity.
func (GetServerIdentityOutput) TenantId ¶
func (o GetServerIdentityOutput) TenantId() pulumi.StringOutput
The Tenant ID associated with this Managed Service Identity.
func (GetServerIdentityOutput) ToGetServerIdentityOutput ¶
func (o GetServerIdentityOutput) ToGetServerIdentityOutput() GetServerIdentityOutput
func (GetServerIdentityOutput) ToGetServerIdentityOutputWithContext ¶
func (o GetServerIdentityOutput) ToGetServerIdentityOutputWithContext(ctx context.Context) GetServerIdentityOutput
func (GetServerIdentityOutput) Type ¶
func (o GetServerIdentityOutput) Type() pulumi.StringOutput
The identity type of this Managed Service Identity.
type GetServerOutputArgs ¶
type GetServerOutputArgs struct { // The name of the SQL Server. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Resource Group where the SQL Server exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` }
A collection of arguments for invoking getServer.
func (GetServerOutputArgs) ElementType ¶
func (GetServerOutputArgs) ElementType() reflect.Type
type GetServerResult ¶
type GetServerResult struct { // The administrator username of the SQL Server. AdministratorLogin string `pulumi:"administratorLogin"` // The fully qualified domain name of the SQL Server. Fqdn string `pulumi:"fqdn"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetServerIdentity `pulumi:"identities"` // The location of the Resource Group in which the SQL Server exists. Location string `pulumi:"location"` Name string `pulumi:"name"` ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The version of the SQL Server. Version string `pulumi:"version"` }
A collection of values returned by getServer.
func GetServer ¶
func GetServer(ctx *pulumi.Context, args *GetServerArgs, opts ...pulumi.InvokeOption) (*GetServerResult, error)
Use this data source to access information about an existing SQL Azure Database Server.
> **Note:** The `sql.SqlServer` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.Server` data source instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := sql.GetServer(ctx, &sql.GetServerArgs{ Name: "examplesqlservername", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("sqlServerId", example.Id) return nil }) }
```
type GetServerResultOutput ¶
type GetServerResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getServer.
func GetServerOutput ¶
func GetServerOutput(ctx *pulumi.Context, args GetServerOutputArgs, opts ...pulumi.InvokeOption) GetServerResultOutput
func (GetServerResultOutput) AdministratorLogin ¶
func (o GetServerResultOutput) AdministratorLogin() pulumi.StringOutput
The administrator username of the SQL Server.
func (GetServerResultOutput) ElementType ¶
func (GetServerResultOutput) ElementType() reflect.Type
func (GetServerResultOutput) Fqdn ¶
func (o GetServerResultOutput) Fqdn() pulumi.StringOutput
The fully qualified domain name of the SQL Server.
func (GetServerResultOutput) Id ¶
func (o GetServerResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetServerResultOutput) Identities ¶
func (o GetServerResultOutput) Identities() GetServerIdentityArrayOutput
An `identity` block as defined below.
func (GetServerResultOutput) Location ¶
func (o GetServerResultOutput) Location() pulumi.StringOutput
The location of the Resource Group in which the SQL Server exists.
func (GetServerResultOutput) Name ¶
func (o GetServerResultOutput) Name() pulumi.StringOutput
func (GetServerResultOutput) ResourceGroupName ¶
func (o GetServerResultOutput) ResourceGroupName() pulumi.StringOutput
func (GetServerResultOutput) Tags ¶
func (o GetServerResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (GetServerResultOutput) ToGetServerResultOutput ¶
func (o GetServerResultOutput) ToGetServerResultOutput() GetServerResultOutput
func (GetServerResultOutput) ToGetServerResultOutputWithContext ¶
func (o GetServerResultOutput) ToGetServerResultOutputWithContext(ctx context.Context) GetServerResultOutput
func (GetServerResultOutput) Version ¶
func (o GetServerResultOutput) Version() pulumi.StringOutput
The version of the SQL Server.
type GetSqlManagedInstanceArgs ¶
type GetSqlManagedInstanceArgs struct { // The name of the SQL Managed Instance. Name string `pulumi:"name"` // The name of the Resource Group in which the SQL Managed Instance exists. ResourceGroupName string `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of arguments for invoking getSqlManagedInstance.
type GetSqlManagedInstanceIdentity ¶
type GetSqlManagedInstanceIdentity struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance. PrincipalId string `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance. TenantId string `pulumi:"tenantId"` Type string `pulumi:"type"` }
type GetSqlManagedInstanceIdentityArgs ¶
type GetSqlManagedInstanceIdentityArgs struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance. PrincipalId pulumi.StringInput `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance. TenantId pulumi.StringInput `pulumi:"tenantId"` Type pulumi.StringInput `pulumi:"type"` }
func (GetSqlManagedInstanceIdentityArgs) ElementType ¶
func (GetSqlManagedInstanceIdentityArgs) ElementType() reflect.Type
func (GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutput ¶
func (i GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutput() GetSqlManagedInstanceIdentityOutput
func (GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutputWithContext ¶
func (i GetSqlManagedInstanceIdentityArgs) ToGetSqlManagedInstanceIdentityOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityOutput
type GetSqlManagedInstanceIdentityArray ¶
type GetSqlManagedInstanceIdentityArray []GetSqlManagedInstanceIdentityInput
func (GetSqlManagedInstanceIdentityArray) ElementType ¶
func (GetSqlManagedInstanceIdentityArray) ElementType() reflect.Type
func (GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutput ¶
func (i GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutput() GetSqlManagedInstanceIdentityArrayOutput
func (GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutputWithContext ¶
func (i GetSqlManagedInstanceIdentityArray) ToGetSqlManagedInstanceIdentityArrayOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityArrayOutput
type GetSqlManagedInstanceIdentityArrayInput ¶
type GetSqlManagedInstanceIdentityArrayInput interface { pulumi.Input ToGetSqlManagedInstanceIdentityArrayOutput() GetSqlManagedInstanceIdentityArrayOutput ToGetSqlManagedInstanceIdentityArrayOutputWithContext(context.Context) GetSqlManagedInstanceIdentityArrayOutput }
GetSqlManagedInstanceIdentityArrayInput is an input type that accepts GetSqlManagedInstanceIdentityArray and GetSqlManagedInstanceIdentityArrayOutput values. You can construct a concrete instance of `GetSqlManagedInstanceIdentityArrayInput` via:
GetSqlManagedInstanceIdentityArray{ GetSqlManagedInstanceIdentityArgs{...} }
type GetSqlManagedInstanceIdentityArrayOutput ¶
type GetSqlManagedInstanceIdentityArrayOutput struct{ *pulumi.OutputState }
func (GetSqlManagedInstanceIdentityArrayOutput) ElementType ¶
func (GetSqlManagedInstanceIdentityArrayOutput) ElementType() reflect.Type
func (GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutput ¶
func (o GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutput() GetSqlManagedInstanceIdentityArrayOutput
func (GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutputWithContext ¶
func (o GetSqlManagedInstanceIdentityArrayOutput) ToGetSqlManagedInstanceIdentityArrayOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityArrayOutput
type GetSqlManagedInstanceIdentityInput ¶
type GetSqlManagedInstanceIdentityInput interface { pulumi.Input ToGetSqlManagedInstanceIdentityOutput() GetSqlManagedInstanceIdentityOutput ToGetSqlManagedInstanceIdentityOutputWithContext(context.Context) GetSqlManagedInstanceIdentityOutput }
GetSqlManagedInstanceIdentityInput is an input type that accepts GetSqlManagedInstanceIdentityArgs and GetSqlManagedInstanceIdentityOutput values. You can construct a concrete instance of `GetSqlManagedInstanceIdentityInput` via:
GetSqlManagedInstanceIdentityArgs{...}
type GetSqlManagedInstanceIdentityOutput ¶
type GetSqlManagedInstanceIdentityOutput struct{ *pulumi.OutputState }
func (GetSqlManagedInstanceIdentityOutput) ElementType ¶
func (GetSqlManagedInstanceIdentityOutput) ElementType() reflect.Type
func (GetSqlManagedInstanceIdentityOutput) PrincipalId ¶
func (o GetSqlManagedInstanceIdentityOutput) PrincipalId() pulumi.StringOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (GetSqlManagedInstanceIdentityOutput) TenantId ¶
func (o GetSqlManagedInstanceIdentityOutput) TenantId() pulumi.StringOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutput ¶
func (o GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutput() GetSqlManagedInstanceIdentityOutput
func (GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutputWithContext ¶
func (o GetSqlManagedInstanceIdentityOutput) ToGetSqlManagedInstanceIdentityOutputWithContext(ctx context.Context) GetSqlManagedInstanceIdentityOutput
func (GetSqlManagedInstanceIdentityOutput) Type ¶
func (o GetSqlManagedInstanceIdentityOutput) Type() pulumi.StringOutput
type GetSqlManagedInstanceOutputArgs ¶
type GetSqlManagedInstanceOutputArgs struct { // The name of the SQL Managed Instance. Name pulumi.StringInput `pulumi:"name"` // The name of the Resource Group in which the SQL Managed Instance exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput `pulumi:"tags"` }
A collection of arguments for invoking getSqlManagedInstance.
func (GetSqlManagedInstanceOutputArgs) ElementType ¶
func (GetSqlManagedInstanceOutputArgs) ElementType() reflect.Type
type GetSqlManagedInstanceResult ¶
type GetSqlManagedInstanceResult struct { // The administrator login name for the new server. AdministratorLogin string `pulumi:"administratorLogin"` // Specifies how the SQL Managed Instance is collated. Collation string `pulumi:"collation"` // The ID of the Managed Instance which is sharing the DNS zone. DnsZonePartnerId string `pulumi:"dnsZonePartnerId"` // The fully qualified domain name of the Azure Managed SQL Instance. Fqdn string `pulumi:"fqdn"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An `identity` block as defined below. Identities []GetSqlManagedInstanceIdentity `pulumi:"identities"` // Type of license the Managed Instance uses. LicenseType string `pulumi:"licenseType"` // Location where the resource exists. Location string `pulumi:"location"` // The Minimum TLS Version. MinimumTlsVersion string `pulumi:"minimumTlsVersion"` Name string `pulumi:"name"` // How the SQL Managed Instance is accessed. ProxyOverride string `pulumi:"proxyOverride"` // Is the public data endpoint enabled? PublicDataEndpointEnabled bool `pulumi:"publicDataEndpointEnabled"` ResourceGroupName string `pulumi:"resourceGroupName"` // SKU Name for the SQL Managed Instance. SkuName string `pulumi:"skuName"` // Storage account type used to store backups for this SQL Managed Instance. StorageAccountType string `pulumi:"storageAccountType"` // Maximum storage space for your instance. StorageSizeInGb int `pulumi:"storageSizeInGb"` // The subnet resource id that the SQL Managed Instance is associated with. SubnetId string `pulumi:"subnetId"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` // The TimeZone ID that the SQL Managed Instance is operating in. TimezoneId string `pulumi:"timezoneId"` // Number of cores assigned to your instance. Vcores int `pulumi:"vcores"` }
A collection of values returned by getSqlManagedInstance.
func GetSqlManagedInstance ¶
func GetSqlManagedInstance(ctx *pulumi.Context, args *GetSqlManagedInstanceArgs, opts ...pulumi.InvokeOption) (*GetSqlManagedInstanceResult, error)
Use this data source to access information about an existing SQL Managed Instance.
> **Note:** The `sql.ManagedInstance` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.ManagedInstance` data source instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := sql.GetSqlManagedInstance(ctx, &sql.GetSqlManagedInstanceArgs{ Name: "example_mi", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("sqlInstanceId", example.Id) return nil }) }
```
type GetSqlManagedInstanceResultOutput ¶
type GetSqlManagedInstanceResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getSqlManagedInstance.
func GetSqlManagedInstanceOutput ¶
func GetSqlManagedInstanceOutput(ctx *pulumi.Context, args GetSqlManagedInstanceOutputArgs, opts ...pulumi.InvokeOption) GetSqlManagedInstanceResultOutput
func (GetSqlManagedInstanceResultOutput) AdministratorLogin ¶
func (o GetSqlManagedInstanceResultOutput) AdministratorLogin() pulumi.StringOutput
The administrator login name for the new server.
func (GetSqlManagedInstanceResultOutput) Collation ¶
func (o GetSqlManagedInstanceResultOutput) Collation() pulumi.StringOutput
Specifies how the SQL Managed Instance is collated.
func (GetSqlManagedInstanceResultOutput) DnsZonePartnerId ¶
func (o GetSqlManagedInstanceResultOutput) DnsZonePartnerId() pulumi.StringOutput
The ID of the Managed Instance which is sharing the DNS zone.
func (GetSqlManagedInstanceResultOutput) ElementType ¶
func (GetSqlManagedInstanceResultOutput) ElementType() reflect.Type
func (GetSqlManagedInstanceResultOutput) Fqdn ¶
func (o GetSqlManagedInstanceResultOutput) Fqdn() pulumi.StringOutput
The fully qualified domain name of the Azure Managed SQL Instance.
func (GetSqlManagedInstanceResultOutput) Id ¶
func (o GetSqlManagedInstanceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetSqlManagedInstanceResultOutput) Identities ¶
func (o GetSqlManagedInstanceResultOutput) Identities() GetSqlManagedInstanceIdentityArrayOutput
An `identity` block as defined below.
func (GetSqlManagedInstanceResultOutput) LicenseType ¶
func (o GetSqlManagedInstanceResultOutput) LicenseType() pulumi.StringOutput
Type of license the Managed Instance uses.
func (GetSqlManagedInstanceResultOutput) Location ¶
func (o GetSqlManagedInstanceResultOutput) Location() pulumi.StringOutput
Location where the resource exists.
func (GetSqlManagedInstanceResultOutput) MinimumTlsVersion ¶
func (o GetSqlManagedInstanceResultOutput) MinimumTlsVersion() pulumi.StringOutput
The Minimum TLS Version.
func (GetSqlManagedInstanceResultOutput) Name ¶
func (o GetSqlManagedInstanceResultOutput) Name() pulumi.StringOutput
func (GetSqlManagedInstanceResultOutput) ProxyOverride ¶
func (o GetSqlManagedInstanceResultOutput) ProxyOverride() pulumi.StringOutput
How the SQL Managed Instance is accessed.
func (GetSqlManagedInstanceResultOutput) PublicDataEndpointEnabled ¶
func (o GetSqlManagedInstanceResultOutput) PublicDataEndpointEnabled() pulumi.BoolOutput
Is the public data endpoint enabled?
func (GetSqlManagedInstanceResultOutput) ResourceGroupName ¶
func (o GetSqlManagedInstanceResultOutput) ResourceGroupName() pulumi.StringOutput
func (GetSqlManagedInstanceResultOutput) SkuName ¶
func (o GetSqlManagedInstanceResultOutput) SkuName() pulumi.StringOutput
SKU Name for the SQL Managed Instance.
func (GetSqlManagedInstanceResultOutput) StorageAccountType ¶
func (o GetSqlManagedInstanceResultOutput) StorageAccountType() pulumi.StringOutput
Storage account type used to store backups for this SQL Managed Instance.
func (GetSqlManagedInstanceResultOutput) StorageSizeInGb ¶
func (o GetSqlManagedInstanceResultOutput) StorageSizeInGb() pulumi.IntOutput
Maximum storage space for your instance.
func (GetSqlManagedInstanceResultOutput) SubnetId ¶
func (o GetSqlManagedInstanceResultOutput) SubnetId() pulumi.StringOutput
The subnet resource id that the SQL Managed Instance is associated with.
func (GetSqlManagedInstanceResultOutput) Tags ¶
func (o GetSqlManagedInstanceResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (GetSqlManagedInstanceResultOutput) TimezoneId ¶
func (o GetSqlManagedInstanceResultOutput) TimezoneId() pulumi.StringOutput
The TimeZone ID that the SQL Managed Instance is operating in.
func (GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutput ¶
func (o GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutput() GetSqlManagedInstanceResultOutput
func (GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutputWithContext ¶
func (o GetSqlManagedInstanceResultOutput) ToGetSqlManagedInstanceResultOutputWithContext(ctx context.Context) GetSqlManagedInstanceResultOutput
func (GetSqlManagedInstanceResultOutput) Vcores ¶
func (o GetSqlManagedInstanceResultOutput) Vcores() pulumi.IntOutput
Number of cores assigned to your instance.
type LookupDatabaseArgs ¶
type LookupDatabaseArgs struct { // The name of the SQL Database. Name string `pulumi:"name"` // Specifies the name of the Resource Group where the Azure SQL Database exists. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the SQL Server. ServerName string `pulumi:"serverName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of arguments for invoking getDatabase.
type LookupDatabaseOutputArgs ¶
type LookupDatabaseOutputArgs struct { // The name of the SQL Database. Name pulumi.StringInput `pulumi:"name"` // Specifies the name of the Resource Group where the Azure SQL Database exists. ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"` // The name of the SQL Server. ServerName pulumi.StringInput `pulumi:"serverName"` // A mapping of tags assigned to the resource. Tags pulumi.StringMapInput `pulumi:"tags"` }
A collection of arguments for invoking getDatabase.
func (LookupDatabaseOutputArgs) ElementType ¶
func (LookupDatabaseOutputArgs) ElementType() reflect.Type
type LookupDatabaseResult ¶
type LookupDatabaseResult struct { // The name of the collation. Collation string `pulumi:"collation"` // The default secondary location of the SQL Database. DefaultSecondaryLocation string `pulumi:"defaultSecondaryLocation"` // The edition of the database. Edition string `pulumi:"edition"` // The name of the elastic database pool the database belongs to. ElasticPoolName string `pulumi:"elasticPoolName"` // The ID of the failover group the database belongs to. FailoverGroupId string `pulumi:"failoverGroupId"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The location of the Resource Group in which the SQL Server exists. Location string `pulumi:"location"` // The name of the database. Name string `pulumi:"name"` // Indicate if read-only connections will be redirected to a high-available replica. ReadScale bool `pulumi:"readScale"` // The name of the resource group in which the database resides. This will always be the same resource group as the Database Server. ResourceGroupName string `pulumi:"resourceGroupName"` // The name of the SQL Server on which to create the database. ServerName string `pulumi:"serverName"` // A mapping of tags assigned to the resource. Tags map[string]string `pulumi:"tags"` }
A collection of values returned by getDatabase.
func LookupDatabase ¶
func LookupDatabase(ctx *pulumi.Context, args *LookupDatabaseArgs, opts ...pulumi.InvokeOption) (*LookupDatabaseResult, error)
Use this data source to access information about an existing SQL Azure Database.
> **Note:** The `sql.Database` data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.Database` data source instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := sql.LookupDatabase(ctx, &sql.LookupDatabaseArgs{ Name: "example_db", ServerName: "example_db_server", ResourceGroupName: "example-resources", }, nil) if err != nil { return err } ctx.Export("sqlDatabaseId", example.Id) return nil }) }
```
type LookupDatabaseResultOutput ¶
type LookupDatabaseResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDatabase.
func LookupDatabaseOutput ¶
func LookupDatabaseOutput(ctx *pulumi.Context, args LookupDatabaseOutputArgs, opts ...pulumi.InvokeOption) LookupDatabaseResultOutput
func (LookupDatabaseResultOutput) Collation ¶
func (o LookupDatabaseResultOutput) Collation() pulumi.StringOutput
The name of the collation.
func (LookupDatabaseResultOutput) DefaultSecondaryLocation ¶
func (o LookupDatabaseResultOutput) DefaultSecondaryLocation() pulumi.StringOutput
The default secondary location of the SQL Database.
func (LookupDatabaseResultOutput) Edition ¶
func (o LookupDatabaseResultOutput) Edition() pulumi.StringOutput
The edition of the database.
func (LookupDatabaseResultOutput) ElasticPoolName ¶
func (o LookupDatabaseResultOutput) ElasticPoolName() pulumi.StringOutput
The name of the elastic database pool the database belongs to.
func (LookupDatabaseResultOutput) ElementType ¶
func (LookupDatabaseResultOutput) ElementType() reflect.Type
func (LookupDatabaseResultOutput) FailoverGroupId ¶
func (o LookupDatabaseResultOutput) FailoverGroupId() pulumi.StringOutput
The ID of the failover group the database belongs to.
func (LookupDatabaseResultOutput) Id ¶
func (o LookupDatabaseResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupDatabaseResultOutput) Location ¶
func (o LookupDatabaseResultOutput) Location() pulumi.StringOutput
The location of the Resource Group in which the SQL Server exists.
func (LookupDatabaseResultOutput) Name ¶
func (o LookupDatabaseResultOutput) Name() pulumi.StringOutput
The name of the database.
func (LookupDatabaseResultOutput) ReadScale ¶
func (o LookupDatabaseResultOutput) ReadScale() pulumi.BoolOutput
Indicate if read-only connections will be redirected to a high-available replica.
func (LookupDatabaseResultOutput) ResourceGroupName ¶
func (o LookupDatabaseResultOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which the database resides. This will always be the same resource group as the Database Server.
func (LookupDatabaseResultOutput) ServerName ¶
func (o LookupDatabaseResultOutput) ServerName() pulumi.StringOutput
The name of the SQL Server on which to create the database.
func (LookupDatabaseResultOutput) Tags ¶
func (o LookupDatabaseResultOutput) Tags() pulumi.StringMapOutput
A mapping of tags assigned to the resource.
func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutput ¶
func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutput() LookupDatabaseResultOutput
func (LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext ¶
func (o LookupDatabaseResultOutput) ToLookupDatabaseResultOutputWithContext(ctx context.Context) LookupDatabaseResultOutput
type ManagedDatabase ¶
type ManagedDatabase struct { pulumi.CustomResourceState // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the SQL Managed Instance. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The SQL Managed Instance ID that this Managed Database will be associated with. Changing this forces a new resource to be created. SqlManagedInstanceId pulumi.StringOutput `pulumi:"sqlManagedInstanceId"` }
Manages a SQL Azure Managed Database.
> **Note:** The `sql.ManagedDatabase` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.ManagedDatabase` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{ AddressSpaces: pulumi.StringArray{ pulumi.String("10.0.0.0/16"), }, Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, }) if err != nil { return err } exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{ ResourceGroupName: exampleResourceGroup.Name, VirtualNetworkName: exampleVirtualNetwork.Name, AddressPrefixes: pulumi.StringArray{ pulumi.String("10.0.2.0/24"), }, }) if err != nil { return err } exampleManagedInstance, err := sql.NewManagedInstance(ctx, "exampleManagedInstance", &sql.ManagedInstanceArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AdministratorLogin: pulumi.String("mradministrator"), AdministratorLoginPassword: pulumi.String("thisIsDog11"), LicenseType: pulumi.String("BasePrice"), SubnetId: exampleSubnet.ID(), SkuName: pulumi.String("GP_Gen5"), Vcores: pulumi.Int(4), StorageSizeInGb: pulumi.Int(32), }) if err != nil { return err } _, err = sql.NewManagedDatabase(ctx, "exampleManagedDatabase", &sql.ManagedDatabaseArgs{ SqlManagedInstanceId: exampleManagedInstance.ID(), Location: exampleResourceGroup.Location, }) if err != nil { return err } return nil }) }
```
## Import
SQL Managed Databases can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/managedDatabase:ManagedDatabase example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/managedInstances/myserver/databases/mydatabase
```
func GetManagedDatabase ¶
func GetManagedDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedDatabaseState, opts ...pulumi.ResourceOption) (*ManagedDatabase, error)
GetManagedDatabase gets an existing ManagedDatabase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewManagedDatabase ¶
func NewManagedDatabase(ctx *pulumi.Context, name string, args *ManagedDatabaseArgs, opts ...pulumi.ResourceOption) (*ManagedDatabase, error)
NewManagedDatabase registers a new resource with the given unique name, arguments, and options.
func (*ManagedDatabase) ElementType ¶
func (*ManagedDatabase) ElementType() reflect.Type
func (*ManagedDatabase) ToManagedDatabaseOutput ¶
func (i *ManagedDatabase) ToManagedDatabaseOutput() ManagedDatabaseOutput
func (*ManagedDatabase) ToManagedDatabaseOutputWithContext ¶
func (i *ManagedDatabase) ToManagedDatabaseOutputWithContext(ctx context.Context) ManagedDatabaseOutput
type ManagedDatabaseArgs ¶
type ManagedDatabaseArgs struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Managed Instance. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The SQL Managed Instance ID that this Managed Database will be associated with. Changing this forces a new resource to be created. SqlManagedInstanceId pulumi.StringInput }
The set of arguments for constructing a ManagedDatabase resource.
func (ManagedDatabaseArgs) ElementType ¶
func (ManagedDatabaseArgs) ElementType() reflect.Type
type ManagedDatabaseArray ¶
type ManagedDatabaseArray []ManagedDatabaseInput
func (ManagedDatabaseArray) ElementType ¶
func (ManagedDatabaseArray) ElementType() reflect.Type
func (ManagedDatabaseArray) ToManagedDatabaseArrayOutput ¶
func (i ManagedDatabaseArray) ToManagedDatabaseArrayOutput() ManagedDatabaseArrayOutput
func (ManagedDatabaseArray) ToManagedDatabaseArrayOutputWithContext ¶
func (i ManagedDatabaseArray) ToManagedDatabaseArrayOutputWithContext(ctx context.Context) ManagedDatabaseArrayOutput
type ManagedDatabaseArrayInput ¶
type ManagedDatabaseArrayInput interface { pulumi.Input ToManagedDatabaseArrayOutput() ManagedDatabaseArrayOutput ToManagedDatabaseArrayOutputWithContext(context.Context) ManagedDatabaseArrayOutput }
ManagedDatabaseArrayInput is an input type that accepts ManagedDatabaseArray and ManagedDatabaseArrayOutput values. You can construct a concrete instance of `ManagedDatabaseArrayInput` via:
ManagedDatabaseArray{ ManagedDatabaseArgs{...} }
type ManagedDatabaseArrayOutput ¶
type ManagedDatabaseArrayOutput struct{ *pulumi.OutputState }
func (ManagedDatabaseArrayOutput) ElementType ¶
func (ManagedDatabaseArrayOutput) ElementType() reflect.Type
func (ManagedDatabaseArrayOutput) Index ¶
func (o ManagedDatabaseArrayOutput) Index(i pulumi.IntInput) ManagedDatabaseOutput
func (ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutput ¶
func (o ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutput() ManagedDatabaseArrayOutput
func (ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutputWithContext ¶
func (o ManagedDatabaseArrayOutput) ToManagedDatabaseArrayOutputWithContext(ctx context.Context) ManagedDatabaseArrayOutput
type ManagedDatabaseInput ¶
type ManagedDatabaseInput interface { pulumi.Input ToManagedDatabaseOutput() ManagedDatabaseOutput ToManagedDatabaseOutputWithContext(ctx context.Context) ManagedDatabaseOutput }
type ManagedDatabaseMap ¶
type ManagedDatabaseMap map[string]ManagedDatabaseInput
func (ManagedDatabaseMap) ElementType ¶
func (ManagedDatabaseMap) ElementType() reflect.Type
func (ManagedDatabaseMap) ToManagedDatabaseMapOutput ¶
func (i ManagedDatabaseMap) ToManagedDatabaseMapOutput() ManagedDatabaseMapOutput
func (ManagedDatabaseMap) ToManagedDatabaseMapOutputWithContext ¶
func (i ManagedDatabaseMap) ToManagedDatabaseMapOutputWithContext(ctx context.Context) ManagedDatabaseMapOutput
type ManagedDatabaseMapInput ¶
type ManagedDatabaseMapInput interface { pulumi.Input ToManagedDatabaseMapOutput() ManagedDatabaseMapOutput ToManagedDatabaseMapOutputWithContext(context.Context) ManagedDatabaseMapOutput }
ManagedDatabaseMapInput is an input type that accepts ManagedDatabaseMap and ManagedDatabaseMapOutput values. You can construct a concrete instance of `ManagedDatabaseMapInput` via:
ManagedDatabaseMap{ "key": ManagedDatabaseArgs{...} }
type ManagedDatabaseMapOutput ¶
type ManagedDatabaseMapOutput struct{ *pulumi.OutputState }
func (ManagedDatabaseMapOutput) ElementType ¶
func (ManagedDatabaseMapOutput) ElementType() reflect.Type
func (ManagedDatabaseMapOutput) MapIndex ¶
func (o ManagedDatabaseMapOutput) MapIndex(k pulumi.StringInput) ManagedDatabaseOutput
func (ManagedDatabaseMapOutput) ToManagedDatabaseMapOutput ¶
func (o ManagedDatabaseMapOutput) ToManagedDatabaseMapOutput() ManagedDatabaseMapOutput
func (ManagedDatabaseMapOutput) ToManagedDatabaseMapOutputWithContext ¶
func (o ManagedDatabaseMapOutput) ToManagedDatabaseMapOutputWithContext(ctx context.Context) ManagedDatabaseMapOutput
type ManagedDatabaseOutput ¶
type ManagedDatabaseOutput struct{ *pulumi.OutputState }
func (ManagedDatabaseOutput) ElementType ¶
func (ManagedDatabaseOutput) ElementType() reflect.Type
func (ManagedDatabaseOutput) Location ¶ added in v5.5.0
func (o ManagedDatabaseOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (ManagedDatabaseOutput) Name ¶ added in v5.5.0
func (o ManagedDatabaseOutput) Name() pulumi.StringOutput
The name of the SQL Managed Instance. Changing this forces a new resource to be created.
func (ManagedDatabaseOutput) SqlManagedInstanceId ¶ added in v5.5.0
func (o ManagedDatabaseOutput) SqlManagedInstanceId() pulumi.StringOutput
The SQL Managed Instance ID that this Managed Database will be associated with. Changing this forces a new resource to be created.
func (ManagedDatabaseOutput) ToManagedDatabaseOutput ¶
func (o ManagedDatabaseOutput) ToManagedDatabaseOutput() ManagedDatabaseOutput
func (ManagedDatabaseOutput) ToManagedDatabaseOutputWithContext ¶
func (o ManagedDatabaseOutput) ToManagedDatabaseOutputWithContext(ctx context.Context) ManagedDatabaseOutput
type ManagedDatabaseState ¶
type ManagedDatabaseState struct { // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Managed Instance. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The SQL Managed Instance ID that this Managed Database will be associated with. Changing this forces a new resource to be created. SqlManagedInstanceId pulumi.StringPtrInput }
func (ManagedDatabaseState) ElementType ¶
func (ManagedDatabaseState) ElementType() reflect.Type
type ManagedInstance ¶
type ManagedInstance struct { pulumi.CustomResourceState // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringOutput `pulumi:"administratorLogin"` // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringOutput `pulumi:"administratorLoginPassword"` // Specifies how the SQL Managed Instance will be collated. Default value is `SQL_Latin1_General_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrOutput `pulumi:"collation"` // The ID of the Managed Instance which will share the DNS zone. This is a prerequisite for creating a `sql.ManagedInstanceFailoverGroup`. Setting this after creation forces a new resource to be created. DnsZonePartnerId pulumi.StringPtrOutput `pulumi:"dnsZonePartnerId"` // The fully qualified domain name of the Azure Managed SQL Instance Fqdn pulumi.StringOutput `pulumi:"fqdn"` // An `identity` block as defined below. Identity ManagedInstanceIdentityPtrOutput `pulumi:"identity"` // What type of license the Managed Instance will use. Valid values include can be `LicenseIncluded` or `BasePrice`. LicenseType pulumi.StringOutput `pulumi:"licenseType"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The Minimum TLS Version. Default value is `1.2` Valid values include `1.0`, `1.1`, `1.2`. MinimumTlsVersion pulumi.StringPtrOutput `pulumi:"minimumTlsVersion"` // The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. ProxyOverride pulumi.StringPtrOutput `pulumi:"proxyOverride"` // Is the public data endpoint enabled? Default value is `false`. PublicDataEndpointEnabled pulumi.BoolPtrOutput `pulumi:"publicDataEndpointEnabled"` // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `BC_Gen4`, `BC_Gen5`. SkuName pulumi.StringOutput `pulumi:"skuName"` // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `LRS` and `ZRS`. The default value is `GRS`. StorageAccountType pulumi.StringPtrOutput `pulumi:"storageAccountType"` // Maximum storage space for your instance. It should be a multiple of 32GB. StorageSizeInGb pulumi.IntOutput `pulumi:"storageSizeInGb"` // The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created. SubnetId pulumi.StringOutput `pulumi:"subnetId"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // The TimeZone ID that the SQL Managed Instance will be operating in. Default value is `UTC`. Changing this forces a new resource to be created. TimezoneId pulumi.StringPtrOutput `pulumi:"timezoneId"` // Number of cores that should be assigned to your instance. Values can be `8`, `16`, or `24` if `skuName` is `GP_Gen4`, or `8`, `16`, `24`, `32`, or `40` if `skuName` is `GP_Gen5`. Vcores pulumi.IntOutput `pulumi:"vcores"` }
Manages a SQL Azure Managed Instance.
> **Note:** The `sql.ManagedInstance` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.ManagedInstance` resource instead.
> **Note:** All arguments including the administrator login and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "exampleNetworkSecurityGroup", &network.NetworkSecurityGroupArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowManagementInbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(106), Direction: pulumi.String("Inbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("Tcp"), SourcePortRange: pulumi.String("*"), DestinationPortRanges: pulumi.StringArray{ pulumi.String("9000"), pulumi.String("9003"), pulumi.String("1438"), pulumi.String("1440"), pulumi.String("1452"), }, SourceAddressPrefix: pulumi.String("*"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowMisubnetInbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(200), Direction: pulumi.String("Inbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("*"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("*"), SourceAddressPrefix: pulumi.String("10.0.0.0/24"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowHealthProbeInbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(300), Direction: pulumi.String("Inbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("*"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("*"), SourceAddressPrefix: pulumi.String("AzureLoadBalancer"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowTdsInbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(1000), Direction: pulumi.String("Inbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("Tcp"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("1433"), SourceAddressPrefix: pulumi.String("VirtualNetwork"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "denyAllInbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(4096), Direction: pulumi.String("Inbound"), Access: pulumi.String("Deny"), Protocol: pulumi.String("*"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("*"), SourceAddressPrefix: pulumi.String("*"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowManagementOutbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(102), Direction: pulumi.String("Outbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("Tcp"), SourcePortRange: pulumi.String("*"), DestinationPortRanges: pulumi.StringArray{ pulumi.String("80"), pulumi.String("443"), pulumi.String("12000"), }, SourceAddressPrefix: pulumi.String("*"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "allowMisubnetOutbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(200), Direction: pulumi.String("Outbound"), Access: pulumi.String("Allow"), Protocol: pulumi.String("*"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("*"), SourceAddressPrefix: pulumi.String("10.0.0.0/24"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } _, err = network.NewNetworkSecurityRule(ctx, "denyAllOutbound", &network.NetworkSecurityRuleArgs{ Priority: pulumi.Int(4096), Direction: pulumi.String("Outbound"), Access: pulumi.String("Deny"), Protocol: pulumi.String("*"), SourcePortRange: pulumi.String("*"), DestinationPortRange: pulumi.String("*"), SourceAddressPrefix: pulumi.String("*"), DestinationAddressPrefix: pulumi.String("*"), ResourceGroupName: exampleResourceGroup.Name, NetworkSecurityGroupName: exampleNetworkSecurityGroup.Name, }) if err != nil { return err } exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{ ResourceGroupName: exampleResourceGroup.Name, AddressSpaces: pulumi.StringArray{ pulumi.String("10.0.0.0/16"), }, Location: exampleResourceGroup.Location, }) if err != nil { return err } exampleSubnet, err := network.NewSubnet(ctx, "exampleSubnet", &network.SubnetArgs{ ResourceGroupName: exampleResourceGroup.Name, VirtualNetworkName: exampleVirtualNetwork.Name, AddressPrefixes: pulumi.StringArray{ pulumi.String("10.0.0.0/24"), }, Delegations: network.SubnetDelegationArray{ &network.SubnetDelegationArgs{ Name: pulumi.String("managedinstancedelegation"), ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{ Name: pulumi.String("Microsoft.Sql/managedInstances"), Actions: pulumi.StringArray{ pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"), pulumi.String("Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action"), pulumi.String("Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action"), }, }, }, }, }) if err != nil { return err } exampleSubnetNetworkSecurityGroupAssociation, err := network.NewSubnetNetworkSecurityGroupAssociation(ctx, "exampleSubnetNetworkSecurityGroupAssociation", &network.SubnetNetworkSecurityGroupAssociationArgs{ SubnetId: exampleSubnet.ID(), NetworkSecurityGroupId: exampleNetworkSecurityGroup.ID(), }) if err != nil { return err } exampleRouteTable, err := network.NewRouteTable(ctx, "exampleRouteTable", &network.RouteTableArgs{ Location: exampleResourceGroup.Location, ResourceGroupName: exampleResourceGroup.Name, DisableBgpRoutePropagation: pulumi.Bool(false), }, pulumi.DependsOn([]pulumi.Resource{ exampleSubnet, })) if err != nil { return err } exampleSubnetRouteTableAssociation, err := network.NewSubnetRouteTableAssociation(ctx, "exampleSubnetRouteTableAssociation", &network.SubnetRouteTableAssociationArgs{ SubnetId: exampleSubnet.ID(), RouteTableId: exampleRouteTable.ID(), }) if err != nil { return err } _, err = sql.NewManagedInstance(ctx, "exampleManagedInstance", &sql.ManagedInstanceArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AdministratorLogin: pulumi.String("mradministrator"), AdministratorLoginPassword: pulumi.String("thisIsDog11"), LicenseType: pulumi.String("BasePrice"), SubnetId: exampleSubnet.ID(), SkuName: pulumi.String("GP_Gen5"), Vcores: pulumi.Int(4), StorageSizeInGb: pulumi.Int(32), }, pulumi.DependsOn([]pulumi.Resource{ exampleSubnetNetworkSecurityGroupAssociation, exampleSubnetRouteTableAssociation, })) if err != nil { return err } return nil }) }
```
## Import
SQL Servers can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/managedInstance:ManagedInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/managedInstances/myserver
```
func GetManagedInstance ¶
func GetManagedInstance(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedInstanceState, opts ...pulumi.ResourceOption) (*ManagedInstance, error)
GetManagedInstance gets an existing ManagedInstance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewManagedInstance ¶
func NewManagedInstance(ctx *pulumi.Context, name string, args *ManagedInstanceArgs, opts ...pulumi.ResourceOption) (*ManagedInstance, error)
NewManagedInstance registers a new resource with the given unique name, arguments, and options.
func (*ManagedInstance) ElementType ¶
func (*ManagedInstance) ElementType() reflect.Type
func (*ManagedInstance) ToManagedInstanceOutput ¶
func (i *ManagedInstance) ToManagedInstanceOutput() ManagedInstanceOutput
func (*ManagedInstance) ToManagedInstanceOutputWithContext ¶
func (i *ManagedInstance) ToManagedInstanceOutputWithContext(ctx context.Context) ManagedInstanceOutput
type ManagedInstanceActiveDirectoryAdministrator ¶
type ManagedInstanceActiveDirectoryAdministrator struct { pulumi.CustomResourceState // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). Defaults to `false`. AzureadAuthenticationOnly pulumi.BoolPtrOutput `pulumi:"azureadAuthenticationOnly"` // The login name of the principal to set as the Managed Instance administrator Login pulumi.StringOutput `pulumi:"login"` // The name of the SQL Managed Instance on which to set the administrator. Changing this forces a new resource to be created. ManagedInstanceName pulumi.StringOutput `pulumi:"managedInstanceName"` // The ID of the principal to set as the Managed Instance administrator ObjectId pulumi.StringOutput `pulumi:"objectId"` // The name of the resource group for the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The Azure Tenant ID TenantId pulumi.StringOutput `pulumi:"tenantId"` }
Allows you to set a user or group as the AD administrator for an Azure SQL Managed Instance.
> **Note:** The `sql.ManagedInstanceActiveDirectoryAdministrator` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.ManagedInstanceActiveDirectoryAdministrator` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } exampleManagedInstance, err := sql.NewManagedInstance(ctx, "exampleManagedInstance", &sql.ManagedInstanceArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AdministratorLogin: pulumi.String("mradministrator"), AdministratorLoginPassword: pulumi.String("thisIsDog11"), LicenseType: pulumi.String("BasePrice"), SubnetId: pulumi.Any(azurerm_subnet.Example.Id), SkuName: pulumi.String("GP_Gen5"), Vcores: pulumi.Int(4), StorageSizeInGb: pulumi.Int(32), }, pulumi.DependsOn([]pulumi.Resource{ azurerm_subnet_network_security_group_association.Example, azurerm_subnet_route_table_association.Example, })) if err != nil { return err } current, err := core.GetClientConfig(ctx, nil, nil) if err != nil { return err } _, err = sql.NewManagedInstanceActiveDirectoryAdministrator(ctx, "exampleManagedInstanceActiveDirectoryAdministrator", &sql.ManagedInstanceActiveDirectoryAdministratorArgs{ ManagedInstanceName: exampleManagedInstance.Name, ResourceGroupName: exampleResourceGroup.Name, Login: pulumi.String("sqladmin"), TenantId: *pulumi.String(current.TenantId), ObjectId: *pulumi.String(current.ObjectId), }) if err != nil { return err } return nil }) }
```
## Import
A SQL Active Directory Administrator can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/managedInstanceActiveDirectoryAdministrator:ManagedInstanceActiveDirectoryAdministrator administrator /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/managedInstances/mymanagedinstance/administrators/activeDirectory
```
func GetManagedInstanceActiveDirectoryAdministrator ¶
func GetManagedInstanceActiveDirectoryAdministrator(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedInstanceActiveDirectoryAdministratorState, opts ...pulumi.ResourceOption) (*ManagedInstanceActiveDirectoryAdministrator, error)
GetManagedInstanceActiveDirectoryAdministrator gets an existing ManagedInstanceActiveDirectoryAdministrator resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewManagedInstanceActiveDirectoryAdministrator ¶
func NewManagedInstanceActiveDirectoryAdministrator(ctx *pulumi.Context, name string, args *ManagedInstanceActiveDirectoryAdministratorArgs, opts ...pulumi.ResourceOption) (*ManagedInstanceActiveDirectoryAdministrator, error)
NewManagedInstanceActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
func (*ManagedInstanceActiveDirectoryAdministrator) ElementType ¶
func (*ManagedInstanceActiveDirectoryAdministrator) ElementType() reflect.Type
func (*ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutput ¶
func (i *ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutput() ManagedInstanceActiveDirectoryAdministratorOutput
func (*ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext ¶
func (i *ManagedInstanceActiveDirectoryAdministrator) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorOutput
type ManagedInstanceActiveDirectoryAdministratorArgs ¶
type ManagedInstanceActiveDirectoryAdministratorArgs struct { // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). Defaults to `false`. AzureadAuthenticationOnly pulumi.BoolPtrInput // The login name of the principal to set as the Managed Instance administrator Login pulumi.StringInput // The name of the SQL Managed Instance on which to set the administrator. Changing this forces a new resource to be created. ManagedInstanceName pulumi.StringInput // The ID of the principal to set as the Managed Instance administrator ObjectId pulumi.StringInput // The name of the resource group for the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The Azure Tenant ID TenantId pulumi.StringInput }
The set of arguments for constructing a ManagedInstanceActiveDirectoryAdministrator resource.
func (ManagedInstanceActiveDirectoryAdministratorArgs) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorArgs) ElementType() reflect.Type
type ManagedInstanceActiveDirectoryAdministratorArray ¶
type ManagedInstanceActiveDirectoryAdministratorArray []ManagedInstanceActiveDirectoryAdministratorInput
func (ManagedInstanceActiveDirectoryAdministratorArray) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorArray) ElementType() reflect.Type
func (ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutput ¶
func (i ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutput() ManagedInstanceActiveDirectoryAdministratorArrayOutput
func (ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext ¶
func (i ManagedInstanceActiveDirectoryAdministratorArray) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorArrayOutput
type ManagedInstanceActiveDirectoryAdministratorArrayInput ¶
type ManagedInstanceActiveDirectoryAdministratorArrayInput interface { pulumi.Input ToManagedInstanceActiveDirectoryAdministratorArrayOutput() ManagedInstanceActiveDirectoryAdministratorArrayOutput ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext(context.Context) ManagedInstanceActiveDirectoryAdministratorArrayOutput }
ManagedInstanceActiveDirectoryAdministratorArrayInput is an input type that accepts ManagedInstanceActiveDirectoryAdministratorArray and ManagedInstanceActiveDirectoryAdministratorArrayOutput values. You can construct a concrete instance of `ManagedInstanceActiveDirectoryAdministratorArrayInput` via:
ManagedInstanceActiveDirectoryAdministratorArray{ ManagedInstanceActiveDirectoryAdministratorArgs{...} }
type ManagedInstanceActiveDirectoryAdministratorArrayOutput ¶
type ManagedInstanceActiveDirectoryAdministratorArrayOutput struct{ *pulumi.OutputState }
func (ManagedInstanceActiveDirectoryAdministratorArrayOutput) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorArrayOutput) ElementType() reflect.Type
func (ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutput ¶
func (o ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutput() ManagedInstanceActiveDirectoryAdministratorArrayOutput
func (ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext ¶
func (o ManagedInstanceActiveDirectoryAdministratorArrayOutput) ToManagedInstanceActiveDirectoryAdministratorArrayOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorArrayOutput
type ManagedInstanceActiveDirectoryAdministratorInput ¶
type ManagedInstanceActiveDirectoryAdministratorInput interface { pulumi.Input ToManagedInstanceActiveDirectoryAdministratorOutput() ManagedInstanceActiveDirectoryAdministratorOutput ToManagedInstanceActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorOutput }
type ManagedInstanceActiveDirectoryAdministratorMap ¶
type ManagedInstanceActiveDirectoryAdministratorMap map[string]ManagedInstanceActiveDirectoryAdministratorInput
func (ManagedInstanceActiveDirectoryAdministratorMap) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorMap) ElementType() reflect.Type
func (ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutput ¶
func (i ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutput() ManagedInstanceActiveDirectoryAdministratorMapOutput
func (ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext ¶
func (i ManagedInstanceActiveDirectoryAdministratorMap) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorMapOutput
type ManagedInstanceActiveDirectoryAdministratorMapInput ¶
type ManagedInstanceActiveDirectoryAdministratorMapInput interface { pulumi.Input ToManagedInstanceActiveDirectoryAdministratorMapOutput() ManagedInstanceActiveDirectoryAdministratorMapOutput ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext(context.Context) ManagedInstanceActiveDirectoryAdministratorMapOutput }
ManagedInstanceActiveDirectoryAdministratorMapInput is an input type that accepts ManagedInstanceActiveDirectoryAdministratorMap and ManagedInstanceActiveDirectoryAdministratorMapOutput values. You can construct a concrete instance of `ManagedInstanceActiveDirectoryAdministratorMapInput` via:
ManagedInstanceActiveDirectoryAdministratorMap{ "key": ManagedInstanceActiveDirectoryAdministratorArgs{...} }
type ManagedInstanceActiveDirectoryAdministratorMapOutput ¶
type ManagedInstanceActiveDirectoryAdministratorMapOutput struct{ *pulumi.OutputState }
func (ManagedInstanceActiveDirectoryAdministratorMapOutput) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorMapOutput) ElementType() reflect.Type
func (ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutput ¶
func (o ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutput() ManagedInstanceActiveDirectoryAdministratorMapOutput
func (ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext ¶
func (o ManagedInstanceActiveDirectoryAdministratorMapOutput) ToManagedInstanceActiveDirectoryAdministratorMapOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorMapOutput
type ManagedInstanceActiveDirectoryAdministratorOutput ¶
type ManagedInstanceActiveDirectoryAdministratorOutput struct{ *pulumi.OutputState }
func (ManagedInstanceActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) AzureadAuthenticationOnly() pulumi.BoolPtrOutput
Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). Defaults to `false`.
func (ManagedInstanceActiveDirectoryAdministratorOutput) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorOutput) ElementType() reflect.Type
func (ManagedInstanceActiveDirectoryAdministratorOutput) Login ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) Login() pulumi.StringOutput
The login name of the principal to set as the Managed Instance administrator
func (ManagedInstanceActiveDirectoryAdministratorOutput) ManagedInstanceName ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) ManagedInstanceName() pulumi.StringOutput
The name of the SQL Managed Instance on which to set the administrator. Changing this forces a new resource to be created.
func (ManagedInstanceActiveDirectoryAdministratorOutput) ObjectId ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) ObjectId() pulumi.StringOutput
The ID of the principal to set as the Managed Instance administrator
func (ManagedInstanceActiveDirectoryAdministratorOutput) ResourceGroupName ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group for the SQL Managed Instance. Changing this forces a new resource to be created.
func (ManagedInstanceActiveDirectoryAdministratorOutput) TenantId ¶ added in v5.5.0
func (o ManagedInstanceActiveDirectoryAdministratorOutput) TenantId() pulumi.StringOutput
The Azure Tenant ID
func (ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutput ¶
func (o ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutput() ManagedInstanceActiveDirectoryAdministratorOutput
func (ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext ¶
func (o ManagedInstanceActiveDirectoryAdministratorOutput) ToManagedInstanceActiveDirectoryAdministratorOutputWithContext(ctx context.Context) ManagedInstanceActiveDirectoryAdministratorOutput
type ManagedInstanceActiveDirectoryAdministratorState ¶
type ManagedInstanceActiveDirectoryAdministratorState struct { // Specifies whether only AD Users and administrators can be used to login (`true`) or also local database users (`false`). Defaults to `false`. AzureadAuthenticationOnly pulumi.BoolPtrInput // The login name of the principal to set as the Managed Instance administrator Login pulumi.StringPtrInput // The name of the SQL Managed Instance on which to set the administrator. Changing this forces a new resource to be created. ManagedInstanceName pulumi.StringPtrInput // The ID of the principal to set as the Managed Instance administrator ObjectId pulumi.StringPtrInput // The name of the resource group for the SQL Managed Instance. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The Azure Tenant ID TenantId pulumi.StringPtrInput }
func (ManagedInstanceActiveDirectoryAdministratorState) ElementType ¶
func (ManagedInstanceActiveDirectoryAdministratorState) ElementType() reflect.Type
type ManagedInstanceArgs ¶
type ManagedInstanceArgs struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringInput // Specifies how the SQL Managed Instance will be collated. Default value is `SQL_Latin1_General_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // The ID of the Managed Instance which will share the DNS zone. This is a prerequisite for creating a `sql.ManagedInstanceFailoverGroup`. Setting this after creation forces a new resource to be created. DnsZonePartnerId pulumi.StringPtrInput // An `identity` block as defined below. Identity ManagedInstanceIdentityPtrInput // What type of license the Managed Instance will use. Valid values include can be `LicenseIncluded` or `BasePrice`. LicenseType pulumi.StringInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The Minimum TLS Version. Default value is `1.2` Valid values include `1.0`, `1.1`, `1.2`. MinimumTlsVersion pulumi.StringPtrInput // The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. ProxyOverride pulumi.StringPtrInput // Is the public data endpoint enabled? Default value is `false`. PublicDataEndpointEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `BC_Gen4`, `BC_Gen5`. SkuName pulumi.StringInput // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `LRS` and `ZRS`. The default value is `GRS`. StorageAccountType pulumi.StringPtrInput // Maximum storage space for your instance. It should be a multiple of 32GB. StorageSizeInGb pulumi.IntInput // The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created. SubnetId pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The TimeZone ID that the SQL Managed Instance will be operating in. Default value is `UTC`. Changing this forces a new resource to be created. TimezoneId pulumi.StringPtrInput // Number of cores that should be assigned to your instance. Values can be `8`, `16`, or `24` if `skuName` is `GP_Gen4`, or `8`, `16`, `24`, `32`, or `40` if `skuName` is `GP_Gen5`. Vcores pulumi.IntInput }
The set of arguments for constructing a ManagedInstance resource.
func (ManagedInstanceArgs) ElementType ¶
func (ManagedInstanceArgs) ElementType() reflect.Type
type ManagedInstanceArray ¶
type ManagedInstanceArray []ManagedInstanceInput
func (ManagedInstanceArray) ElementType ¶
func (ManagedInstanceArray) ElementType() reflect.Type
func (ManagedInstanceArray) ToManagedInstanceArrayOutput ¶
func (i ManagedInstanceArray) ToManagedInstanceArrayOutput() ManagedInstanceArrayOutput
func (ManagedInstanceArray) ToManagedInstanceArrayOutputWithContext ¶
func (i ManagedInstanceArray) ToManagedInstanceArrayOutputWithContext(ctx context.Context) ManagedInstanceArrayOutput
type ManagedInstanceArrayInput ¶
type ManagedInstanceArrayInput interface { pulumi.Input ToManagedInstanceArrayOutput() ManagedInstanceArrayOutput ToManagedInstanceArrayOutputWithContext(context.Context) ManagedInstanceArrayOutput }
ManagedInstanceArrayInput is an input type that accepts ManagedInstanceArray and ManagedInstanceArrayOutput values. You can construct a concrete instance of `ManagedInstanceArrayInput` via:
ManagedInstanceArray{ ManagedInstanceArgs{...} }
type ManagedInstanceArrayOutput ¶
type ManagedInstanceArrayOutput struct{ *pulumi.OutputState }
func (ManagedInstanceArrayOutput) ElementType ¶
func (ManagedInstanceArrayOutput) ElementType() reflect.Type
func (ManagedInstanceArrayOutput) Index ¶
func (o ManagedInstanceArrayOutput) Index(i pulumi.IntInput) ManagedInstanceOutput
func (ManagedInstanceArrayOutput) ToManagedInstanceArrayOutput ¶
func (o ManagedInstanceArrayOutput) ToManagedInstanceArrayOutput() ManagedInstanceArrayOutput
func (ManagedInstanceArrayOutput) ToManagedInstanceArrayOutputWithContext ¶
func (o ManagedInstanceArrayOutput) ToManagedInstanceArrayOutputWithContext(ctx context.Context) ManagedInstanceArrayOutput
type ManagedInstanceFailoverGroup ¶
type ManagedInstanceFailoverGroup struct { pulumi.CustomResourceState // The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the SQL Managed Instance which will be replicated using a SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. ManagedInstanceName pulumi.StringOutput `pulumi:"managedInstanceName"` // The name which should be used for this SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. Name pulumi.StringOutput `pulumi:"name"` // ID of the SQL Managed Instance which will be replicated to. Changing this forces a new resource to be created. PartnerManagedInstanceId pulumi.StringOutput `pulumi:"partnerManagedInstanceId"` // A `partnerRegion` block as defined below. PartnerRegions ManagedInstanceFailoverGroupPartnerRegionArrayOutput `pulumi:"partnerRegions"` // A `readWriteEndpointFailoverPolicy` block as defined below. ReadWriteEndpointFailoverPolicy ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput `pulumi:"readWriteEndpointFailoverPolicy"` // Failover policy for the read-only endpoint. Defaults to `true`. ReadonlyEndpointFailoverPolicyEnabled pulumi.BoolPtrOutput `pulumi:"readonlyEndpointFailoverPolicyEnabled"` // The name of the Resource Group where the SQL Instance Failover Group should exist. Changing this forces a new SQL Instance Failover Group to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The partner replication role of the SQL Instance Failover Group. Role pulumi.StringOutput `pulumi:"role"` }
## Import
SQL Instance Failover Groups can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/managedInstanceFailoverGroup:ManagedInstanceFailoverGroup example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Sql/locations/Location/instanceFailoverGroups/failoverGroup1
```
func GetManagedInstanceFailoverGroup ¶
func GetManagedInstanceFailoverGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ManagedInstanceFailoverGroupState, opts ...pulumi.ResourceOption) (*ManagedInstanceFailoverGroup, error)
GetManagedInstanceFailoverGroup gets an existing ManagedInstanceFailoverGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewManagedInstanceFailoverGroup ¶
func NewManagedInstanceFailoverGroup(ctx *pulumi.Context, name string, args *ManagedInstanceFailoverGroupArgs, opts ...pulumi.ResourceOption) (*ManagedInstanceFailoverGroup, error)
NewManagedInstanceFailoverGroup registers a new resource with the given unique name, arguments, and options.
func (*ManagedInstanceFailoverGroup) ElementType ¶
func (*ManagedInstanceFailoverGroup) ElementType() reflect.Type
func (*ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutput ¶
func (i *ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutput() ManagedInstanceFailoverGroupOutput
func (*ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutputWithContext ¶
func (i *ManagedInstanceFailoverGroup) ToManagedInstanceFailoverGroupOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupOutput
type ManagedInstanceFailoverGroupArgs ¶
type ManagedInstanceFailoverGroupArgs struct { // The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Managed Instance which will be replicated using a SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. ManagedInstanceName pulumi.StringInput // The name which should be used for this SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. Name pulumi.StringPtrInput // ID of the SQL Managed Instance which will be replicated to. Changing this forces a new resource to be created. PartnerManagedInstanceId pulumi.StringInput // A `readWriteEndpointFailoverPolicy` block as defined below. ReadWriteEndpointFailoverPolicy ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput // Failover policy for the read-only endpoint. Defaults to `true`. ReadonlyEndpointFailoverPolicyEnabled pulumi.BoolPtrInput // The name of the Resource Group where the SQL Instance Failover Group should exist. Changing this forces a new SQL Instance Failover Group to be created. ResourceGroupName pulumi.StringInput }
The set of arguments for constructing a ManagedInstanceFailoverGroup resource.
func (ManagedInstanceFailoverGroupArgs) ElementType ¶
func (ManagedInstanceFailoverGroupArgs) ElementType() reflect.Type
type ManagedInstanceFailoverGroupArray ¶
type ManagedInstanceFailoverGroupArray []ManagedInstanceFailoverGroupInput
func (ManagedInstanceFailoverGroupArray) ElementType ¶
func (ManagedInstanceFailoverGroupArray) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutput ¶
func (i ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutput() ManagedInstanceFailoverGroupArrayOutput
func (ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutputWithContext ¶
func (i ManagedInstanceFailoverGroupArray) ToManagedInstanceFailoverGroupArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupArrayOutput
type ManagedInstanceFailoverGroupArrayInput ¶
type ManagedInstanceFailoverGroupArrayInput interface { pulumi.Input ToManagedInstanceFailoverGroupArrayOutput() ManagedInstanceFailoverGroupArrayOutput ToManagedInstanceFailoverGroupArrayOutputWithContext(context.Context) ManagedInstanceFailoverGroupArrayOutput }
ManagedInstanceFailoverGroupArrayInput is an input type that accepts ManagedInstanceFailoverGroupArray and ManagedInstanceFailoverGroupArrayOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupArrayInput` via:
ManagedInstanceFailoverGroupArray{ ManagedInstanceFailoverGroupArgs{...} }
type ManagedInstanceFailoverGroupArrayOutput ¶
type ManagedInstanceFailoverGroupArrayOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupArrayOutput) ElementType ¶
func (ManagedInstanceFailoverGroupArrayOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutput ¶
func (o ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutput() ManagedInstanceFailoverGroupArrayOutput
func (ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutputWithContext ¶
func (o ManagedInstanceFailoverGroupArrayOutput) ToManagedInstanceFailoverGroupArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupArrayOutput
type ManagedInstanceFailoverGroupInput ¶
type ManagedInstanceFailoverGroupInput interface { pulumi.Input ToManagedInstanceFailoverGroupOutput() ManagedInstanceFailoverGroupOutput ToManagedInstanceFailoverGroupOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupOutput }
type ManagedInstanceFailoverGroupMap ¶
type ManagedInstanceFailoverGroupMap map[string]ManagedInstanceFailoverGroupInput
func (ManagedInstanceFailoverGroupMap) ElementType ¶
func (ManagedInstanceFailoverGroupMap) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutput ¶
func (i ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutput() ManagedInstanceFailoverGroupMapOutput
func (ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutputWithContext ¶
func (i ManagedInstanceFailoverGroupMap) ToManagedInstanceFailoverGroupMapOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupMapOutput
type ManagedInstanceFailoverGroupMapInput ¶
type ManagedInstanceFailoverGroupMapInput interface { pulumi.Input ToManagedInstanceFailoverGroupMapOutput() ManagedInstanceFailoverGroupMapOutput ToManagedInstanceFailoverGroupMapOutputWithContext(context.Context) ManagedInstanceFailoverGroupMapOutput }
ManagedInstanceFailoverGroupMapInput is an input type that accepts ManagedInstanceFailoverGroupMap and ManagedInstanceFailoverGroupMapOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupMapInput` via:
ManagedInstanceFailoverGroupMap{ "key": ManagedInstanceFailoverGroupArgs{...} }
type ManagedInstanceFailoverGroupMapOutput ¶
type ManagedInstanceFailoverGroupMapOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupMapOutput) ElementType ¶
func (ManagedInstanceFailoverGroupMapOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupMapOutput) MapIndex ¶
func (o ManagedInstanceFailoverGroupMapOutput) MapIndex(k pulumi.StringInput) ManagedInstanceFailoverGroupOutput
func (ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutput ¶
func (o ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutput() ManagedInstanceFailoverGroupMapOutput
func (ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutputWithContext ¶
func (o ManagedInstanceFailoverGroupMapOutput) ToManagedInstanceFailoverGroupMapOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupMapOutput
type ManagedInstanceFailoverGroupOutput ¶
type ManagedInstanceFailoverGroupOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupOutput) ElementType ¶
func (ManagedInstanceFailoverGroupOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupOutput) Location ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) Location() pulumi.StringOutput
The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created.
func (ManagedInstanceFailoverGroupOutput) ManagedInstanceName ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) ManagedInstanceName() pulumi.StringOutput
The name of the SQL Managed Instance which will be replicated using a SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created.
func (ManagedInstanceFailoverGroupOutput) Name ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) Name() pulumi.StringOutput
The name which should be used for this SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created.
func (ManagedInstanceFailoverGroupOutput) PartnerManagedInstanceId ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) PartnerManagedInstanceId() pulumi.StringOutput
ID of the SQL Managed Instance which will be replicated to. Changing this forces a new resource to be created.
func (ManagedInstanceFailoverGroupOutput) PartnerRegions ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) PartnerRegions() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
A `partnerRegion` block as defined below.
func (ManagedInstanceFailoverGroupOutput) ReadWriteEndpointFailoverPolicy ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) ReadWriteEndpointFailoverPolicy() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
A `readWriteEndpointFailoverPolicy` block as defined below.
func (ManagedInstanceFailoverGroupOutput) ReadonlyEndpointFailoverPolicyEnabled ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) ReadonlyEndpointFailoverPolicyEnabled() pulumi.BoolPtrOutput
Failover policy for the read-only endpoint. Defaults to `true`.
func (ManagedInstanceFailoverGroupOutput) ResourceGroupName ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) ResourceGroupName() pulumi.StringOutput
The name of the Resource Group where the SQL Instance Failover Group should exist. Changing this forces a new SQL Instance Failover Group to be created.
func (ManagedInstanceFailoverGroupOutput) Role ¶ added in v5.5.0
func (o ManagedInstanceFailoverGroupOutput) Role() pulumi.StringOutput
The partner replication role of the SQL Instance Failover Group.
func (ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutput ¶
func (o ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutput() ManagedInstanceFailoverGroupOutput
func (ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutputWithContext ¶
func (o ManagedInstanceFailoverGroupOutput) ToManagedInstanceFailoverGroupOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupOutput
type ManagedInstanceFailoverGroupPartnerRegion ¶
type ManagedInstanceFailoverGroupPartnerRegion struct { // The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created. Location *string `pulumi:"location"` // The partner replication role of the SQL Instance Failover Group. Role *string `pulumi:"role"` }
type ManagedInstanceFailoverGroupPartnerRegionArgs ¶
type ManagedInstanceFailoverGroupPartnerRegionArgs struct { // The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput `pulumi:"location"` // The partner replication role of the SQL Instance Failover Group. Role pulumi.StringPtrInput `pulumi:"role"` }
func (ManagedInstanceFailoverGroupPartnerRegionArgs) ElementType ¶
func (ManagedInstanceFailoverGroupPartnerRegionArgs) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutput ¶
func (i ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutput() ManagedInstanceFailoverGroupPartnerRegionOutput
func (ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext ¶
func (i ManagedInstanceFailoverGroupPartnerRegionArgs) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionOutput
type ManagedInstanceFailoverGroupPartnerRegionArray ¶
type ManagedInstanceFailoverGroupPartnerRegionArray []ManagedInstanceFailoverGroupPartnerRegionInput
func (ManagedInstanceFailoverGroupPartnerRegionArray) ElementType ¶
func (ManagedInstanceFailoverGroupPartnerRegionArray) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput ¶
func (i ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
func (ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext ¶
func (i ManagedInstanceFailoverGroupPartnerRegionArray) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionArrayOutput
type ManagedInstanceFailoverGroupPartnerRegionArrayInput ¶
type ManagedInstanceFailoverGroupPartnerRegionArrayInput interface { pulumi.Input ToManagedInstanceFailoverGroupPartnerRegionArrayOutput() ManagedInstanceFailoverGroupPartnerRegionArrayOutput ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext(context.Context) ManagedInstanceFailoverGroupPartnerRegionArrayOutput }
ManagedInstanceFailoverGroupPartnerRegionArrayInput is an input type that accepts ManagedInstanceFailoverGroupPartnerRegionArray and ManagedInstanceFailoverGroupPartnerRegionArrayOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupPartnerRegionArrayInput` via:
ManagedInstanceFailoverGroupPartnerRegionArray{ ManagedInstanceFailoverGroupPartnerRegionArgs{...} }
type ManagedInstanceFailoverGroupPartnerRegionArrayOutput ¶
type ManagedInstanceFailoverGroupPartnerRegionArrayOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ElementType ¶
func (ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput ¶
func (o ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutput() ManagedInstanceFailoverGroupPartnerRegionArrayOutput
func (ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext ¶
func (o ManagedInstanceFailoverGroupPartnerRegionArrayOutput) ToManagedInstanceFailoverGroupPartnerRegionArrayOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionArrayOutput
type ManagedInstanceFailoverGroupPartnerRegionInput ¶
type ManagedInstanceFailoverGroupPartnerRegionInput interface { pulumi.Input ToManagedInstanceFailoverGroupPartnerRegionOutput() ManagedInstanceFailoverGroupPartnerRegionOutput ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext(context.Context) ManagedInstanceFailoverGroupPartnerRegionOutput }
ManagedInstanceFailoverGroupPartnerRegionInput is an input type that accepts ManagedInstanceFailoverGroupPartnerRegionArgs and ManagedInstanceFailoverGroupPartnerRegionOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupPartnerRegionInput` via:
ManagedInstanceFailoverGroupPartnerRegionArgs{...}
type ManagedInstanceFailoverGroupPartnerRegionOutput ¶
type ManagedInstanceFailoverGroupPartnerRegionOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupPartnerRegionOutput) ElementType ¶
func (ManagedInstanceFailoverGroupPartnerRegionOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupPartnerRegionOutput) Location ¶
func (o ManagedInstanceFailoverGroupPartnerRegionOutput) Location() pulumi.StringPtrOutput
The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created.
func (ManagedInstanceFailoverGroupPartnerRegionOutput) Role ¶
func (o ManagedInstanceFailoverGroupPartnerRegionOutput) Role() pulumi.StringPtrOutput
The partner replication role of the SQL Instance Failover Group.
func (ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutput ¶
func (o ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutput() ManagedInstanceFailoverGroupPartnerRegionOutput
func (ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext ¶
func (o ManagedInstanceFailoverGroupPartnerRegionOutput) ToManagedInstanceFailoverGroupPartnerRegionOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupPartnerRegionOutput
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicy struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted. GraceMinutes *int `pulumi:"graceMinutes"` // The failover mode. Possible values are `Manual`, `Automatic` Mode string `pulumi:"mode"` }
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs struct { // Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted. GraceMinutes pulumi.IntPtrInput `pulumi:"graceMinutes"` // The failover mode. Possible values are `Manual`, `Automatic` Mode pulumi.StringInput `pulumi:"mode"` }
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType ¶
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶
func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (i ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput interface { pulumi.Input ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput }
ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput is an input type that accepts ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs and ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyInput` via:
ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs{...}
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType ¶
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) Mode() pulumi.StringOutput
The failover mode. Possible values are `Manual`, `Automatic`
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput interface { pulumi.Input ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput }
ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput is an input type that accepts ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs, ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtr and ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput values. You can construct a concrete instance of `ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput` via:
ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs{...} or: nil
func ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtr ¶
func ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtr(v *ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyArgs) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
type ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput struct{ *pulumi.OutputState }
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType ¶
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ElementType() reflect.Type
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) GraceMinutes() pulumi.IntPtrOutput
Applies only if `mode` is `Automatic`. The grace period in minutes before failover with data loss is attempted.
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) Mode() pulumi.StringPtrOutput
The failover mode. Possible values are `Manual`, `Automatic`
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput() ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
func (ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext ¶
func (o ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput) ToManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutputWithContext(ctx context.Context) ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrOutput
type ManagedInstanceFailoverGroupState ¶
type ManagedInstanceFailoverGroupState struct { // The Azure Region where the SQL Instance Failover Group exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the SQL Managed Instance which will be replicated using a SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. ManagedInstanceName pulumi.StringPtrInput // The name which should be used for this SQL Instance Failover Group. Changing this forces a new SQL Instance Failover Group to be created. Name pulumi.StringPtrInput // ID of the SQL Managed Instance which will be replicated to. Changing this forces a new resource to be created. PartnerManagedInstanceId pulumi.StringPtrInput // A `partnerRegion` block as defined below. PartnerRegions ManagedInstanceFailoverGroupPartnerRegionArrayInput // A `readWriteEndpointFailoverPolicy` block as defined below. ReadWriteEndpointFailoverPolicy ManagedInstanceFailoverGroupReadWriteEndpointFailoverPolicyPtrInput // Failover policy for the read-only endpoint. Defaults to `true`. ReadonlyEndpointFailoverPolicyEnabled pulumi.BoolPtrInput // The name of the Resource Group where the SQL Instance Failover Group should exist. Changing this forces a new SQL Instance Failover Group to be created. ResourceGroupName pulumi.StringPtrInput // The partner replication role of the SQL Instance Failover Group. Role pulumi.StringPtrInput }
func (ManagedInstanceFailoverGroupState) ElementType ¶
func (ManagedInstanceFailoverGroupState) ElementType() reflect.Type
type ManagedInstanceIdentity ¶
type ManagedInstanceIdentity struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance. PrincipalId *string `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance. TenantId *string `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. The only possible value is `SystemAssigned`. Type string `pulumi:"type"` }
type ManagedInstanceIdentityArgs ¶
type ManagedInstanceIdentityArgs struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. The only possible value is `SystemAssigned`. Type pulumi.StringInput `pulumi:"type"` }
func (ManagedInstanceIdentityArgs) ElementType ¶
func (ManagedInstanceIdentityArgs) ElementType() reflect.Type
func (ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutput ¶
func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutput() ManagedInstanceIdentityOutput
func (ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutputWithContext ¶
func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityOutputWithContext(ctx context.Context) ManagedInstanceIdentityOutput
func (ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutput ¶
func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
func (ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutputWithContext ¶
func (i ManagedInstanceIdentityArgs) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
type ManagedInstanceIdentityInput ¶
type ManagedInstanceIdentityInput interface { pulumi.Input ToManagedInstanceIdentityOutput() ManagedInstanceIdentityOutput ToManagedInstanceIdentityOutputWithContext(context.Context) ManagedInstanceIdentityOutput }
ManagedInstanceIdentityInput is an input type that accepts ManagedInstanceIdentityArgs and ManagedInstanceIdentityOutput values. You can construct a concrete instance of `ManagedInstanceIdentityInput` via:
ManagedInstanceIdentityArgs{...}
type ManagedInstanceIdentityOutput ¶
type ManagedInstanceIdentityOutput struct{ *pulumi.OutputState }
func (ManagedInstanceIdentityOutput) ElementType ¶
func (ManagedInstanceIdentityOutput) ElementType() reflect.Type
func (ManagedInstanceIdentityOutput) PrincipalId ¶
func (o ManagedInstanceIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (ManagedInstanceIdentityOutput) TenantId ¶
func (o ManagedInstanceIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutput ¶
func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutput() ManagedInstanceIdentityOutput
func (ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutputWithContext ¶
func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityOutputWithContext(ctx context.Context) ManagedInstanceIdentityOutput
func (ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutput ¶
func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
func (ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutputWithContext ¶
func (o ManagedInstanceIdentityOutput) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
func (ManagedInstanceIdentityOutput) Type ¶
func (o ManagedInstanceIdentityOutput) Type() pulumi.StringOutput
Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. The only possible value is `SystemAssigned`.
type ManagedInstanceIdentityPtrInput ¶
type ManagedInstanceIdentityPtrInput interface { pulumi.Input ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput ToManagedInstanceIdentityPtrOutputWithContext(context.Context) ManagedInstanceIdentityPtrOutput }
ManagedInstanceIdentityPtrInput is an input type that accepts ManagedInstanceIdentityArgs, ManagedInstanceIdentityPtr and ManagedInstanceIdentityPtrOutput values. You can construct a concrete instance of `ManagedInstanceIdentityPtrInput` via:
ManagedInstanceIdentityArgs{...} or: nil
func ManagedInstanceIdentityPtr ¶
func ManagedInstanceIdentityPtr(v *ManagedInstanceIdentityArgs) ManagedInstanceIdentityPtrInput
type ManagedInstanceIdentityPtrOutput ¶
type ManagedInstanceIdentityPtrOutput struct{ *pulumi.OutputState }
func (ManagedInstanceIdentityPtrOutput) Elem ¶
func (o ManagedInstanceIdentityPtrOutput) Elem() ManagedInstanceIdentityOutput
func (ManagedInstanceIdentityPtrOutput) ElementType ¶
func (ManagedInstanceIdentityPtrOutput) ElementType() reflect.Type
func (ManagedInstanceIdentityPtrOutput) PrincipalId ¶
func (o ManagedInstanceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (ManagedInstanceIdentityPtrOutput) TenantId ¶
func (o ManagedInstanceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
func (ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutput ¶
func (o ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutput() ManagedInstanceIdentityPtrOutput
func (ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutputWithContext ¶
func (o ManagedInstanceIdentityPtrOutput) ToManagedInstanceIdentityPtrOutputWithContext(ctx context.Context) ManagedInstanceIdentityPtrOutput
func (ManagedInstanceIdentityPtrOutput) Type ¶
func (o ManagedInstanceIdentityPtrOutput) Type() pulumi.StringPtrOutput
Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. The only possible value is `SystemAssigned`.
type ManagedInstanceInput ¶
type ManagedInstanceInput interface { pulumi.Input ToManagedInstanceOutput() ManagedInstanceOutput ToManagedInstanceOutputWithContext(ctx context.Context) ManagedInstanceOutput }
type ManagedInstanceMap ¶
type ManagedInstanceMap map[string]ManagedInstanceInput
func (ManagedInstanceMap) ElementType ¶
func (ManagedInstanceMap) ElementType() reflect.Type
func (ManagedInstanceMap) ToManagedInstanceMapOutput ¶
func (i ManagedInstanceMap) ToManagedInstanceMapOutput() ManagedInstanceMapOutput
func (ManagedInstanceMap) ToManagedInstanceMapOutputWithContext ¶
func (i ManagedInstanceMap) ToManagedInstanceMapOutputWithContext(ctx context.Context) ManagedInstanceMapOutput
type ManagedInstanceMapInput ¶
type ManagedInstanceMapInput interface { pulumi.Input ToManagedInstanceMapOutput() ManagedInstanceMapOutput ToManagedInstanceMapOutputWithContext(context.Context) ManagedInstanceMapOutput }
ManagedInstanceMapInput is an input type that accepts ManagedInstanceMap and ManagedInstanceMapOutput values. You can construct a concrete instance of `ManagedInstanceMapInput` via:
ManagedInstanceMap{ "key": ManagedInstanceArgs{...} }
type ManagedInstanceMapOutput ¶
type ManagedInstanceMapOutput struct{ *pulumi.OutputState }
func (ManagedInstanceMapOutput) ElementType ¶
func (ManagedInstanceMapOutput) ElementType() reflect.Type
func (ManagedInstanceMapOutput) MapIndex ¶
func (o ManagedInstanceMapOutput) MapIndex(k pulumi.StringInput) ManagedInstanceOutput
func (ManagedInstanceMapOutput) ToManagedInstanceMapOutput ¶
func (o ManagedInstanceMapOutput) ToManagedInstanceMapOutput() ManagedInstanceMapOutput
func (ManagedInstanceMapOutput) ToManagedInstanceMapOutputWithContext ¶
func (o ManagedInstanceMapOutput) ToManagedInstanceMapOutputWithContext(ctx context.Context) ManagedInstanceMapOutput
type ManagedInstanceOutput ¶
type ManagedInstanceOutput struct{ *pulumi.OutputState }
func (ManagedInstanceOutput) AdministratorLogin ¶ added in v5.5.0
func (o ManagedInstanceOutput) AdministratorLogin() pulumi.StringOutput
The administrator login name for the new server. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) AdministratorLoginPassword ¶ added in v5.5.0
func (o ManagedInstanceOutput) AdministratorLoginPassword() pulumi.StringOutput
The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx)
func (ManagedInstanceOutput) Collation ¶ added in v5.5.0
func (o ManagedInstanceOutput) Collation() pulumi.StringPtrOutput
Specifies how the SQL Managed Instance will be collated. Default value is `SQL_Latin1_General_CP1_CI_AS`. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) DnsZonePartnerId ¶ added in v5.5.0
func (o ManagedInstanceOutput) DnsZonePartnerId() pulumi.StringPtrOutput
The ID of the Managed Instance which will share the DNS zone. This is a prerequisite for creating a `sql.ManagedInstanceFailoverGroup`. Setting this after creation forces a new resource to be created.
func (ManagedInstanceOutput) ElementType ¶
func (ManagedInstanceOutput) ElementType() reflect.Type
func (ManagedInstanceOutput) Fqdn ¶ added in v5.5.0
func (o ManagedInstanceOutput) Fqdn() pulumi.StringOutput
The fully qualified domain name of the Azure Managed SQL Instance
func (ManagedInstanceOutput) Identity ¶ added in v5.5.0
func (o ManagedInstanceOutput) Identity() ManagedInstanceIdentityPtrOutput
An `identity` block as defined below.
func (ManagedInstanceOutput) LicenseType ¶ added in v5.5.0
func (o ManagedInstanceOutput) LicenseType() pulumi.StringOutput
What type of license the Managed Instance will use. Valid values include can be `LicenseIncluded` or `BasePrice`.
func (ManagedInstanceOutput) Location ¶ added in v5.5.0
func (o ManagedInstanceOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) MinimumTlsVersion ¶ added in v5.5.0
func (o ManagedInstanceOutput) MinimumTlsVersion() pulumi.StringPtrOutput
The Minimum TLS Version. Default value is `1.2` Valid values include `1.0`, `1.1`, `1.2`.
func (ManagedInstanceOutput) Name ¶ added in v5.5.0
func (o ManagedInstanceOutput) Name() pulumi.StringOutput
The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) ProxyOverride ¶ added in v5.5.0
func (o ManagedInstanceOutput) ProxyOverride() pulumi.StringPtrOutput
Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`.
func (ManagedInstanceOutput) PublicDataEndpointEnabled ¶ added in v5.5.0
func (o ManagedInstanceOutput) PublicDataEndpointEnabled() pulumi.BoolPtrOutput
Is the public data endpoint enabled? Default value is `false`.
func (ManagedInstanceOutput) ResourceGroupName ¶ added in v5.5.0
func (o ManagedInstanceOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) SkuName ¶ added in v5.5.0
func (o ManagedInstanceOutput) SkuName() pulumi.StringOutput
Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `BC_Gen4`, `BC_Gen5`.
func (ManagedInstanceOutput) StorageAccountType ¶ added in v5.5.0
func (o ManagedInstanceOutput) StorageAccountType() pulumi.StringPtrOutput
Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `LRS` and `ZRS`. The default value is `GRS`.
func (ManagedInstanceOutput) StorageSizeInGb ¶ added in v5.5.0
func (o ManagedInstanceOutput) StorageSizeInGb() pulumi.IntOutput
Maximum storage space for your instance. It should be a multiple of 32GB.
func (ManagedInstanceOutput) SubnetId ¶ added in v5.5.0
func (o ManagedInstanceOutput) SubnetId() pulumi.StringOutput
The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) Tags ¶ added in v5.5.0
func (o ManagedInstanceOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (ManagedInstanceOutput) TimezoneId ¶ added in v5.5.0
func (o ManagedInstanceOutput) TimezoneId() pulumi.StringPtrOutput
The TimeZone ID that the SQL Managed Instance will be operating in. Default value is `UTC`. Changing this forces a new resource to be created.
func (ManagedInstanceOutput) ToManagedInstanceOutput ¶
func (o ManagedInstanceOutput) ToManagedInstanceOutput() ManagedInstanceOutput
func (ManagedInstanceOutput) ToManagedInstanceOutputWithContext ¶
func (o ManagedInstanceOutput) ToManagedInstanceOutputWithContext(ctx context.Context) ManagedInstanceOutput
func (ManagedInstanceOutput) Vcores ¶ added in v5.5.0
func (o ManagedInstanceOutput) Vcores() pulumi.IntOutput
Number of cores that should be assigned to your instance. Values can be `8`, `16`, or `24` if `skuName` is `GP_Gen4`, or `8`, `16`, `24`, `32`, or `40` if `skuName` is `GP_Gen5`.
type ManagedInstanceState ¶
type ManagedInstanceState struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringPtrInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringPtrInput // Specifies how the SQL Managed Instance will be collated. Default value is `SQL_Latin1_General_CP1_CI_AS`. Changing this forces a new resource to be created. Collation pulumi.StringPtrInput // The ID of the Managed Instance which will share the DNS zone. This is a prerequisite for creating a `sql.ManagedInstanceFailoverGroup`. Setting this after creation forces a new resource to be created. DnsZonePartnerId pulumi.StringPtrInput // The fully qualified domain name of the Azure Managed SQL Instance Fqdn pulumi.StringPtrInput // An `identity` block as defined below. Identity ManagedInstanceIdentityPtrInput // What type of license the Managed Instance will use. Valid values include can be `LicenseIncluded` or `BasePrice`. LicenseType pulumi.StringPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The Minimum TLS Version. Default value is `1.2` Valid values include `1.0`, `1.1`, `1.2`. MinimumTlsVersion pulumi.StringPtrInput // The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // Specifies how the SQL Managed Instance will be accessed. Default value is `Default`. Valid values include `Default`, `Proxy`, and `Redirect`. ProxyOverride pulumi.StringPtrInput // Is the public data endpoint enabled? Default value is `false`. PublicDataEndpointEnabled pulumi.BoolPtrInput // The name of the resource group in which to create the SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // Specifies the SKU Name for the SQL Managed Instance. Valid values include `GP_Gen4`, `GP_Gen5`, `BC_Gen4`, `BC_Gen5`. SkuName pulumi.StringPtrInput // Specifies the storage account type used to store backups for this database. Changing this forces a new resource to be created. Possible values are `GRS`, `LRS` and `ZRS`. The default value is `GRS`. StorageAccountType pulumi.StringPtrInput // Maximum storage space for your instance. It should be a multiple of 32GB. StorageSizeInGb pulumi.IntPtrInput // The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created. SubnetId pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // The TimeZone ID that the SQL Managed Instance will be operating in. Default value is `UTC`. Changing this forces a new resource to be created. TimezoneId pulumi.StringPtrInput // Number of cores that should be assigned to your instance. Values can be `8`, `16`, or `24` if `skuName` is `GP_Gen4`, or `8`, `16`, `24`, `32`, or `40` if `skuName` is `GP_Gen5`. Vcores pulumi.IntPtrInput }
func (ManagedInstanceState) ElementType ¶
func (ManagedInstanceState) ElementType() reflect.Type
type SqlServer ¶
type SqlServer struct { pulumi.CustomResourceState // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringOutput `pulumi:"administratorLogin"` // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringOutput `pulumi:"administratorLoginPassword"` // The connection policy the server will use. Possible values are `Default`, `Proxy`, and `Redirect`. Defaults to `Default`. ConnectionPolicy pulumi.StringPtrOutput `pulumi:"connectionPolicy"` // The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net) FullyQualifiedDomainName pulumi.StringOutput `pulumi:"fullyQualifiedDomainName"` // An `identity` block as defined below. Identity SqlServerIdentityPtrOutput `pulumi:"identity"` // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringOutput `pulumi:"location"` // The name of the Microsoft SQL Server. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group in which to create the Microsoft SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // A mapping of tags to assign to the resource. Tags pulumi.StringMapOutput `pulumi:"tags"` // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy SqlServerThreatDetectionPolicyOutput `pulumi:"threatDetectionPolicy"` // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Changing this forces a new resource to be created. Version pulumi.StringOutput `pulumi:"version"` }
Manages a Microsoft SQL Azure Database Server.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } _, err = storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, AccountTier: pulumi.String("Standard"), AccountReplicationType: pulumi.String("LRS"), }) if err != nil { return err } _, err = sql.NewSqlServer(ctx, "exampleSqlServer", &sql.SqlServerArgs{ ResourceGroupName: exampleResourceGroup.Name, Location: exampleResourceGroup.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("mradministrator"), AdministratorLoginPassword: pulumi.String("thisIsDog11"), Tags: pulumi.StringMap{ "environment": pulumi.String("production"), }, }) if err != nil { return err } return nil }) }
```
## Import
SQL Servers can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/sqlServer:SqlServer example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver
```
func GetSqlServer ¶
func GetSqlServer(ctx *pulumi.Context, name string, id pulumi.IDInput, state *SqlServerState, opts ...pulumi.ResourceOption) (*SqlServer, error)
GetSqlServer gets an existing SqlServer resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewSqlServer ¶
func NewSqlServer(ctx *pulumi.Context, name string, args *SqlServerArgs, opts ...pulumi.ResourceOption) (*SqlServer, error)
NewSqlServer registers a new resource with the given unique name, arguments, and options.
func (*SqlServer) ElementType ¶
func (*SqlServer) ToSqlServerOutput ¶
func (i *SqlServer) ToSqlServerOutput() SqlServerOutput
func (*SqlServer) ToSqlServerOutputWithContext ¶
func (i *SqlServer) ToSqlServerOutputWithContext(ctx context.Context) SqlServerOutput
type SqlServerArgs ¶
type SqlServerArgs struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringInput // The connection policy the server will use. Possible values are `Default`, `Proxy`, and `Redirect`. Defaults to `Default`. ConnectionPolicy pulumi.StringPtrInput // An `identity` block as defined below. Identity SqlServerIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the Microsoft SQL Server. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Microsoft SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy SqlServerThreatDetectionPolicyPtrInput // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Changing this forces a new resource to be created. Version pulumi.StringInput }
The set of arguments for constructing a SqlServer resource.
func (SqlServerArgs) ElementType ¶
func (SqlServerArgs) ElementType() reflect.Type
type SqlServerArray ¶
type SqlServerArray []SqlServerInput
func (SqlServerArray) ElementType ¶
func (SqlServerArray) ElementType() reflect.Type
func (SqlServerArray) ToSqlServerArrayOutput ¶
func (i SqlServerArray) ToSqlServerArrayOutput() SqlServerArrayOutput
func (SqlServerArray) ToSqlServerArrayOutputWithContext ¶
func (i SqlServerArray) ToSqlServerArrayOutputWithContext(ctx context.Context) SqlServerArrayOutput
type SqlServerArrayInput ¶
type SqlServerArrayInput interface { pulumi.Input ToSqlServerArrayOutput() SqlServerArrayOutput ToSqlServerArrayOutputWithContext(context.Context) SqlServerArrayOutput }
SqlServerArrayInput is an input type that accepts SqlServerArray and SqlServerArrayOutput values. You can construct a concrete instance of `SqlServerArrayInput` via:
SqlServerArray{ SqlServerArgs{...} }
type SqlServerArrayOutput ¶
type SqlServerArrayOutput struct{ *pulumi.OutputState }
func (SqlServerArrayOutput) ElementType ¶
func (SqlServerArrayOutput) ElementType() reflect.Type
func (SqlServerArrayOutput) Index ¶
func (o SqlServerArrayOutput) Index(i pulumi.IntInput) SqlServerOutput
func (SqlServerArrayOutput) ToSqlServerArrayOutput ¶
func (o SqlServerArrayOutput) ToSqlServerArrayOutput() SqlServerArrayOutput
func (SqlServerArrayOutput) ToSqlServerArrayOutputWithContext ¶
func (o SqlServerArrayOutput) ToSqlServerArrayOutputWithContext(ctx context.Context) SqlServerArrayOutput
type SqlServerIdentity ¶
type SqlServerIdentity struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Server. PrincipalId *string `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Server. TenantId *string `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this SQL Server. The only possible value is `SystemAssigned`. // // > **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Microsoft SQL Server has been created. More details are available below. Type string `pulumi:"type"` }
type SqlServerIdentityArgs ¶
type SqlServerIdentityArgs struct { // The Principal ID for the Service Principal associated with the Identity of this SQL Server. PrincipalId pulumi.StringPtrInput `pulumi:"principalId"` // The Tenant ID for the Service Principal associated with the Identity of this SQL Server. TenantId pulumi.StringPtrInput `pulumi:"tenantId"` // Specifies the type of Managed Service Identity that should be configured on this SQL Server. The only possible value is `SystemAssigned`. // // > **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Microsoft SQL Server has been created. More details are available below. Type pulumi.StringInput `pulumi:"type"` }
func (SqlServerIdentityArgs) ElementType ¶
func (SqlServerIdentityArgs) ElementType() reflect.Type
func (SqlServerIdentityArgs) ToSqlServerIdentityOutput ¶
func (i SqlServerIdentityArgs) ToSqlServerIdentityOutput() SqlServerIdentityOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext ¶
func (i SqlServerIdentityArgs) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput ¶
func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext ¶
func (i SqlServerIdentityArgs) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
type SqlServerIdentityInput ¶
type SqlServerIdentityInput interface { pulumi.Input ToSqlServerIdentityOutput() SqlServerIdentityOutput ToSqlServerIdentityOutputWithContext(context.Context) SqlServerIdentityOutput }
SqlServerIdentityInput is an input type that accepts SqlServerIdentityArgs and SqlServerIdentityOutput values. You can construct a concrete instance of `SqlServerIdentityInput` via:
SqlServerIdentityArgs{...}
type SqlServerIdentityOutput ¶
type SqlServerIdentityOutput struct{ *pulumi.OutputState }
func (SqlServerIdentityOutput) ElementType ¶
func (SqlServerIdentityOutput) ElementType() reflect.Type
func (SqlServerIdentityOutput) PrincipalId ¶
func (o SqlServerIdentityOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityOutput) TenantId ¶
func (o SqlServerIdentityOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityOutput) ToSqlServerIdentityOutput ¶
func (o SqlServerIdentityOutput) ToSqlServerIdentityOutput() SqlServerIdentityOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext ¶
func (o SqlServerIdentityOutput) ToSqlServerIdentityOutputWithContext(ctx context.Context) SqlServerIdentityOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput ¶
func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext ¶
func (o SqlServerIdentityOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
func (SqlServerIdentityOutput) Type ¶
func (o SqlServerIdentityOutput) Type() pulumi.StringOutput
Specifies the type of Managed Service Identity that should be configured on this SQL Server. The only possible value is `SystemAssigned`.
> **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Microsoft SQL Server has been created. More details are available below.
type SqlServerIdentityPtrInput ¶
type SqlServerIdentityPtrInput interface { pulumi.Input ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput ToSqlServerIdentityPtrOutputWithContext(context.Context) SqlServerIdentityPtrOutput }
SqlServerIdentityPtrInput is an input type that accepts SqlServerIdentityArgs, SqlServerIdentityPtr and SqlServerIdentityPtrOutput values. You can construct a concrete instance of `SqlServerIdentityPtrInput` via:
SqlServerIdentityArgs{...} or: nil
func SqlServerIdentityPtr ¶
func SqlServerIdentityPtr(v *SqlServerIdentityArgs) SqlServerIdentityPtrInput
type SqlServerIdentityPtrOutput ¶
type SqlServerIdentityPtrOutput struct{ *pulumi.OutputState }
func (SqlServerIdentityPtrOutput) Elem ¶
func (o SqlServerIdentityPtrOutput) Elem() SqlServerIdentityOutput
func (SqlServerIdentityPtrOutput) ElementType ¶
func (SqlServerIdentityPtrOutput) ElementType() reflect.Type
func (SqlServerIdentityPtrOutput) PrincipalId ¶
func (o SqlServerIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput
The Principal ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityPtrOutput) TenantId ¶
func (o SqlServerIdentityPtrOutput) TenantId() pulumi.StringPtrOutput
The Tenant ID for the Service Principal associated with the Identity of this SQL Server.
func (SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput ¶
func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutput() SqlServerIdentityPtrOutput
func (SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext ¶
func (o SqlServerIdentityPtrOutput) ToSqlServerIdentityPtrOutputWithContext(ctx context.Context) SqlServerIdentityPtrOutput
func (SqlServerIdentityPtrOutput) Type ¶
func (o SqlServerIdentityPtrOutput) Type() pulumi.StringPtrOutput
Specifies the type of Managed Service Identity that should be configured on this SQL Server. The only possible value is `SystemAssigned`.
> **NOTE:** The assigned `principalId` and `tenantId` can be retrieved after the identity `type` has been set to `SystemAssigned` and the Microsoft SQL Server has been created. More details are available below.
type SqlServerInput ¶
type SqlServerInput interface { pulumi.Input ToSqlServerOutput() SqlServerOutput ToSqlServerOutputWithContext(ctx context.Context) SqlServerOutput }
type SqlServerMap ¶
type SqlServerMap map[string]SqlServerInput
func (SqlServerMap) ElementType ¶
func (SqlServerMap) ElementType() reflect.Type
func (SqlServerMap) ToSqlServerMapOutput ¶
func (i SqlServerMap) ToSqlServerMapOutput() SqlServerMapOutput
func (SqlServerMap) ToSqlServerMapOutputWithContext ¶
func (i SqlServerMap) ToSqlServerMapOutputWithContext(ctx context.Context) SqlServerMapOutput
type SqlServerMapInput ¶
type SqlServerMapInput interface { pulumi.Input ToSqlServerMapOutput() SqlServerMapOutput ToSqlServerMapOutputWithContext(context.Context) SqlServerMapOutput }
SqlServerMapInput is an input type that accepts SqlServerMap and SqlServerMapOutput values. You can construct a concrete instance of `SqlServerMapInput` via:
SqlServerMap{ "key": SqlServerArgs{...} }
type SqlServerMapOutput ¶
type SqlServerMapOutput struct{ *pulumi.OutputState }
func (SqlServerMapOutput) ElementType ¶
func (SqlServerMapOutput) ElementType() reflect.Type
func (SqlServerMapOutput) MapIndex ¶
func (o SqlServerMapOutput) MapIndex(k pulumi.StringInput) SqlServerOutput
func (SqlServerMapOutput) ToSqlServerMapOutput ¶
func (o SqlServerMapOutput) ToSqlServerMapOutput() SqlServerMapOutput
func (SqlServerMapOutput) ToSqlServerMapOutputWithContext ¶
func (o SqlServerMapOutput) ToSqlServerMapOutputWithContext(ctx context.Context) SqlServerMapOutput
type SqlServerOutput ¶
type SqlServerOutput struct{ *pulumi.OutputState }
func (SqlServerOutput) AdministratorLogin ¶ added in v5.5.0
func (o SqlServerOutput) AdministratorLogin() pulumi.StringOutput
The administrator login name for the new server. Changing this forces a new resource to be created.
func (SqlServerOutput) AdministratorLoginPassword ¶ added in v5.5.0
func (o SqlServerOutput) AdministratorLoginPassword() pulumi.StringOutput
The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx)
func (SqlServerOutput) ConnectionPolicy ¶ added in v5.5.0
func (o SqlServerOutput) ConnectionPolicy() pulumi.StringPtrOutput
The connection policy the server will use. Possible values are `Default`, `Proxy`, and `Redirect`. Defaults to `Default`.
func (SqlServerOutput) ElementType ¶
func (SqlServerOutput) ElementType() reflect.Type
func (SqlServerOutput) FullyQualifiedDomainName ¶ added in v5.5.0
func (o SqlServerOutput) FullyQualifiedDomainName() pulumi.StringOutput
The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net)
func (SqlServerOutput) Identity ¶ added in v5.5.0
func (o SqlServerOutput) Identity() SqlServerIdentityPtrOutput
An `identity` block as defined below.
func (SqlServerOutput) Location ¶ added in v5.5.0
func (o SqlServerOutput) Location() pulumi.StringOutput
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
func (SqlServerOutput) Name ¶ added in v5.5.0
func (o SqlServerOutput) Name() pulumi.StringOutput
The name of the Microsoft SQL Server. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
func (SqlServerOutput) ResourceGroupName ¶ added in v5.5.0
func (o SqlServerOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group in which to create the Microsoft SQL Server. Changing this forces a new resource to be created.
func (SqlServerOutput) Tags ¶ added in v5.5.0
func (o SqlServerOutput) Tags() pulumi.StringMapOutput
A mapping of tags to assign to the resource.
func (SqlServerOutput) ThreatDetectionPolicy ¶ added in v5.5.0
func (o SqlServerOutput) ThreatDetectionPolicy() SqlServerThreatDetectionPolicyOutput
Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below.
func (SqlServerOutput) ToSqlServerOutput ¶
func (o SqlServerOutput) ToSqlServerOutput() SqlServerOutput
func (SqlServerOutput) ToSqlServerOutputWithContext ¶
func (o SqlServerOutput) ToSqlServerOutputWithContext(ctx context.Context) SqlServerOutput
func (SqlServerOutput) Version ¶ added in v5.5.0
func (o SqlServerOutput) Version() pulumi.StringOutput
The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Changing this forces a new resource to be created.
type SqlServerState ¶
type SqlServerState struct { // The administrator login name for the new server. Changing this forces a new resource to be created. AdministratorLogin pulumi.StringPtrInput // The password associated with the `administratorLogin` user. Needs to comply with Azure's [Password Policy](https://msdn.microsoft.com/library/ms161959.aspx) AdministratorLoginPassword pulumi.StringPtrInput // The connection policy the server will use. Possible values are `Default`, `Proxy`, and `Redirect`. Defaults to `Default`. ConnectionPolicy pulumi.StringPtrInput // The fully qualified domain name of the Azure SQL Server (e.g. myServerName.database.windows.net) FullyQualifiedDomainName pulumi.StringPtrInput // An `identity` block as defined below. Identity SqlServerIdentityPtrInput // Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Location pulumi.StringPtrInput // The name of the Microsoft SQL Server. This needs to be globally unique within Azure. Changing this forces a new resource to be created. Name pulumi.StringPtrInput // The name of the resource group in which to create the Microsoft SQL Server. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // A mapping of tags to assign to the resource. Tags pulumi.StringMapInput // Threat detection policy configuration. The `threatDetectionPolicy` block supports fields documented below. ThreatDetectionPolicy SqlServerThreatDetectionPolicyPtrInput // The version for the new server. Valid values are: 2.0 (for v11 server) and 12.0 (for v12 server). Changing this forces a new resource to be created. Version pulumi.StringPtrInput }
func (SqlServerState) ElementType ¶
func (SqlServerState) ElementType() reflect.Type
type SqlServerThreatDetectionPolicy ¶
type SqlServerThreatDetectionPolicy struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,. DisabledAlerts []string `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? EmailAccountAdmins *bool `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses []string `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays *int `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Disabled`, `Enabled` and `New`. State *string `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey *string `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint *string `pulumi:"storageEndpoint"` }
type SqlServerThreatDetectionPolicyArgs ¶
type SqlServerThreatDetectionPolicyArgs struct { // Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,. DisabledAlerts pulumi.StringArrayInput `pulumi:"disabledAlerts"` // Should the account administrators be emailed when this alert is triggered? EmailAccountAdmins pulumi.BoolPtrInput `pulumi:"emailAccountAdmins"` // A list of email addresses which alerts should be sent to. EmailAddresses pulumi.StringArrayInput `pulumi:"emailAddresses"` // Specifies the number of days to keep in the Threat Detection audit logs. RetentionDays pulumi.IntPtrInput `pulumi:"retentionDays"` // The State of the Policy. Possible values are `Disabled`, `Enabled` and `New`. State pulumi.StringPtrInput `pulumi:"state"` // Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`. StorageAccountAccessKey pulumi.StringPtrInput `pulumi:"storageAccountAccessKey"` // Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`. StorageEndpoint pulumi.StringPtrInput `pulumi:"storageEndpoint"` }
func (SqlServerThreatDetectionPolicyArgs) ElementType ¶
func (SqlServerThreatDetectionPolicyArgs) ElementType() reflect.Type
func (SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutput ¶
func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutput() SqlServerThreatDetectionPolicyOutput
func (SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutputWithContext ¶
func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyOutput
func (SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutput ¶
func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
func (SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutputWithContext ¶
func (i SqlServerThreatDetectionPolicyArgs) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
type SqlServerThreatDetectionPolicyInput ¶
type SqlServerThreatDetectionPolicyInput interface { pulumi.Input ToSqlServerThreatDetectionPolicyOutput() SqlServerThreatDetectionPolicyOutput ToSqlServerThreatDetectionPolicyOutputWithContext(context.Context) SqlServerThreatDetectionPolicyOutput }
SqlServerThreatDetectionPolicyInput is an input type that accepts SqlServerThreatDetectionPolicyArgs and SqlServerThreatDetectionPolicyOutput values. You can construct a concrete instance of `SqlServerThreatDetectionPolicyInput` via:
SqlServerThreatDetectionPolicyArgs{...}
type SqlServerThreatDetectionPolicyOutput ¶
type SqlServerThreatDetectionPolicyOutput struct{ *pulumi.OutputState }
func (SqlServerThreatDetectionPolicyOutput) DisabledAlerts ¶
func (o SqlServerThreatDetectionPolicyOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,.
func (SqlServerThreatDetectionPolicyOutput) ElementType ¶
func (SqlServerThreatDetectionPolicyOutput) ElementType() reflect.Type
func (SqlServerThreatDetectionPolicyOutput) EmailAccountAdmins ¶
func (o SqlServerThreatDetectionPolicyOutput) EmailAccountAdmins() pulumi.BoolPtrOutput
Should the account administrators be emailed when this alert is triggered?
func (SqlServerThreatDetectionPolicyOutput) EmailAddresses ¶
func (o SqlServerThreatDetectionPolicyOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (SqlServerThreatDetectionPolicyOutput) RetentionDays ¶
func (o SqlServerThreatDetectionPolicyOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (SqlServerThreatDetectionPolicyOutput) State ¶
func (o SqlServerThreatDetectionPolicyOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Disabled`, `Enabled` and `New`.
func (SqlServerThreatDetectionPolicyOutput) StorageAccountAccessKey ¶
func (o SqlServerThreatDetectionPolicyOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (SqlServerThreatDetectionPolicyOutput) StorageEndpoint ¶
func (o SqlServerThreatDetectionPolicyOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutput ¶
func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutput() SqlServerThreatDetectionPolicyOutput
func (SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutputWithContext ¶
func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyOutput
func (SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutput ¶
func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
func (SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext ¶
func (o SqlServerThreatDetectionPolicyOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
type SqlServerThreatDetectionPolicyPtrInput ¶
type SqlServerThreatDetectionPolicyPtrInput interface { pulumi.Input ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput ToSqlServerThreatDetectionPolicyPtrOutputWithContext(context.Context) SqlServerThreatDetectionPolicyPtrOutput }
SqlServerThreatDetectionPolicyPtrInput is an input type that accepts SqlServerThreatDetectionPolicyArgs, SqlServerThreatDetectionPolicyPtr and SqlServerThreatDetectionPolicyPtrOutput values. You can construct a concrete instance of `SqlServerThreatDetectionPolicyPtrInput` via:
SqlServerThreatDetectionPolicyArgs{...} or: nil
func SqlServerThreatDetectionPolicyPtr ¶
func SqlServerThreatDetectionPolicyPtr(v *SqlServerThreatDetectionPolicyArgs) SqlServerThreatDetectionPolicyPtrInput
type SqlServerThreatDetectionPolicyPtrOutput ¶
type SqlServerThreatDetectionPolicyPtrOutput struct{ *pulumi.OutputState }
func (SqlServerThreatDetectionPolicyPtrOutput) DisabledAlerts ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) DisabledAlerts() pulumi.StringArrayOutput
Specifies a list of alerts which should be disabled. Possible values include `Access_Anomaly`, `Data_Exfiltration`, `Sql_Injection`, `Sql_Injection_Vulnerability` and `Unsafe_Action"`,.
func (SqlServerThreatDetectionPolicyPtrOutput) ElementType ¶
func (SqlServerThreatDetectionPolicyPtrOutput) ElementType() reflect.Type
func (SqlServerThreatDetectionPolicyPtrOutput) EmailAccountAdmins ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) EmailAccountAdmins() pulumi.BoolPtrOutput
Should the account administrators be emailed when this alert is triggered?
func (SqlServerThreatDetectionPolicyPtrOutput) EmailAddresses ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) EmailAddresses() pulumi.StringArrayOutput
A list of email addresses which alerts should be sent to.
func (SqlServerThreatDetectionPolicyPtrOutput) RetentionDays ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) RetentionDays() pulumi.IntPtrOutput
Specifies the number of days to keep in the Threat Detection audit logs.
func (SqlServerThreatDetectionPolicyPtrOutput) State ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) State() pulumi.StringPtrOutput
The State of the Policy. Possible values are `Disabled`, `Enabled` and `New`.
func (SqlServerThreatDetectionPolicyPtrOutput) StorageAccountAccessKey ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) StorageAccountAccessKey() pulumi.StringPtrOutput
Specifies the identifier key of the Threat Detection audit storage account. Required if `state` is `Enabled`.
func (SqlServerThreatDetectionPolicyPtrOutput) StorageEndpoint ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) StorageEndpoint() pulumi.StringPtrOutput
Specifies the blob storage endpoint (e.g. <https://example.blob.core.windows.net>). This blob storage will hold all Threat Detection audit logs. Required if `state` is `Enabled`.
func (SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutput ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutput() SqlServerThreatDetectionPolicyPtrOutput
func (SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext ¶
func (o SqlServerThreatDetectionPolicyPtrOutput) ToSqlServerThreatDetectionPolicyPtrOutputWithContext(ctx context.Context) SqlServerThreatDetectionPolicyPtrOutput
type VirtualNetworkRule ¶
type VirtualNetworkRule struct { pulumi.CustomResourceState // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. // // > **NOTE:** If `ignoreMissingVnetServiceEndpoint` is false, and the target subnet does not contain the `Microsoft.SQL` endpoint in the `serviceEndpoints` array, the deployment will fail when it tries to create the SQL virtual network rule. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrOutput `pulumi:"ignoreMissingVnetServiceEndpoint"` // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. // // > **NOTE:** `name` must be between 1-64 characters long and must satisfy all of the requirements below: // // 1. Contains only alphanumeric and hyphen characters // 2. Cannot start with a number or hyphen // 3. Cannot end with a hyphen Name pulumi.StringOutput `pulumi:"name"` // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"` // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringOutput `pulumi:"serverName"` // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringOutput `pulumi:"subnetId"` }
Allows you to add, update, or remove an Azure SQL server to a subnet of a virtual network.
> **Note:** The `sql.VirtualNetworkRule` resource is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the `mssql.VirtualNetworkRule` resource instead.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network" "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sql" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{ Location: pulumi.String("West Europe"), }) if err != nil { return err } vnet, err := network.NewVirtualNetwork(ctx, "vnet", &network.VirtualNetworkArgs{ AddressSpaces: pulumi.StringArray{ pulumi.String("10.7.29.0/29"), }, Location: example.Location, ResourceGroupName: example.Name, }) if err != nil { return err } subnet, err := network.NewSubnet(ctx, "subnet", &network.SubnetArgs{ ResourceGroupName: example.Name, VirtualNetworkName: vnet.Name, AddressPrefixes: pulumi.StringArray{ pulumi.String("10.7.29.0/29"), }, ServiceEndpoints: pulumi.StringArray{ pulumi.String("Microsoft.Sql"), }, }) if err != nil { return err } sqlserver, err := sql.NewSqlServer(ctx, "sqlserver", &sql.SqlServerArgs{ ResourceGroupName: example.Name, Location: example.Location, Version: pulumi.String("12.0"), AdministratorLogin: pulumi.String("4dm1n157r470r"), AdministratorLoginPassword: pulumi.String("4-v3ry-53cr37-p455w0rd"), }) if err != nil { return err } _, err = sql.NewVirtualNetworkRule(ctx, "sqlvnetrule", &sql.VirtualNetworkRuleArgs{ ResourceGroupName: example.Name, ServerName: sqlserver.Name, SubnetId: subnet.ID(), }) if err != nil { return err } return nil }) }
```
## Import
SQL Virtual Network Rules can be imported using the `resource id`, e.g.
```sh
$ pulumi import azure:sql/virtualNetworkRule:VirtualNetworkRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/virtualNetworkRules/vnetrulename
```
func GetVirtualNetworkRule ¶
func GetVirtualNetworkRule(ctx *pulumi.Context, name string, id pulumi.IDInput, state *VirtualNetworkRuleState, opts ...pulumi.ResourceOption) (*VirtualNetworkRule, error)
GetVirtualNetworkRule gets an existing VirtualNetworkRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewVirtualNetworkRule ¶
func NewVirtualNetworkRule(ctx *pulumi.Context, name string, args *VirtualNetworkRuleArgs, opts ...pulumi.ResourceOption) (*VirtualNetworkRule, error)
NewVirtualNetworkRule registers a new resource with the given unique name, arguments, and options.
func (*VirtualNetworkRule) ElementType ¶
func (*VirtualNetworkRule) ElementType() reflect.Type
func (*VirtualNetworkRule) ToVirtualNetworkRuleOutput ¶
func (i *VirtualNetworkRule) ToVirtualNetworkRuleOutput() VirtualNetworkRuleOutput
func (*VirtualNetworkRule) ToVirtualNetworkRuleOutputWithContext ¶
func (i *VirtualNetworkRule) ToVirtualNetworkRuleOutputWithContext(ctx context.Context) VirtualNetworkRuleOutput
type VirtualNetworkRuleArgs ¶
type VirtualNetworkRuleArgs struct { // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. // // > **NOTE:** If `ignoreMissingVnetServiceEndpoint` is false, and the target subnet does not contain the `Microsoft.SQL` endpoint in the `serviceEndpoints` array, the deployment will fail when it tries to create the SQL virtual network rule. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. // // > **NOTE:** `name` must be between 1-64 characters long and must satisfy all of the requirements below: // // 1. Contains only alphanumeric and hyphen characters // 2. Cannot start with a number or hyphen // 3. Cannot end with a hyphen Name pulumi.StringPtrInput // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringInput // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringInput // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringInput }
The set of arguments for constructing a VirtualNetworkRule resource.
func (VirtualNetworkRuleArgs) ElementType ¶
func (VirtualNetworkRuleArgs) ElementType() reflect.Type
type VirtualNetworkRuleArray ¶
type VirtualNetworkRuleArray []VirtualNetworkRuleInput
func (VirtualNetworkRuleArray) ElementType ¶
func (VirtualNetworkRuleArray) ElementType() reflect.Type
func (VirtualNetworkRuleArray) ToVirtualNetworkRuleArrayOutput ¶
func (i VirtualNetworkRuleArray) ToVirtualNetworkRuleArrayOutput() VirtualNetworkRuleArrayOutput
func (VirtualNetworkRuleArray) ToVirtualNetworkRuleArrayOutputWithContext ¶
func (i VirtualNetworkRuleArray) ToVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) VirtualNetworkRuleArrayOutput
type VirtualNetworkRuleArrayInput ¶
type VirtualNetworkRuleArrayInput interface { pulumi.Input ToVirtualNetworkRuleArrayOutput() VirtualNetworkRuleArrayOutput ToVirtualNetworkRuleArrayOutputWithContext(context.Context) VirtualNetworkRuleArrayOutput }
VirtualNetworkRuleArrayInput is an input type that accepts VirtualNetworkRuleArray and VirtualNetworkRuleArrayOutput values. You can construct a concrete instance of `VirtualNetworkRuleArrayInput` via:
VirtualNetworkRuleArray{ VirtualNetworkRuleArgs{...} }
type VirtualNetworkRuleArrayOutput ¶
type VirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }
func (VirtualNetworkRuleArrayOutput) ElementType ¶
func (VirtualNetworkRuleArrayOutput) ElementType() reflect.Type
func (VirtualNetworkRuleArrayOutput) Index ¶
func (o VirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) VirtualNetworkRuleOutput
func (VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutput ¶
func (o VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutput() VirtualNetworkRuleArrayOutput
func (VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutputWithContext ¶
func (o VirtualNetworkRuleArrayOutput) ToVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) VirtualNetworkRuleArrayOutput
type VirtualNetworkRuleInput ¶
type VirtualNetworkRuleInput interface { pulumi.Input ToVirtualNetworkRuleOutput() VirtualNetworkRuleOutput ToVirtualNetworkRuleOutputWithContext(ctx context.Context) VirtualNetworkRuleOutput }
type VirtualNetworkRuleMap ¶
type VirtualNetworkRuleMap map[string]VirtualNetworkRuleInput
func (VirtualNetworkRuleMap) ElementType ¶
func (VirtualNetworkRuleMap) ElementType() reflect.Type
func (VirtualNetworkRuleMap) ToVirtualNetworkRuleMapOutput ¶
func (i VirtualNetworkRuleMap) ToVirtualNetworkRuleMapOutput() VirtualNetworkRuleMapOutput
func (VirtualNetworkRuleMap) ToVirtualNetworkRuleMapOutputWithContext ¶
func (i VirtualNetworkRuleMap) ToVirtualNetworkRuleMapOutputWithContext(ctx context.Context) VirtualNetworkRuleMapOutput
type VirtualNetworkRuleMapInput ¶
type VirtualNetworkRuleMapInput interface { pulumi.Input ToVirtualNetworkRuleMapOutput() VirtualNetworkRuleMapOutput ToVirtualNetworkRuleMapOutputWithContext(context.Context) VirtualNetworkRuleMapOutput }
VirtualNetworkRuleMapInput is an input type that accepts VirtualNetworkRuleMap and VirtualNetworkRuleMapOutput values. You can construct a concrete instance of `VirtualNetworkRuleMapInput` via:
VirtualNetworkRuleMap{ "key": VirtualNetworkRuleArgs{...} }
type VirtualNetworkRuleMapOutput ¶
type VirtualNetworkRuleMapOutput struct{ *pulumi.OutputState }
func (VirtualNetworkRuleMapOutput) ElementType ¶
func (VirtualNetworkRuleMapOutput) ElementType() reflect.Type
func (VirtualNetworkRuleMapOutput) MapIndex ¶
func (o VirtualNetworkRuleMapOutput) MapIndex(k pulumi.StringInput) VirtualNetworkRuleOutput
func (VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutput ¶
func (o VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutput() VirtualNetworkRuleMapOutput
func (VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutputWithContext ¶
func (o VirtualNetworkRuleMapOutput) ToVirtualNetworkRuleMapOutputWithContext(ctx context.Context) VirtualNetworkRuleMapOutput
type VirtualNetworkRuleOutput ¶
type VirtualNetworkRuleOutput struct{ *pulumi.OutputState }
func (VirtualNetworkRuleOutput) ElementType ¶
func (VirtualNetworkRuleOutput) ElementType() reflect.Type
func (VirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint ¶ added in v5.5.0
func (o VirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint() pulumi.BoolPtrOutput
Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false.
> **NOTE:** If `ignoreMissingVnetServiceEndpoint` is false, and the target subnet does not contain the `Microsoft.SQL` endpoint in the `serviceEndpoints` array, the deployment will fail when it tries to create the SQL virtual network rule.
func (VirtualNetworkRuleOutput) Name ¶ added in v5.5.0
func (o VirtualNetworkRuleOutput) Name() pulumi.StringOutput
The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen.
> **NOTE:** `name` must be between 1-64 characters long and must satisfy all of the requirements below:
1. Contains only alphanumeric and hyphen characters 2. Cannot start with a number or hyphen 3. Cannot end with a hyphen
func (VirtualNetworkRuleOutput) ResourceGroupName ¶ added in v5.5.0
func (o VirtualNetworkRuleOutput) ResourceGroupName() pulumi.StringOutput
The name of the resource group where the SQL server resides. Changing this forces a new resource to be created.
func (VirtualNetworkRuleOutput) ServerName ¶ added in v5.5.0
func (o VirtualNetworkRuleOutput) ServerName() pulumi.StringOutput
The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created.
func (VirtualNetworkRuleOutput) SubnetId ¶ added in v5.5.0
func (o VirtualNetworkRuleOutput) SubnetId() pulumi.StringOutput
The ID of the subnet that the SQL server will be connected to.
func (VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutput ¶
func (o VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutput() VirtualNetworkRuleOutput
func (VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutputWithContext ¶
func (o VirtualNetworkRuleOutput) ToVirtualNetworkRuleOutputWithContext(ctx context.Context) VirtualNetworkRuleOutput
type VirtualNetworkRuleState ¶
type VirtualNetworkRuleState struct { // Create the virtual network rule before the subnet has the virtual network service endpoint enabled. The default value is false. // // > **NOTE:** If `ignoreMissingVnetServiceEndpoint` is false, and the target subnet does not contain the `Microsoft.SQL` endpoint in the `serviceEndpoints` array, the deployment will fail when it tries to create the SQL virtual network rule. IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput // The name of the SQL virtual network rule. Changing this forces a new resource to be created. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. // // > **NOTE:** `name` must be between 1-64 characters long and must satisfy all of the requirements below: // // 1. Contains only alphanumeric and hyphen characters // 2. Cannot start with a number or hyphen // 3. Cannot end with a hyphen Name pulumi.StringPtrInput // The name of the resource group where the SQL server resides. Changing this forces a new resource to be created. ResourceGroupName pulumi.StringPtrInput // The name of the SQL Server to which this SQL virtual network rule will be applied to. Changing this forces a new resource to be created. ServerName pulumi.StringPtrInput // The ID of the subnet that the SQL server will be connected to. SubnetId pulumi.StringPtrInput }
func (VirtualNetworkRuleState) ElementType ¶
func (VirtualNetworkRuleState) ElementType() reflect.Type
Source Files
¶
- activeDirectoryAdministrator.go
- database.go
- elasticPool.go
- failoverGroup.go
- firewallRule.go
- getDatabase.go
- getServer.go
- getSqlManagedInstance.go
- init.go
- managedDatabase.go
- managedInstance.go
- managedInstanceActiveDirectoryAdministrator.go
- managedInstanceFailoverGroup.go
- pulumiTypes.go
- sqlServer.go
- virtualNetworkRule.go