VirtualMachineRunCommandScriptSource Class
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.
Describes the script sources for run command. Use only one of script, scriptUri, commandId.
public class VirtualMachineRunCommandScriptSource
type VirtualMachineRunCommandScriptSource = class
Public Class VirtualMachineRunCommandScriptSource
- Inheritance
-
VirtualMachineRunCommandScriptSource
Constructors
VirtualMachineRunCommandScriptSource() |
Initializes a new instance of the VirtualMachineRunCommandScriptSource class. |
VirtualMachineRunCommandScriptSource(String, String, String, RunCommandManagedIdentity) |
Initializes a new instance of the VirtualMachineRunCommandScriptSource class. |
Properties
CommandId |
Gets or sets specifies a commandId of predefined built-in script. |
Script |
Gets or sets specifies the script content to be executed on the VM. |
ScriptUri |
Gets or sets specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. |
ScriptUriManagedIdentity |
Gets or sets user-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case of system-assigned identity. Make sure the Azure storage blob exists, and managed identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기