Azure Stack Hub 저장소 개발 도구 시작Get started with Azure Stack Hub storage development tools
Microsoft Azure Stack 허브는 blob, 테이블 및 큐 저장소를 포함 하는 저장소 서비스 집합을 제공 합니다.Microsoft Azure Stack Hub provides a set of storage services that includes blob, table, and queue storage.
이 문서를 가이드로 사용 하 여 Azure Stack 허브 저장소 개발 도구를 사용 하 여 시작 하세요.Use this article as a guide to get started using Azure Stack Hub storage development tools. 해당 Azure storage 자습서에서 더 자세한 정보 및 샘플 코드를 찾을 수 있습니다.You can find more detailed information and sample code in corresponding Azure storage tutorials.
참고
각 플랫폼에 대 한 특정 요구 사항을 포함 하 여 Azure Stack 허브 저장소와 Azure storage 간에 차이가 있습니다.There are differences between Azure Stack Hub storage and Azure storage, including specific requirements for each platform. 예를 들어 Azure Stack 허브에 대 한 특정 클라이언트 라이브러리 및 끝점 접미사 요구 사항이 있습니다.For example, there are specific client libraries and endpoint suffix requirements for Azure Stack Hub. 자세한 내용은 Azure Stack 허브 저장소: 차이점 및 고려 사항을 참조 하세요.For more information, see Azure Stack Hub storage: Differences and considerations.
Azure 클라이언트 라이브러리Azure client libraries
저장소 클라이언트 라이브러리의 경우 REST API와 호환 되는 버전을 알아야 합니다.For the storage client libraries, be aware of the version that is compatible with the REST API. 또한 코드에서 Azure Stack 허브 엔드포인트를 지정 해야 합니다.You must also specify the Azure Stack Hub endpoint in your code.
2008 업데이트2008 update
작성기를 통해 PHP 클라이언트 설치 - 현재Install PHP client via Composer - current
작성기를 통해 설치 하려면 (예를 들어 blob을 사용 합니다.)To install via Composer: (take the blob as an example).
다음 코드를 사용 하 여 프로젝트의 루트에 composer.js 라는 파일을 만듭니다.Create a file named composer.json in the root of the project with following code:
{ "require": { "Microsoft/azure-storage-blob":"1.2.0" } }
프로젝트 루트에 작성기. phar 를 다운로드 합니다.Download composer.phar to the project root.
php composer.phar install
을 실행합니다.Run:php composer.phar install
.
2005 업데이트2005 update
작성기를 통해 PHP 클라이언트 설치 - 현재Install PHP client via Composer - current
작성기를 통해 설치 하려면 (예를 들어 blob을 사용 합니다.)To install via Composer: (take the blob as an example).
다음 코드를 사용 하 여 프로젝트의 루트에 composer.js 라는 파일을 만듭니다.Create a file named composer.json in the root of the project with following code:
{ "require": { "Microsoft/azure-storage-blob":"1.2.0" } }
프로젝트 루트에 작성기. phar 를 다운로드 합니다.Download composer.phar to the project root.
php composer.phar install
을 실행합니다.Run:php composer.phar install
.
이전 버전 (1811 ~ 2002 업데이트)Previous versions (1811 to 2002 update)
작성기를 통해 PHP 클라이언트 설치 - 현재Install PHP client via Composer - current
작성기를 통해 설치 하려면 (예를 들어 blob을 사용 합니다.)To install via Composer: (take the blob as an example).
다음 코드를 사용 하 여 프로젝트의 루트에 composer.js 라는 파일을 만듭니다.Create a file named composer.json in the root of the project with following code:
{ "require": { "Microsoft/azure-storage-blob":"1.2.0" } }
프로젝트 루트에 작성기. phar 를 다운로드 합니다.Download composer.phar to the project root.
php composer.phar install
을 실행합니다.Run:php composer.phar install
.
이전 버전 (1802 ~ 1809 업데이트)Previous versions (1802 to 1809 update)
작성기를 통해 PHP 클라이언트 설치-이전Install PHP client via Composer - previous
작성기를 통해 설치하려면: (Blob을 예로 사용).To install via Composer: (take blob as example).
다음 코드를 사용 하 여 프로젝트의 루트에 composer.js 라는 파일을 만듭니다.Create a file named composer.json in the root of the project with following code:
{ "require": { "Microsoft/azure-storage-blob":"1.0.0" } }
프로젝트 루트에 작성기. phar 를 다운로드 합니다.Download composer.phar to the project root.
php composer.phar install
을 실행합니다.Run:php composer.phar install
.
엔드포인트 선언Endpoint declaration
Azure Stack 허브 끝점은 지역 이름과 Azure Stack 허브 도메인의 두 부분으로 구성 됩니다.An Azure Stack Hub endpoint includes two parts: the name of a region and the Azure Stack Hub domain. Azure Stack Development Kit에서 기본 끝점은 로컬 azurestack. 외부 입니다.In the Azure Stack Development Kit, the default endpoint is local.azurestack.external. 끝점에 대해 잘 모를 경우 클라우드 관리자에 게 문의 하세요.Contact your cloud admin if you're not sure about your endpoint.
예제Examples
.NET.NET
Azure Stack 허브의 경우 app.config 파일에 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the app.config file:
<add key="StorageConnectionString"
value="DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey;
EndpointSuffix=local.azurestack.external;" />
JavaJava
Azure Stack 허브의 경우 연결 문자열 설치 시 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the setup of connection string:
public static final String storageConnectionString =
"DefaultEndpointsProtocol=http;" +
"AccountName=your_storage_account;" +
"AccountKey=your_storage_account_key;" +
"EndpointSuffix=local.azurestack.external";
Node.jsNode.js
Azure Stack 허브의 경우 선언 인스턴스에 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the declaration instance:
var blobSvc = azure.createBlobService('myaccount', 'mykey',
'myaccount.blob.local.azurestack.external');
C++C++
Azure Stack 허브의 경우 연결 문자열 설치 시 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the setup of connection string:
const utility::string_t storage_connection_string(U("DefaultEndpointsProtocol=https;
AccountName=your_storage_account;
AccountKey=your_storage_account_key;
EndpointSuffix=local.azurestack.external"));
PHPPHP
Azure Stack 허브의 경우 연결 문자열 설치 시 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the setup of connection string:
$connectionString = 'BlobEndpoint=https://<storage account name>.blob.local.azurestack.external/;
QueueEndpoint=https:// <storage account name>.queue.local.azurestack.external/;
TableEndpoint=https:// <storage account name>.table.local.azurestack.external/;
AccountName=<storage account name>;AccountKey=<storage account key>'
PythonPython
Azure Stack 허브의 경우 선언 인스턴스에 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the declaration instance:
block_blob_service = BlockBlobService(account_name='myaccount',
account_key='mykey',
endpoint_suffix='local.azurestack.external')
RubyRuby
Azure Stack 허브의 경우 연결 문자열 설치 시 끝점 접미사가 지정 됩니다.For Azure Stack Hub, the endpoint suffix is specified in the setup of connection string:
set
AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;
AccountName=myaccount;
AccountKey=mykey;
EndpointSuffix=local.azurestack.external
Blob 스토리지Blob storage
다음 Azure Blob storage 자습서는 Azure Stack Hub에 적용 됩니다.The following Azure Blob storage tutorials are applicable to Azure Stack Hub. 이전 예제 섹션에서 설명 하는 Azure Stack 허브의 특정 끝점 접미사 요구 사항을 확인 합니다.Note the specific endpoint suffix requirement for Azure Stack Hub described in the previous Examples section.
- .NET을 사용하여 Azure Blob Storage 시작Get started with Azure Blob storage using .NET
- Java에서 Blob Storage를 사용하는 방법How to use Blob storage from Java
- Node.js에서 Blob Storage를 사용하는 방법How to use Blob storage from Node.js
- C + +에서 Blob storage를 사용 하는 방법How to use Blob storage from C++
- 를 스토리지 계정의 이름으로 바꾸고 을 File Storage 공유의 이름으로 바꿉니다.How to use Blob storage from PHP
- Python에서 Azure Blob Storage를 사용하는 방법How to use Azure Blob storage from Python
- Ruby에서 Blob Storage를 사용하는 방법How to use Blob storage from Ruby
Queue 스토리지Queue storage
다음 Azure Queue storage 자습서는 Azure Stack Hub에 적용 됩니다.The following Azure Queue storage tutorials are applicable to Azure Stack Hub. 이전 예제 섹션에서 설명 하는 Azure Stack 허브의 특정 끝점 접미사 요구 사항을 확인 합니다.Note the specific endpoint suffix requirement for Azure Stack Hub described in the previous Examples section.
- .NET을 사용하여 Azure Queue Storage 시작Get started with Azure Queue storage using .NET
- Java에서 Queue Storage를 사용하는 방법How to use Queue storage from Java
- Node.js에서 Queue 스토리지를 사용하는 방법How to use Queue storage from Node.js
- C + +에서 Queue storage를 사용 하는 방법How to use Queue storage from C++
- PHP에서 Queue Storage를 사용하는 방법How to use Queue storage from PHP
- Python에서 Queue Storage를 사용하는 방법How to use Queue storage from Python
- Ruby에서 Queue Storage를 사용하는 방법How to use Queue storage from Ruby
Table StorageTable storage
다음 Azure Table storage 자습서는 Azure Stack Hub에 적용 됩니다.The following Azure Table storage tutorials are applicable to Azure Stack Hub. 이전 예제 섹션에서 설명 하는 Azure Stack 허브의 특정 끝점 접미사 요구 사항을 확인 합니다.Note the specific endpoint suffix requirement for Azure Stack Hub described in the previous Examples section.
- .NET을 사용하여 Azure Table Storage 시작Get started with Azure Table storage using .NET
- Java에서 Table Storage를 사용하는 방법How to use Table storage from Java
- Node.js에서 Azure Table Storage를 사용하는 방법How to use Azure Table storage from Node.js
- C + +에서 Table storage를 사용 하는 방법How to use Table storage from C++
- PHP에서 Table Storage를 사용하는 방법How to use Table storage from PHP
- Python에서 Table Storage를 사용하는 방법How to use Table storage in Python
- Ruby에서 Table Storage를 사용하는 방법How to use Table storage from Ruby