Az - Services
포털
Microsoft 포털 목록은 https://msportals.io/에서 찾을 수 있습니다.
Raw 요청
Powershell을 통한 Azure API
IDENTITY_HEADER 및 IDENTITY_ENDPOINT에서 access_token을 가져옵니다: system('curl "$IDENTITY_ENDPOINT?resource=https://management.azure.com/&api-version=2017-09-01" -H secret:$IDENTITY_HEADER');
.
그런 다음 Azure REST API를 쿼리하여 구독 ID 및 기타 정보를 얻습니다.
Azure API를 사용하는 Python 버전
To interact with Azure services using Python, you can make use of the Azure SDK for Python. This SDK provides a set of libraries and tools that allow you to easily access and manage various Azure services programmatically.
To get started, you will need to install the Azure SDK for Python. You can do this by running the following command:
Once the SDK is installed, you can import the necessary modules in your Python script to interact with Azure services. For example, to work with Azure Blob Storage, you can import the azure.storage.blob
module:
You will also need to authenticate your Python script to access your Azure resources. This can be done by providing your Azure subscription credentials or by using Azure Active Directory (AAD) authentication.
To authenticate using your Azure subscription credentials, you can use the DefaultAzureCredential
class from the azure.identity
module:
Alternatively, you can authenticate using Azure Active Directory (AAD) authentication. This requires registering an application in Azure AD and obtaining a client ID and client secret. You can then use the ClientSecretCredential
class from the azure.identity
module:
Once you have authenticated, you can create an instance of the Azure service client and start interacting with the service. For example, to create a BlobServiceClient instance for Azure Blob Storage, you can use the following code:
You can then use the methods provided by the Azure service client to perform various operations on the service. For example, to upload a file to Azure Blob Storage, you can use the upload_blob
method:
This is just a basic example of how to interact with Azure services using Python. The Azure SDK for Python provides a wide range of functionalities and features for working with different Azure services. You can refer to the official documentation for more information on how to use the SDK and its capabilities.
또는 Python 함수 내부에서:
서비스 목록
이 섹션의 페이지는 Azure 서비스별로 정렬되어 있습니다. 여기에서 각 서비스에 대한 정보(작동 방식 및 기능)와 각 서비스를 열거하는 방법을 찾을 수 있습니다.
最終更新