Skip to content
Docs Try Aspire

AzureCognitiveServicesProjectConnectionResource Methods

Class Methods 2 members
The Microsoft Foundry project connection resource scoped to a project.
FromExisting(string) Section titled FromExisting(string) override CognitiveServicesProjectConnection
Gets the Azure.Provisioning resource from an existing Bicep identifier. Because static methods can't be abstract, this is an instance method.
public class AzureCognitiveServicesProjectConnectionResource
{
public override CognitiveServicesProjectConnection FromExisting(
string bicepIdentifier)
{
// ...
}
}
bicepIdentifier string
SetName(CognitiveServicesProjectConnection, BicepValue<string>) Section titled SetName(CognitiveServicesProjectConnection, BicepValue<string>) override
Sets the name of the provisionable resource. This is needed because not all ProvisionableResource classes have a name property with a setter, and we can't put a type bound on T to require it.
public class AzureCognitiveServicesProjectConnectionResource
{
public override void SetName(
CognitiveServicesProjectConnection provisionableResource,
BicepValue<string> name)
{
// ...
}
}
provisionableResource CognitiveServicesProjectConnection
name BicepValue<string>