Skip to content
DocsTry Aspire
DocsTry

AzureCognitiveServicesProjectConnectionResource Methods

ClassMethods2 members
The Microsoft Foundry project connection resource scoped to a project.
FromExisting(string)Section titled FromExisting(string)overrideCognitiveServicesProjectConnection
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)
{
// ...
}
}
bicepIdentifierstring
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)
{
// ...
}
}
provisionableResourceCognitiveServicesProjectConnection
nameBicepValue<string>