@Mohammad Abbasi Iran is not available as an option for buying an azure subscription for now. But as an alternate, you may try buying the near by region from the list below.
Azure is currently commercially available in 140 countries and Iran isn't listed. Reference URL - https://azure.microsoft.com/en-in/free/free-account-faq/
If you are using Country as Iran it won't be possible to activate using different credit card. You might need to use entire different Country with respective Country details and Credit Card information.
Other option would be - For example: Your friend in US has Azure Account and he is the owner. In that case, your friend can grant you contributor access to his Azure subscription and you can use that same subscription in Iran.
Find Azure credit offers in your region : https://azure.microsoft.com/en-in/regions/offers/
If you still have any question, please feel to reach azure subscription support team, they provide free support, they can help you and provide more insights on the regions
Please let us know if you have any further queries. I’m happy to assist you further.
----------
Please do not forget to and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.