ServiceResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ServiceResource() |
Initializes a new instance of the ServiceResource class. |
ServiceResource(String, String, String, String, String, String, IDictionary<String,String>) |
Initializes a new instance of the ServiceResource class. |
ServiceResource()
Initializes a new instance of the ServiceResource class.
public ServiceResource ();
Public Sub New ()
Applies to
ServiceResource(String, String, String, String, String, String, IDictionary<String,String>)
Initializes a new instance of the ServiceResource class.
public ServiceResource (string location, string targetLocation, string targetSubscriptionId, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default);
new Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource : string * string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.DeploymentManager.Models.ServiceResource
Public Sub New (location As String, targetLocation As String, targetSubscriptionId As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing)
Parameters
- location
- String
The geo-location where the resource lives
- targetLocation
- String
The Azure location to which the resources in the service belong to or should be deployed to.
- targetSubscriptionId
- String
The subscription to which the resources in the service belong to or should be deployed to.
- id
- String
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
- tags
- IDictionary<String,String>
Resource tags.
Applies to
Azure SDK for .NET